incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1054965 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/PropertyRenderingTest.java
Date Tue, 04 Jan 2011 10:46:04 GMT
Author: cziegeler
Date: Tue Jan  4 10:46:04 2011
New Revision: 1054965

URL: http://svn.apache.org/viewvc?rev=1054965&view=rev
Log:
Fix test cases.

Modified:
    sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/PropertyRenderingTest.java

Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/PropertyRenderingTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/PropertyRenderingTest.java?rev=1054965&r1=1054964&r2=1054965&view=diff
==============================================================================
--- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/PropertyRenderingTest.java
(original)
+++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/PropertyRenderingTest.java
Tue Jan  4 10:46:04 2011
@@ -17,8 +17,6 @@
 package org.apache.sling.launchpad.webapp.integrationtest;
 
 import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
 
 import org.apache.sling.commons.testing.integration.NameValuePairList;
 import org.apache.sling.servlets.post.SlingPostConstants;
@@ -29,7 +27,7 @@ import org.apache.sling.servlets.post.Sl
 public class PropertyRenderingTest extends RenderingTestBase {
 
     private String slingResourceType;
-    
+
     private String testMultiText1;
     private String testMultiText2;
 
@@ -41,12 +39,12 @@ public class PropertyRenderingTest exten
         testText = "This is a test " + System.currentTimeMillis();
         testMultiText1 = "This is a multivalued test " + System.currentTimeMillis();
         testMultiText2 = "This is another multivalued test " + System.currentTimeMillis();
-        
+
         slingResourceType = getClass().getName();
 
         // create the test node, under a path that's specific to this class to allow collisions
         final String url = HTTP_BASE_URL + "/" + getClass().getSimpleName() + "/" + System.currentTimeMillis()
+ SlingPostConstants.DEFAULT_CREATE_SUFFIX;
-        
+
         NameValuePairList list = new NameValuePairList();
         list.add("sling:resourceType", slingResourceType);
         list.add("text", testText);
@@ -78,7 +76,7 @@ public class PropertyRenderingTest exten
     }
 
     public void testTextNoExt() throws IOException {
-        final String data = getContent(displayUrl + "/text", null);
+        final String data = getContent(displayUrl + "/text", CONTENT_TYPE_PLAIN);
         assertEquals(testText, data);
     }
 
@@ -105,7 +103,7 @@ public class PropertyRenderingTest exten
     }
 
     public void testResourceTypeNoExt() throws IOException {
-        final String data = getContent(displayUrl + "/sling:resourceType", null);
+        final String data = getContent(displayUrl + "/sling:resourceType", CONTENT_TYPE_PLAIN);
         assertEquals(slingResourceType, data);
     }
 }
\ No newline at end of file



Mime
View raw message