You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/11/12 09:18:41 UTC
[30/33] camel git commit: Camel component docs. Fixed test after
adding group into the docs.
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/7e6c7458
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7e6c7458
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7e6c7458
Branch: refs/heads/camel-2.16.x
Commit: 7e6c7458be9cbe16a57654843706d4a6df9f90b8
Parents: 63260e8
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Nov 12 08:40:11 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Nov 12 09:21:17 2015 +0100
----------------------------------------------------------------------
.../mock/MockComponentConfigurationAndDocumentationTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/7e6c7458/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