[OLINGO-659] Fixed test for two level expand

This commit is contained in:
Michael Bolz 2015-08-14 07:46:21 +02:00
parent 41f8ca2bbb
commit 99ff44e554
1 changed files with 2 additions and 2 deletions

View File

@ -1840,8 +1840,8 @@ public class ODataXmlSerializerTest {
@Override
public int differenceFound(Difference difference) {
final String xpath = "/entry[1]/updated[1]/text()[1]";
if(difference.getControlNodeDetail().getXpathLocation().equals(xpath)) {
final String xpath = "/updated[1]/text()[1]";
if(difference.getControlNodeDetail().getXpathLocation().endsWith(xpath)) {
String controlValue = difference.getControlNodeDetail().getValue();
String testValue = difference.getTestNodeDetail().getValue();
// allow a difference from two seconds