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:46:02 GMT
Repository: camel
Updated Branches:
  refs/heads/master 38183ecaa -> cee33bce0


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/cee33bce
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cee33bce
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cee33bce

Branch: refs/heads/master
Commit: cee33bce0f1909dd15a952c14207f0043f8c0cfa
Parents: 38183ec
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:45:46 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/cee33bce/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