You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/03/04 08:52:39 UTC

[sling-org-apache-sling-launchpad-integration-tests] branch master updated: SLING-8300 - SlingDefaultValuesTest broken by SLING-2534

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-launchpad-integration-tests.git


The following commit(s) were added to refs/heads/master by this push:
     new b7816a6  SLING-8300 - SlingDefaultValuesTest broken by SLING-2534
b7816a6 is described below

commit b7816a64c012a44356e1eeddca284a7cab3b5c87
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Mar 4 10:52:31 2019 +0200

    SLING-8300 - SlingDefaultValuesTest broken by SLING-2534
    
    Adjust SlingDefaultValuesTest to new behaviour.
---
 .../webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
index 2a3aeed..6cd234f 100644
--- a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
+++ b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
@@ -47,7 +47,7 @@ public class SlingDefaultValuesTest extends HttpTestBase {
         String content = getContent(createdNodeUrl + ".json", CONTENT_TYPE_JSON);
 
         // default behaviour writes empty string
-        assertJavascript("undefined", content, "out.println(\"\" + data.a)");
+        assertJavascript("", content, "out.println(\"\" + data.a)");
 
         // overwrite with "123"
         props.put("a", "123");
@@ -61,7 +61,7 @@ public class SlingDefaultValuesTest extends HttpTestBase {
         testClient.createNode(createdNodeUrl, props);
         content = getContent(createdNodeUrl + ".json", CONTENT_TYPE_JSON);
 
-        assertJavascript("undefined", content, "out.println(\"\" + data.a)");
+        assertJavascript("", content, "out.println(\"\" + data.a)");
 
         // check array
         NameValuePairList params = new NameValuePairList();