camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: Polish the code of RestletGroovyIssueTest
Date Wed, 02 Jul 2014 02:50:54 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.13.x d2db3f760 -> 31d4262d4


Polish the code of RestletGroovyIssueTest


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

Branch: refs/heads/camel-2.13.x
Commit: 31d4262d43259a1d5053f148eb9c299711569eb3
Parents: d2db3f7
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Wed Jul 2 10:45:46 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Jul 2 10:48:47 2014 +0800

----------------------------------------------------------------------
 .../camel/itest/restlet/example/RestletGroovyIssueTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/31d4262d/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/RestletGroovyIssueTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/RestletGroovyIssueTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/RestletGroovyIssueTest.java
index dc97af5..2803ac9 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/RestletGroovyIssueTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/RestletGroovyIssueTest.java
@@ -34,11 +34,11 @@ public class RestletGroovyIssueTest extends CamelTestSupport {
 
     @Test
     public void testRestletGroovy() throws Exception {
+        getMockEndpoint("mock:input").expectedMessageCount(10);
+        getMockEndpoint("mock:output").expectedBodiesReceivedInAnyOrder("0", "1", "2", "3",
"4", "5", "6", "7", "8", "9");
+        
         for (int i = 0; i < 10; i++) {
             final Integer num = i;
-            getMockEndpoint("mock:input").expectedMessageCount(10);
-            getMockEndpoint("mock:output").expectedBodiesReceivedInAnyOrder("0", "1", "2",
"3", "4", "5", "6", "7", "8", "9");
-
             executorService.submit(new Runnable() {
                 @Override
                 public void run() {


Mime
View raw message