You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2007/12/10 17:28:09 UTC
svn commit: r602961 -
/incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SyntheticResourceTest.java
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);