incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r602961 - /incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java
Date Mon, 10 Dec 2007 16:28:09 GMT
Author: bdelacretaz
Date: Mon Dec 10 08:28:09 2007
New Revision: 602961

URL: http://svn.apache.org/viewvc?rev=602961&view=rev
Log:
SLING-129 - SyntheticResourceTest did not create script folder correctly

Modified:
    incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java

Modified: incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java?rev=602961&r1=602960&r2=602961&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java
Mon Dec 10 08:28:09 2007
@@ -77,13 +77,14 @@
     }
     
     public void testSyntheticResourceWithEctTemplate() throws IOException {
-        final String synthResourceUrl = HTTP_BASE_URL + "/search/something.html";
+        final String synthResourceUrl = HTTP_BASE_URL + "/search/something.SyntheticResourceTest.html";
         {
             final String content = getContent(synthResourceUrl, CONTENT_TYPE_HTML);
             assertFalse("Content must not include ECT marker before test",content.contains("ECT
template"));
         }
         
-        final String scriptPath = "/apps/" + SyntheticResource.DEFAULT_RESOURCE_TYPE;
+        final String scriptPath = "/apps/" + SyntheticResource.DEFAULT_RESOURCE_TYPE + "/SyntheticResourceTest";
+        testClient.mkdirs(WEBDAV_BASE_URL, scriptPath);
         final String toDelete = uploadTestScript(scriptPath,"rendering-test.ect","html.ect");
         try {
             final String content = getContent(synthResourceUrl, CONTENT_TYPE_HTML);



Mime
View raw message