Repository: olingo-odata4
Updated Branches:
  refs/heads/master 437665834 -> 39eb82125


[OLINGO-246] fix for build #251


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/046cdb11
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/046cdb11
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/046cdb11

Branch: refs/heads/master
Commit: 046cdb116d7f5ca654f3b2edee27a855a840544e
Parents: 68f27d5
Author: fmartelli <[email protected]>
Authored: Wed Apr 16 08:47:27 2014 +0200
Committer: fmartelli <[email protected]>
Committed: Wed Apr 16 08:47:27 2014 +0200

----------------------------------------------------------------------
 .../apache/olingo/client/core/it/v3/BatchTestITCase.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/046cdb11/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/BatchTestITCase.java
----------------------------------------------------------------------
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 4365600..b154363 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<ODataEntity>.ODataEntityResponseImpl entres =
-            (ODataEntityRequestImpl<ODataEntity>.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<ODataEntity>.ODataEntityResponseImpl) res;
-    entity = entres.getBody();
+    entres = (ODataEntityResponseImpl) res;
+    entity = (ODataEntity)entres.getBody();
     assertEquals("new description from batch",
             
entity.getProperty("Description").getPrimitiveValue().toCastValue(String.class));
 

Reply via email to