sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r615269 - in /incubator/sling/trunk/launchpad/launchpad-webapp/src/test: java/org/apache/sling/launchpad/webapp/integrationtest/NodetypeRenderingTest.java resources/integration-test/no-code.esp
Date Fri, 25 Jan 2008 17:07:54 GMT
Author: bdelacretaz
Date: Fri Jan 25 09:07:50 2008
New Revision: 615269

URL: http://svn.apache.org/viewvc?rev=615269&view=rev
Log:
SLING-149 - minimal test script added

Added:
    incubator/sling/trunk/launchpad/launchpad-webapp/src/test/resources/integration-test/no-code.esp
Modified:
    incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/NodetypeRenderingTest.java

Modified: incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/NodetypeRenderingTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/NodetypeRenderingTest.java?rev=615269&r1=615268&r2=615269&view=diff
==============================================================================
--- incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/NodetypeRenderingTest.java
(original)
+++ incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/NodetypeRenderingTest.java
Fri Jan 25 09:07:50 2008
@@ -59,6 +59,16 @@
         assertTrue("Content contains default rendering",content.contains("Node dumped by
DefaultHtmlRenderer"));
     }
 
+    public void testMiniScriptHtml() throws IOException {
+        final String toDelete = uploadTestScript("no-code.esp","html.esp");
+        try {
+            final String content = getContent(displayUrl + ".html", CONTENT_TYPE_HTML);
+            assertEquals("There's no code in this script, just this constant string",content);
+        } finally {
+            testClient.delete(toDelete);
+        }
+    }
+
     public void testEspHtml() throws IOException {
         final String toDelete = uploadTestScript("rendering-test.esp","html.esp");
         try {

Added: incubator/sling/trunk/launchpad/launchpad-webapp/src/test/resources/integration-test/no-code.esp
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/launchpad-webapp/src/test/resources/integration-test/no-code.esp?rev=615269&view=auto
==============================================================================
--- incubator/sling/trunk/launchpad/launchpad-webapp/src/test/resources/integration-test/no-code.esp
(added)
+++ incubator/sling/trunk/launchpad/launchpad-webapp/src/test/resources/integration-test/no-code.esp
Fri Jan 25 09:07:50 2008
@@ -0,0 +1 @@
+There's no code in this script, just this constant string
\ No newline at end of file



Mime
View raw message