Return-Path: X-Original-To: apmail-olingo-commits-archive@minotaur.apache.org Delivered-To: apmail-olingo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3C9A11EF9 for ; Tue, 24 Jun 2014 10:30:53 +0000 (UTC) Received: (qmail 34973 invoked by uid 500); 24 Jun 2014 10:30:53 -0000 Delivered-To: apmail-olingo-commits-archive@olingo.apache.org Received: (qmail 34949 invoked by uid 500); 24 Jun 2014 10:30:53 -0000 Mailing-List: contact commits-help@olingo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@olingo.apache.org Delivered-To: mailing list commits@olingo.apache.org Received: (qmail 34940 invoked by uid 99); 24 Jun 2014 10:30:53 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 10:30:53 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7389190FA56; Tue, 24 Jun 2014 10:30:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mibo@apache.org To: commits@olingo.apache.org Message-Id: <573dbdee1a6c493e9495f32f56c22a73@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [OLINGO-317] Fixed incompatible test Date: Tue, 24 Jun 2014 10:30:53 +0000 (UTC) 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 Authored: Tue Jun 24 12:30:31 2014 +0200 Committer: Michael Bolz 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