This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new 353c0dd Nice JSON literal
353c0dd is described below
commit 353c0ddd9a8d5b431ac1c7c6753b2d24328f4dfe
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Tue Sep 4 15:48:19 2018 +0200
Nice JSON literal
---
.../java/sling/postservlet/createcontent/importContent.feature | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git
a/karate-http-testing/src/test/java/sling/postservlet/createcontent/importContent.feature
b/karate-http-testing/src/test/java/sling/postservlet/createcontent/importContent.feature
index 90e8528..05fa7e0 100644
---
a/karate-http-testing/src/test/java/sling/postservlet/createcontent/importContent.feature
+++
b/karate-http-testing/src/test/java/sling/postservlet/createcontent/importContent.feature
@@ -15,7 +15,14 @@ Background:
Scenario: Create the parent folder, import JSON content, verify and delete
# ------------------------------------------------------------------------
-* def newContent = { 'jcr:primaryType' : 'nt:unstructured', p1 : '#(testID)',
p2: [ 'a', 'b', '#(testID)' ] }
+* def newContent =
+"""
+{
+ 'jcr:primaryType' : 'nt:unstructured',
+ p1 : '#(testID)',
+ p2: [ 'a', 'b', '#(testID)' ]
+}
+"""
# Create parent folder
Given path testFolderPath, testID