camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject camel git commit: fix olingo2's sporadic test error caused by non-determinism
Date Wed, 11 Nov 2015 14:01:15 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x 157c0b4a3 -> 748ccaa51


fix olingo2's sporadic test error caused by non-determinism


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/748ccaa5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/748ccaa5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/748ccaa5

Branch: refs/heads/camel-2.15.x
Commit: 748ccaa514822b34237ef940c4aaf60c155e0d38
Parents: 157c0b4
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Wed Nov 11 14:47:00 2015 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Wed Nov 11 15:00:55 2015 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/olingo2/Olingo2AppAPITest.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/748ccaa5/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPITest.java
----------------------------------------------------------------------
diff --git a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPITest.java
b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPITest.java
index e502c6a..03c7da1 100644
--- a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPITest.java
+++ b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPITest.java
@@ -40,6 +40,7 @@ import org.apache.camel.test.AvailablePortFinder;
 import org.apache.http.entity.ContentType;
 import org.apache.olingo.odata2.api.commons.HttpStatusCodes;
 import org.apache.olingo.odata2.api.edm.Edm;
+import org.apache.olingo.odata2.api.edm.EdmEntitySet;
 import org.apache.olingo.odata2.api.edm.EdmEntitySetInfo;
 import org.apache.olingo.odata2.api.ep.entry.ODataEntry;
 import org.apache.olingo.odata2.api.ep.feed.ODataDeltaFeed;
@@ -100,6 +101,7 @@ public class Olingo2AppAPITest {
 
     private static Olingo2App olingoApp;
     private static Edm edm;
+    private static Map<String, EdmEntitySet> edmEntitySetMap;
 
     private static Olingo2SampleServer server;
 
@@ -138,6 +140,11 @@ public class Olingo2AppAPITest {
         edm = responseHandler.await();
         LOG.info("Read default EntityContainer:  {}", responseHandler.await().getDefaultEntityContainer().getName());
 
+        edmEntitySetMap = new HashMap<String, EdmEntitySet>();
+        for (EdmEntitySet ees : edm.getEntitySets()) {
+            edmEntitySetMap.put(ees.getName(), ees);
+        }
+
         // wait for generated data to be registered in server
         Thread.sleep(2000);
     }


Mime
View raw message