camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [13/33] camel git commit: Camel component docs. Fixed test after adding group into the docs.
Date Thu, 12 Nov 2015 08:18:24 GMT
Camel component docs. Fixed test after adding group into the docs.


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

Branch: refs/heads/master
Commit: e03df6b6d7fb2b518137746ca05207b93a21e43c
Parents: 500f263
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Nov 12 08:40:11 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Nov 12 09:19:16 2015 +0100

----------------------------------------------------------------------
 .../mock/MockComponentConfigurationAndDocumentationTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e03df6b6/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
b/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
index 28407b1..e321ed8 100644
--- a/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
@@ -40,6 +40,7 @@ public class MockComponentConfigurationAndDocumentationTest extends ContextTestS
         ComponentConfiguration compConf = comp.createComponentConfiguration();
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
+        System.out.println(json);
 
         assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\""));
         assertTrue(json.contains("\"expectedCount\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\""));
@@ -51,8 +52,8 @@ public class MockComponentConfigurationAndDocumentationTest extends ContextTestS
         String json = context.explainEndpointJson("mock:foo?retainFirst=10", true);
         assertNotNull(json);
 
-        assertTrue(json.contains("\"retainFirst\": { \"kind\": \"parameter\", \"label\":
\"producer\", \"type\": \"integer\""
-                + ", \"javaType\": \"int\", \"deprecated\": \"false\", \"value\": \"10\""));
+        assertTrue(json.contains("\"retainFirst\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\", \"type\": \"integer\","
+                + " \"javaType\": \"int\", \"deprecated\": \"false\", \"value\": \"10\""));
     }
 
     @Test


Mime
View raw message