camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [5/5] camel git commit: CAMEL-10842: Component JSon schema - JSon values should not always be string types
Date Thu, 16 Feb 2017 12:25:20 GMT
CAMEL-10842: Component JSon schema - JSon values should not always be string types


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

Branch: refs/heads/master
Commit: c4607e6c519541a1870ce225cbdd8fa8a3ea2e3e
Parents: e5a3559
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Feb 16 13:25:04 2017 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Feb 16 13:25:04 2017 +0100

----------------------------------------------------------------------
 ...wseComponentConfigurationAndDocumentationTest.java |  2 +-
 ...matComponentConfigurationAndDocumentationTest.java | 14 +++++++-------
 ...SetComponentConfigurationAndDocumentationTest.java |  2 +-
 ...ectComponentConfigurationAndDocumentationTest.java |  2 +-
 ...tVmComponentConfigurationAndDocumentationTest.java |  2 +-
 .../apache/camel/itest/doc/EipDocumentationTest.java  |  6 +++---
 ...ileComponentConfigurationAndDocumentationTest.java |  2 +-
 ...ageComponentConfigurationAndDocumentationTest.java |  2 +-
 ...LogComponentConfigurationAndDocumentationTest.java |  2 +-
 ...ockComponentConfigurationAndDocumentationTest.java |  2 +-
 ...mpleLanguageConfigurationAndDocumentationTest.java |  2 +-
 ...ngDataFormatConfigurationAndDocumentationTest.java |  2 +-
 ...estComponentConfigurationAndDocumentationTest.java |  2 +-
 ...merComponentConfigurationAndDocumentationTest.java |  2 +-
 ...sltComponentConfigurationAndDocumentationTest.java |  2 +-
 15 files changed, 23 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/BrowseComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/BrowseComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/BrowseComponentConfigurationAndDocumentationTest.java
index 5e93898..af4caaf 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/BrowseComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/BrowseComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class BrowseComponentConfigurationAndDocumentationTest extends CamelTestS
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": \"true\", \"type\": \"string\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": true, \"type\": \"string\""));
         assertTrue(json.contains("\"synchronous\": { \"kind\": \"parameter\", \"group\":
\"advanced\", \"label\": \"advanced\", \"type\": \"boolean\""));
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataFormatComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataFormatComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataFormatComponentConfigurationAndDocumentationTest.java
index 2dc0f58..483d7e3 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataFormatComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataFormatComponentConfigurationAndDocumentationTest.java
@@ -46,9 +46,9 @@ public class DataFormatComponentConfigurationAndDocumentationTest extends
CamelT
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\", \"type\": \"string\", \"javaType\": \"java.lang.String\","
-            + " \"deprecated\": \"false\", \"secret\": \"false\", \"description\": \"Name
of data format\" }"));
-        assertTrue(json.contains("\"operation\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\", \"type\": \"string\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true, \"type\": \"string\", \"javaType\": \"java.lang.String\","
+            + " \"deprecated\": false, \"secret\": false, \"description\": \"Name of data
format\" }"));
+        assertTrue(json.contains("\"operation\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true, \"type\": \"string\""));
         assertTrue(json.contains("\"synchronous\": { \"kind\": \"parameter\", \"group\":
\"advanced\", \"label\": \"advanced\", \"type\": \"boolean\""));
     }
 
@@ -61,8 +61,8 @@ public class DataFormatComponentConfigurationAndDocumentationTest extends
CamelT
         assertTrue(json.contains("\"name\": \"flatpack"));
 
         // the default value is a bit tricky as its ", which is written escaped as \"
-        assertTrue(json.contains("\"textQualifier\": { \"kind\": \"attribute\", \"required\":
\"false\", \"type\": \"string\""
-            + ", \"javaType\": \"java.lang.String\", \"deprecated\": \"false\", \"secret\":
\"false\", \"defaultValue\": \"\\\"\""));
+        assertTrue(json.contains("\"textQualifier\": { \"kind\": \"attribute\", \"required\":
false, \"type\": \"string\""
+            + ", \"javaType\": \"java.lang.String\", \"deprecated\": false, \"secret\": false,
\"defaultValue\": \"\\\"\""));
 
         List<Map<String, String>> rows = JsonSchemaHelper.parseJsonSchema("properties",
json, true);
         assertEquals(10, rows.size());
@@ -95,8 +95,8 @@ public class DataFormatComponentConfigurationAndDocumentationTest extends
CamelT
         assertTrue(json.contains("\"name\": \"univocity-tsv"));
 
         // the default value is a bit tricky as its \, which is written escaped as \\
-        assertTrue(json.contains("\"escapeChar\": { \"kind\": \"attribute\", \"required\":
\"false\", \"type\": \"string\", \"javaType\": \"java.lang.String\","
-            + " \"deprecated\": \"false\", \"secret\": \"false\", \"defaultValue\": \"\\\\\",
\"description\": \"The escape character.\""));
+        assertTrue(json.contains("\"escapeChar\": { \"kind\": \"attribute\", \"required\":
false, \"type\": \"string\", \"javaType\": \"java.lang.String\","
+            + " \"deprecated\": false, \"secret\": false, \"defaultValue\": \"\\\\\", \"description\":
\"The escape character.\""));
 
         List<Map<String, String>> rows = JsonSchemaHelper.parseJsonSchema("properties",
json, true);
         assertEquals(16, rows.size());

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataSetComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataSetComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataSetComponentConfigurationAndDocumentationTest.java
index 0c324fa..6e831d6 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataSetComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DataSetComponentConfigurationAndDocumentationTest.java
@@ -45,7 +45,7 @@ public class DataSetComponentConfigurationAndDocumentationTest extends CamelTest
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": \"true\", \"type\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": true, \"type\""));
         assertTrue(json.contains("\"kind\": \"parameter\", \"group\": \"consumer\", \"label\":
\"consumer\", \"type\": \"integer\""));
         assertTrue(json.contains("\"retainFirst\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\", \"type\": \"integer"));
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectComponentConfigurationAndDocumentationTest.java
index bd23882..34ba179 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectComponentConfigurationAndDocumentationTest.java
@@ -42,7 +42,7 @@ public class DirectComponentConfigurationAndDocumentationTest extends CamelTestS
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": \"true\", \"type\": \"string\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": true, \"type\": \"string\""));
         assertTrue(json.contains("\"timeout\": { \"kind\": \"parameter\", \"group\": \"producer\",
\"label\": \"producer\", \"type\": \"integer\""));
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectVmComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectVmComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectVmComponentConfigurationAndDocumentationTest.java
index 57d7fff..32f5750 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectVmComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/DirectVmComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class DirectVmComponentConfigurationAndDocumentationTest extends
CamelTes
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": \"true\", \"type\": \"string\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": true, \"type\": \"string\""));
         assertTrue(json.contains("\"timeout\": { \"kind\": \"parameter\", \"group\": \"producer\",
\"label\": \"producer\", \"type\": \"integer\""));
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/EipDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/EipDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/EipDocumentationTest.java
index 6d96a9c..2a8cef1 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/EipDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/EipDocumentationTest.java
@@ -51,7 +51,7 @@ public class EipDocumentationTest extends CamelTestSupport {
         // there should be javadoc included
         assertTrue(json.contains("If enabled then processing each splitted messages occurs
concurrently."));
         // and it support outputs
-        assertTrue(json.contains("\"outputs\": { \"kind\": \"element\", \"required\": \"true\",
\"type\": \"array\", \"javaType\""));
+        assertTrue(json.contains("\"outputs\": { \"kind\": \"element\", \"required\": true,
\"type\": \"array\", \"javaType\""));
     }
 
     @Test
@@ -73,8 +73,8 @@ public class EipDocumentationTest extends CamelTestSupport {
         assertNotNull("Should have found json for failover", json);
 
         assertTrue(json.contains("\"name\": \"failover\""));
-        assertTrue(json.contains("\"exception\": { \"kind\": \"element\", \"required\": \"false\",
\"type\": \"array\""
-            + ", \"javaType\": \"java.util.List<java.lang.String>\", \"deprecated\":
\"false\""));
+        assertTrue(json.contains("\"exception\": { \"kind\": \"element\", \"required\": false,
\"type\": \"array\""
+            + ", \"javaType\": \"java.util.List<java.lang.String>\", \"deprecated\":
false"));
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/FileComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/FileComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/FileComponentConfigurationAndDocumentationTest.java
index e221a1b..d1c8548 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/FileComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/FileComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class FileComponentConfigurationAndDocumentationTest extends CamelTestSup
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"directoryName\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"directoryName\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": true"));
         assertTrue(json.contains("\"autoCreate\": { \"kind\": \"parameter\", \"group\": \"advanced\",
\"label\": \"advanced\", \"type\": \"boolean\""));
         assertTrue(json.contains("\"readLockMinAge\": { \"kind\": \"parameter\", \"group\":
\"lock\", \"label\": \"consumer,lock\""));
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LanguageComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LanguageComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LanguageComponentConfigurationAndDocumentationTest.java
index dc33117..5e6c3e5 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LanguageComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LanguageComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class LanguageComponentConfigurationAndDocumentationTest extends
CamelTes
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"languageName\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"languageName\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true"));
         assertTrue(json.contains("\"script\": { \"kind\": \"parameter\", \"group\": \"producer\",
\"type\": \"string\""));
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LogComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LogComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LogComponentConfigurationAndDocumentationTest.java
index f569eb6..2758d70 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LogComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/LogComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class LogComponentConfigurationAndDocumentationTest extends CamelTestSupp
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"loggerName\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"loggerName\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true"));
         assertTrue(json.contains("\"level\": { \"kind\": \"parameter\", \"group\": \"producer\",
\"type\": \"string\""));
         assertTrue(json.contains("\"showBody\": { \"kind\": \"parameter\", \"group\": \"formatting\",
\"label\": \"formatting\""));
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/MockComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/MockComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/MockComponentConfigurationAndDocumentationTest.java
index 1058bbc..596c3c8 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/MockComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/MockComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class MockComponentConfigurationAndDocumentationTest extends CamelTestSup
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true"));
         assertTrue(json.contains("\"expectedCount\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\""));
         assertTrue(json.contains("\"retainFirst\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\""));
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/SimpleLanguageConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/SimpleLanguageConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/SimpleLanguageConfigurationAndDocumentationTest.java
index 60c1545..bde859a 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/SimpleLanguageConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/SimpleLanguageConfigurationAndDocumentationTest.java
@@ -37,7 +37,7 @@ public class SimpleLanguageConfigurationAndDocumentationTest extends CamelTestSu
 
         assertTrue(json.contains("\"name\": \"simple\""));
         assertTrue(json.contains("\"modelName\": \"simple\""));
-        assertTrue(json.contains("\"resultType\": { \"kind\": \"attribute\", \"required\":
\"false\", \"type\": \"string\", \"javaType\": \"java.lang.String\", \"deprecated\": \"false\""));
+        assertTrue(json.contains("\"resultType\": { \"kind\": \"attribute\", \"required\":
false, \"type\": \"string\", \"javaType\": \"java.lang.String\", \"deprecated\": false"));
     }
 
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/StringDataFormatConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/StringDataFormatConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/StringDataFormatConfigurationAndDocumentationTest.java
index e110cc2..8a735fa 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/StringDataFormatConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/StringDataFormatConfigurationAndDocumentationTest.java
@@ -37,7 +37,7 @@ public class StringDataFormatConfigurationAndDocumentationTest extends CamelTest
 
         assertTrue(json.contains("\"name\": \"string\""));
         assertTrue(json.contains("\"modelName\": \"string\""));
-        assertTrue(json.contains("\"charset\": { \"kind\": \"attribute\", \"required\": \"false\",
\"type\": \"string\", \"javaType\": \"java.lang.String\", \"deprecated\": \"false\""));
+        assertTrue(json.contains("\"charset\": { \"kind\": \"attribute\", \"required\": false,
\"type\": \"string\", \"javaType\": \"java.lang.String\", \"deprecated\": false"));
     }
 
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TestComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TestComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TestComponentConfigurationAndDocumentationTest.java
index a6cf07a..3281e49 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TestComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TestComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class TestComponentConfigurationAndDocumentationTest extends CamelTestSup
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true"));
         assertTrue(json.contains("\"retainFirst\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\""));
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TimerComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TimerComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TimerComponentConfigurationAndDocumentationTest.java
index 193ab07..e2bc4a3 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TimerComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/TimerComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class TimerComponentConfigurationAndDocumentationTest extends CamelTestSu
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"timerName\": { \"kind\": \"path\", \"group\": \"consumer\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"timerName\": { \"kind\": \"path\", \"group\": \"consumer\",
\"required\": true"));
         assertTrue(json.contains("\"delay\": { \"kind\": \"parameter\", \"group\": \"consumer\",
\"type\": \"integer\""));
         assertTrue(json.contains("\"timer\": { \"kind\": \"parameter\", \"group\": \"advanced\",
\"label\": \"advanced\""));
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/c4607e6c/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/XsltComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/XsltComponentConfigurationAndDocumentationTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/XsltComponentConfigurationAndDocumentationTest.java
index f286ea5..26bb7f9 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/XsltComponentConfigurationAndDocumentationTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/doc/XsltComponentConfigurationAndDocumentationTest.java
@@ -40,7 +40,7 @@ public class XsltComponentConfigurationAndDocumentationTest extends CamelTestSup
         String json = compConf.createParameterJsonSchema();
         assertNotNull(json);
 
-        assertTrue(json.contains("\"resourceUri\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": \"true\""));
+        assertTrue(json.contains("\"resourceUri\": { \"kind\": \"path\", \"group\": \"producer\",
\"required\": true"));
         assertTrue(json.contains("\"allowStAX\": { \"kind\": \"parameter\", \"group\": \"producer\",
\"type\": \"boolean\""));
         assertTrue(json.contains("\"transformerFactoryClass\": { \"kind\": \"parameter\",
\"group\": \"advanced\", \"label\": \"advanced\""));
     }


Mime
View raw message