diff --git a/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/BatchTestITCase.java b/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/BatchTestITCase.java index 4365600c1..b154363f8 100644 --- a/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/BatchTestITCase.java +++ b/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/BatchTestITCase.java @@ -315,10 +315,9 @@ public class BatchTestITCase extends AbstractTestITCase { assertEquals(200, res.getStatusCode()); assertEquals("OK", res.getStatusMessage()); - ODataEntityRequestImpl.ODataEntityResponseImpl entres = - (ODataEntityRequestImpl.ODataEntityResponseImpl) res; - - ODataEntity entity = entres.getBody(); + ODataEntityResponseImpl entres = (ODataEntityResponseImpl) res; + ODataEntity entity = (ODataEntity)entres.getBody(); + assertEquals(new Integer(-10), entity.getProperty("CustomerId").getPrimitiveValue().toCastValue(Integer.class)); // retrieve the second item (ODataChangeset) @@ -350,8 +349,8 @@ public class BatchTestITCase extends AbstractTestITCase { assertEquals(200, res.getStatusCode()); assertEquals("OK", res.getStatusMessage()); - entres = (ODataEntityRequestImpl.ODataEntityResponseImpl) res; - entity = entres.getBody(); + entres = (ODataEntityResponseImpl) res; + entity = (ODataEntity)entres.getBody(); assertEquals("new description from batch", entity.getProperty("Description").getPrimitiveValue().toCastValue(String.class));