Build failed in Jenkins: olingo-odata4-all-profiles #254

2018-04-10 Thread Apache Jenkins Server
See 


Changes:

[ramya.vasanth] [OLINGO-1143] Support of Expand of a navigation property of a 
complex

--
[...truncated 429.85 KB...]
[INFO] Exclude: **/META-INF/**
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.ini
[INFO] Exclude: **/*.bin
[INFO] Exclude: **/MANIFEST.MF
[INFO] Exclude: .gitignore
[INFO] Exclude: .git/**
[INFO] Exclude: bin/**
[INFO] Exclude: **/*.local
[INFO] Exclude: **/*.project
[INFO] Exclude: **/*.classpath
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.batch
[INFO] Exclude: **/NOTICE
[INFO] Exclude: **/DEPENDENCIES
[INFO] Exclude: **/nb-configuration.xml
[INFO] Exclude: **/.externalToolBuilders/**
[INFO] Exclude: **/maven-eclipse.xml
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/ref/**
[INFO] Exclude: **/server-ref/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] 1 resources included (use -debug for more details)
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 
'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 
approved: 1 licence.
[INFO] 
[INFO] 
[INFO] Building odata-server-osgi-sample 4.5.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
odata-server-osgi-sample ---
[INFO] Deleting 

[INFO] 
[INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ 
odata-server-osgi-sample ---
[INFO] Source directory: 

 added.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
odata-server-osgi-sample ---
[INFO] Compiling 4 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
odata-server-osgi-sample ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-bundle-plugin:3.3.0:bundle (default-bundle) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ 
odata-server-osgi-sample ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:verify (integration-test) @ 
odata-server-osgi-sample ---
[INFO] Failsafe report directory: 

[INFO] 
[INFO] --- maven-checkstyle-plugin:2.12.1:check (checkstyle) @ 
odata-server-osgi-sample ---
[INFO] Starting audit...
Audit done.

[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
odata-server-osgi-sample ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/olingo/odata-server-osgi-sample/4.5.0-SNAPSHOT/odata-server-osgi-sample-4.5.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/olingo/odata-server-osgi-sample/4.5.0-SNAPSHOT/odata-server-osgi-sample-4.5.0-SNAPSHOT.pom
[INFO] Installing 

 to 

[1/2] olingo-odata4 git commit: [OLINGO-1143] Support of Expand of a navigation property of a complex type

2018-04-10 Thread ramyav
Repository: olingo-odata4
Updated Branches:
  refs/heads/master fd8bfa33d -> aaff527dc


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/aaff527d/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializerv01Test.java
--
diff --git 
a/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializerv01Test.java
 
b/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializerv01Test.java
index 193758c..bece280 100644
--- 
a/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializerv01Test.java
+++ 
b/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializerv01Test.java
@@ -1826,7 +1826,8 @@ public class ODataJsonSerializerv01Test {
 "\"@metadataEtag\":\"W/\\\"metadataETag\\\"\"," +
 "\"@type\":\"#olingo.odata.test1.CTTwoPrim\"," +
 "\"PropertyInt16@type\":\"#Int16\",\"PropertyInt16\":111," +
-"\"PropertyString\":\"TEST A\"}",resultString);
+"\"PropertyString\":\"TEST 
A\",\"NavPropertyETTwoKeyNavOne@navigationLink\":"
++ 
"\"ESTwoKeyNav(PropertyInt16=1,PropertyString='1')\"}",resultString);
   }
 
   @Test
@@ -1883,13 +1884,16 @@ public class ODataJsonSerializerv01Test {
 + "\"@type\":\"#Collection(olingo.odata.test1.CTTwoPrim)\","
 + "\"value\":[{\"@type\":\"#olingo.odata.test1.CTTwoPrim\","
 + "\"PropertyInt16@type\":\"#Int16\",\"PropertyInt16\":123,"
-+ "\"PropertyString\":\"TEST 1\"},"
++ "\"PropertyString\":\"TEST 1\","
++ 
"\"NavPropertyETTwoKeyNavOne@navigationLink\":\"ESTwoKeyNav(PropertyInt16=1,PropertyString='2')\"},"
 + "{\"@type\":\"#olingo.odata.test1.CTTwoPrim\","
 + "\"PropertyInt16@type\":\"#Int16\",\"PropertyInt16\":456,"
-+ "\"PropertyString\":\"TEST 2\"},"
++ "\"PropertyString\":\"TEST 2\","
++ 
"\"NavPropertyETTwoKeyNavOne@navigationLink\":\"ESTwoKeyNav(PropertyInt16=1,PropertyString='2')\"},"
 + "{\"@type\":\"#olingo.odata.test1.CTBase\","
 + "\"PropertyInt16@type\":\"#Int16\",\"PropertyInt16\":789,"
-+ "\"PropertyString\":\"TEST 3\",\"AdditionalPropString\":\"ADD 
TEST\"}]}";
++ "\"PropertyString\":\"TEST 3\",\"AdditionalPropString\":\"ADD 
TEST\","
++ 
"\"NavPropertyETTwoKeyNavOne@navigationLink\":\"ESTwoKeyNav(PropertyInt16=1,PropertyString='2')\"}]}";
 Assert.assertEquals(expectedResult, resultString);
   }
   

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/aaff527d/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializerTest.java
--
diff --git 
a/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializerTest.java
 
b/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializerTest.java
index 40fa334..f8b4c8c 100644
--- 
a/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializerTest.java
+++ 
b/lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializerTest.java
@@ -662,20 +662,44 @@ public class ODataXmlSerializerTest {
 "  \n" +
 "111\n" +
 "TEST A\n" +
+"http://docs.oasis-open.org/odata/ns/related/NavPropertyETTwoKeyNavOne\; "
++ "type=\"application/atom+xml;type=entry\" 
title=\"NavPropertyETTwoKeyNavOne\" "
++ "href=\"ESTwoKeyNav(PropertyInt16=1,PropertyString='1')\"/>\n" +
+"http://docs.oasis-open.org/odata/ns/related/NavPropertyETMediaOne\; "
++ "type=\"application/atom+xml;type=feed\" 
title=\"NavPropertyETMediaOne\" "
++ "href=\"PropertyComp/NavPropertyETMediaOne\"/>\n" +
 "  \n" +
 "\n" +
 "  \n" +
 "123\n" +
 "TEST 1\n" +
+"   http://docs.oasis-open.org/odata/ns/related/NavPropertyETTwoKeyNavOne\; "
++ "type=\"application/atom+xml;type=entry\" 
title=\"NavPropertyETTwoKeyNavOne\" "
++ 
"href=\"ESTwoKeyNav(PropertyInt16=1,PropertyString=2)\"/>\n" +
+"   http://docs.oasis-open.org/odata/ns/related/NavPropertyETMediaOne\; "
++ "type=\"application/atom+xml;type=feed\" 
title=\"NavPropertyETMediaOne\" "
++ "href=\"CollPropertyComp/NavPropertyETMediaOne\"/>\n" +
 "  \n" +
 "  \n" +
 "456\n" +
 "TEST 2\n" +
+"   http://docs.oasis-open.org/odata/ns/related/NavPropertyETTwoKeyNavOne\; "
++ "type=\"application/atom+xml;type=entry\" 
title=\"NavPropertyETTwoKeyNavOne\" "
++ 

[2/2] olingo-odata4 git commit: [OLINGO-1143] Support of Expand of a navigation property of a complex type

2018-04-10 Thread ramyav
[OLINGO-1143] Support of Expand of a navigation property of a complex type


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

Branch: refs/heads/master
Commit: aaff527dcd43d5f68d6407c8ab9b031a0e53c38e
Parents: fd8bfa3
Author: ramya vasanth 
Authored: Wed Apr 11 11:15:38 2018 +0530
Committer: ramya vasanth 
Committed: Wed Apr 11 11:15:38 2018 +0530

--
 .../client/ExpandWithComplexPropertyITCase.java | 348 +++
 .../http/DerivedAndMixedTypeTestITCase.java |  81 ++---
 .../serializer/json/ODataJsonSerializer.java|  91 -
 .../serializer/utils/ExpandSelectHelper.java| 130 ++-
 .../core/serializer/xml/ODataXmlSerializer.java |  87 -
 .../server/core/uri/parser/ExpandParser.java|   2 +-
 .../olingo/server/tecsvc/data/ActionData.java   |   8 +-
 .../olingo/server/tecsvc/data/DataCreator.java  | 133 ++-
 .../olingo/server/tecsvc/data/FunctionData.java |   2 +
 .../tecsvc/provider/ComplexTypeProvider.java|  13 +-
 .../json/ODataJsonSerializerTest.java   |  84 -
 .../json/ODataJsonSerializerv01Test.java|  12 +-
 .../serializer/xml/ODataXmlSerializerTest.java  | 112 +-
 13 files changed, 997 insertions(+), 106 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/aaff527d/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/ExpandWithComplexPropertyITCase.java
--
diff --git 
a/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/ExpandWithComplexPropertyITCase.java
 
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/ExpandWithComplexPropertyITCase.java
new file mode 100644
index 000..43f9671
--- /dev/null
+++ 
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/ExpandWithComplexPropertyITCase.java
@@ -0,0 +1,348 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.olingo.fit.tecsvc.client;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+import 
org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
+import 
org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
+import org.apache.olingo.client.api.domain.ClientCollectionValue;
+import org.apache.olingo.client.api.domain.ClientComplexValue;
+import org.apache.olingo.client.api.domain.ClientEntity;
+import org.apache.olingo.client.api.domain.ClientLink;
+import org.apache.olingo.client.api.domain.ClientProperty;
+import org.apache.olingo.client.api.domain.ClientValue;
+import org.apache.olingo.commons.api.http.HttpStatusCode;
+import org.apache.olingo.fit.tecsvc.TecSvcConst;
+import org.junit.Test;
+
+public class ExpandWithComplexPropertyITCase extends AbstractParamTecSvcITCase 
{
+
+  @Test
+  public void readExpandHavingComplexProperty1() {
+ODataEntityRequest request = 
getClient().getRetrieveRequestFactory()
+.getEntityRequest(getClient().newURIBuilder(TecSvcConst.BASE_URI)
+
.appendEntitySetSegment("ESCompMixPrimCollComp").appendKeySegment(1)
+
.expand("PropertyMixedPrimCollComp/PropertyComp/NavPropertyETTwoKeyNavOne($expand=NavPropertySINav),"
++ 
"PropertyMixedPrimCollComp/PropertyComp/NavPropertyETMediaOne")
+.build());
+assertNotNull(request);
+setCookieHeader(request);
+
+final ODataRetrieveResponse response = request.execute();
+saveCookieHeader(response);
+assertEquals(HttpStatusCode.OK.getStatusCode(), response.getStatusCode());
+
+final ClientEntity entity = response.getBody();
+assertNotNull(entity);
+
+assertNotNull(entity.getProperties());
+assertEquals(2, entity.getProperties().size());
+assertNotNull(entity.getProperty("PropertyMixedPrimCollComp"));
+
+ClientProperty property =