camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [15/19] camel git commit: CAMEL-10696: Ensure json value is escaped and avoid new line problems in description and in docs.
Date Sun, 24 Sep 2017 20:03:59 GMT
CAMEL-10696: Ensure json value is escaped and avoid new line problems in description and in
docs.


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

Branch: refs/heads/master
Commit: 2c316a88b287c50c9780018d5dc65c6644970144
Parents: ab3b5f4
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Sep 24 21:09:26 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Sep 24 22:03:23 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/2c316a88/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 ba96182..e952fc0 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
@@ -62,7 +62,7 @@ public class DataFormatComponentConfigurationAndDocumentationTest extends
CamelT
 
         // the default value is a bit tricky as its ", which is written escaped as \"
         assertTrue(json.contains("\"textQualifier\": { \"kind\": \"attribute\", \"displayName\":
\"Text Qualifier\", \"required\": false, \"type\": \"string\""
-            + ", \"javaType\": \"java.lang.String\", \"deprecated\": false, \"secret\": false,
\"defaultValue\": \"\\\"\""));
+            + ", \"javaType\": \"java.lang.String\", \"deprecated\": false, \"secret\": false"));
 
         List<Map<String, String>> rows = JsonSchemaHelper.parseJsonSchema("properties",
json, true);
         assertEquals(10, rows.size());
@@ -82,8 +82,7 @@ public class DataFormatComponentConfigurationAndDocumentationTest extends
CamelT
         assertEquals("java.lang.String", found.get("javaType"));
         assertEquals("false", found.get("deprecated"));
         assertEquals("false", found.get("secret"));
-        assertEquals("\"", found.get("defaultValue"));
-        assertEquals("If the text is qualified with a char such as \"", found.get("description"));
+        assertEquals("If the text is qualified with a character. Uses quote character by
default.", found.get("description"));
     }
 
     @Test


Mime
View raw message