incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r644718 - /incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
Date Fri, 04 Apr 2008 14:15:04 GMT
Author: cziegeler
Date: Fri Apr  4 07:14:55 2008
New Revision: 644718

URL: http://svn.apache.org/viewvc?rev=644718&view=rev
Log:
Fix failing test case - starting today, the test failed because of a method clash, both println(string)
and println(object) match.

Modified:
    incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java

Modified: incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java?rev=644718&r1=644717&r2=644718&view=diff
==============================================================================
--- incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
(original)
+++ incubator/sling/trunk/launchpad/webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/SlingDefaultValuesTest.java
Fri Apr  4 07:14:55 2008
@@ -46,7 +46,7 @@
         String content = getContent(createdNodeUrl + ".json", CONTENT_TYPE_JSON);
 
         // default behaviour writes empty string
-        assertJavascript("", content, "out.println(data.a)");
+        assertJavascript("undefined", content, "out.println(\"\" + data.a)");
 
         // overwrite with "123"
         props.put("a", "123");
@@ -60,7 +60,7 @@
         testClient.createNode(createdNodeUrl, props);
         content = getContent(createdNodeUrl + ".json", CONTENT_TYPE_JSON);
 
-        assertJavascript("", content, "out.println(data.a)");
+        assertJavascript("undefined", content, "out.println(\"\" + data.a)");
     }
 
     public void testWithSpecificDefault() throws IOException {



Mime
View raw message