olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: [OLINGO-317] Fixed incompatible test
Date Tue, 24 Jun 2014 10:30:53 GMT
Repository: olingo-odata4
Updated Branches:
  refs/heads/master ce3598521 -> 4c820a26c


[OLINGO-317] Fixed incompatible test


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

Branch: refs/heads/master
Commit: 4c820a26c5812b5e7923fc2b39db723e17e65a1e
Parents: ce35985
Author: Michael Bolz <michael.bolz@sap.com>
Authored: Tue Jun 24 12:30:31 2014 +0200
Committer: Michael Bolz <michael.bolz@sap.com>
Committed: Tue Jun 24 12:30:31 2014 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/olingo/client/core/v4/EntityTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/4c820a26/lib/client-core/src/test/java/org/apache/olingo/client/core/v4/EntityTest.java
----------------------------------------------------------------------
diff --git a/lib/client-core/src/test/java/org/apache/olingo/client/core/v4/EntityTest.java
b/lib/client-core/src/test/java/org/apache/olingo/client/core/v4/EntityTest.java
index f70ad8e..c08e825 100644
--- a/lib/client-core/src/test/java/org/apache/olingo/client/core/v4/EntityTest.java
+++ b/lib/client-core/src/test/java/org/apache/olingo/client/core/v4/EntityTest.java
@@ -40,6 +40,7 @@ import org.apache.olingo.commons.api.domain.v4.ODataEntity;
 import org.apache.olingo.commons.api.domain.v4.ODataLinkedComplexValue;
 import org.apache.olingo.commons.api.domain.v4.ODataProperty;
 import org.apache.olingo.commons.api.domain.v4.ODataValue;
+import org.apache.olingo.commons.api.domain.v4.ODataValuable;
 import org.apache.olingo.commons.api.edm.Edm;
 import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException;
 import org.apache.olingo.commons.api.format.ODataFormat;
@@ -357,7 +358,7 @@ public class EntityTest extends AbstractTest {
 
     assertEquals("Microsoft.Test.OData.Services.ODataWCFService.Customer", entity.getTypeName().toString());
     assertEquals("Microsoft.Test.OData.Services.ODataWCFService.CompanyAddress",
-             entity.getProperty("HomeAddress").getValue().getTypeName());
+            ((ODataValuable) entity.getProperty("HomeAddress")).getValue().getTypeName());
   }
 
   @Test


Mime
View raw message