camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [3/3] camel git commit: Fixed the configuration and documentation related tests
Date Mon, 02 Mar 2015 07:08:24 GMT
Fixed the configuration and documentation related tests


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

Branch: refs/heads/master
Commit: 504cf03deba0726754f05152f7d8606fb76a72b4
Parents: 4dbd34a
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Mon Mar 2 14:54:04 2015 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Mon Mar 2 14:54:04 2015 +0800

----------------------------------------------------------------------
 .../netty4/NettyComponentConfigurationAndDocumentationTest.java  | 4 ++--
 .../ServletComponentConfigurationAndDocumentationTest.java       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/504cf03d/components/camel-netty4/src/test/java/org/apache/camel/component/netty4/NettyComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-netty4/src/test/java/org/apache/camel/component/netty4/NettyComponentConfigurationAndDocumentationTest.java
b/components/camel-netty4/src/test/java/org/apache/camel/component/netty4/NettyComponentConfigurationAndDocumentationTest.java
index c48ddeb..035c25b 100644
--- a/components/camel-netty4/src/test/java/org/apache/camel/component/netty4/NettyComponentConfigurationAndDocumentationTest.java
+++ b/components/camel-netty4/src/test/java/org/apache/camel/component/netty4/NettyComponentConfigurationAndDocumentationTest.java
@@ -42,8 +42,8 @@ public class NettyComponentConfigurationAndDocumentationTest extends CamelTestSu
         ComponentConfiguration compConf = comp.createComponentConfiguration();
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
-
-        assertTrue(json.contains("\"host\": { \"kind\": \"path\", \"type\": \"string\""));
+        
+        assertTrue(json.contains("\"host\": { \"kind\": \"path\", \"required\": \"true\",
\"type\": \"string\""));
         assertTrue(json.contains("\"producerPoolMinEvictableIdle\": { \"kind\": \"parameter\",
\"type\": \"integer\""));
         assertTrue(json.contains("\"allowDefaultCodec\": { \"kind\": \"parameter\", \"type\":
\"boolean\""));
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/504cf03d/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletComponentConfigurationAndDocumentationTest.java
b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletComponentConfigurationAndDocumentationTest.java
index caa005e..22c25f2 100644
--- a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletComponentConfigurationAndDocumentationTest.java
+++ b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletComponentConfigurationAndDocumentationTest.java
@@ -42,8 +42,8 @@ public class ServletComponentConfigurationAndDocumentationTest extends CamelTest
         ComponentConfiguration compConf = comp.createComponentConfiguration();
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
-
-        assertTrue(json.contains("\"servletName\": { \"kind\": \"parameter\", \"type\": \"string\""));
+        
+        assertTrue(json.contains("\"servletName\": { \"kind\": \"property\", \"type\": \"string\""));
         assertTrue(json.contains("\"matchOnUriPrefix\": { \"kind\": \"parameter\", \"type\":
\"boolean\""));
     }
 


Mime
View raw message