From 046cdb116d7f5ca654f3b2edee27a855a840544e Mon Sep 17 00:00:00 2001 From: fmartelli Date: Wed, 16 Apr 2014 08:47:27 +0200 Subject: [PATCH] [OLINGO-246] fix for build #251 --- .../olingo/client/core/it/v3/BatchTestITCase.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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));