[OLINGO-246] fix for build #251
This commit is contained in:
parent
68f27d57a1
commit
046cdb116d
|
@ -315,10 +315,9 @@ public class BatchTestITCase extends AbstractTestITCase {
|
||||||
assertEquals(200, res.getStatusCode());
|
assertEquals(200, res.getStatusCode());
|
||||||
assertEquals("OK", res.getStatusMessage());
|
assertEquals("OK", res.getStatusMessage());
|
||||||
|
|
||||||
ODataEntityRequestImpl<ODataEntity>.ODataEntityResponseImpl entres =
|
ODataEntityResponseImpl entres = (ODataEntityResponseImpl) res;
|
||||||
(ODataEntityRequestImpl<ODataEntity>.ODataEntityResponseImpl) res;
|
ODataEntity entity = (ODataEntity)entres.getBody();
|
||||||
|
|
||||||
ODataEntity entity = entres.getBody();
|
|
||||||
assertEquals(new Integer(-10), entity.getProperty("CustomerId").getPrimitiveValue().toCastValue(Integer.class));
|
assertEquals(new Integer(-10), entity.getProperty("CustomerId").getPrimitiveValue().toCastValue(Integer.class));
|
||||||
|
|
||||||
// retrieve the second item (ODataChangeset)
|
// retrieve the second item (ODataChangeset)
|
||||||
|
@ -350,8 +349,8 @@ public class BatchTestITCase extends AbstractTestITCase {
|
||||||
assertEquals(200, res.getStatusCode());
|
assertEquals(200, res.getStatusCode());
|
||||||
assertEquals("OK", res.getStatusMessage());
|
assertEquals("OK", res.getStatusMessage());
|
||||||
|
|
||||||
entres = (ODataEntityRequestImpl<ODataEntity>.ODataEntityResponseImpl) res;
|
entres = (ODataEntityResponseImpl) res;
|
||||||
entity = entres.getBody();
|
entity = (ODataEntity)entres.getBody();
|
||||||
assertEquals("new description from batch",
|
assertEquals("new description from batch",
|
||||||
entity.getProperty("Description").getPrimitiveValue().toCastValue(String.class));
|
entity.getProperty("Description").getPrimitiveValue().toCastValue(String.class));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue