Author: enorman
Date: Sun Jun 27 21:48:03 2010
New Revision: 958427
URL: http://svn.apache.org/viewvc?rev=958427&view=rev
Log:
SLING-1172 fixed unit test
Modified:
sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java
Modified:
sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java
URL:
http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java?rev=958427&r1=958426&r2=958427&view=diff
==============================================================================
---
sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java
(original)
+++
sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java
Sun Jun 27 21:48:03 2010
@@ -117,17 +117,15 @@ public class PostServletImportTest exten
urlsToDelete.add(testNode);
//add node that will get replaced
- String testNodeName = "testNode_" + String.valueOf(random.nextInt());
props.put("propTest", "propTestValue");
- String importedNodeUrl = testClient.createNode(HTTP_BASE_URL +
testPath + "/" + testNodeName, props);
+ String importedNodeUrl = testClient.createNode(HTTP_BASE_URL +
testPath + "/nodeName", props);
//import with the replace option to replace the existing node.
props.clear();
props.put(SlingPostConstants.RP_OPERATION,
SlingPostConstants.OPERATION_IMPORT);
- props.put(SlingPostConstants.RP_NODE_NAME, testNodeName);
- testFile =
getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport.json"));
+ testFile =
getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport2.json"));
props.put(SlingPostConstants.RP_CONTENT_TYPE, "json");
props.put(SlingPostConstants.RP_REDIRECT_TO, testPath + "/*");
props.put(SlingPostConstants.RP_REPLACE, "true");