public HttpTestNode()

in src/main/java/org/apache/sling/commons/testing/integration/HttpTestNode.java [31:42]


    public HttpTestNode(SlingIntegrationTestClient testClient, String parentPath, Map<String, String> properties) throws IOException {
        this.testClient = testClient;
        if(properties == null) {
            properties = new HashMap<String, String>();
        }
        testText = "This is a test node " + System.currentTimeMillis();
        properties.put("text", testText);
        nodeUrl = testClient.createNode(parentPath + HttpTestBase.SLING_POST_SERVLET_CREATE_SUFFIX, properties);
        resourceType = properties.get(HttpTestBase.SLING_RESOURCE_TYPE);
        scriptPath = "/apps/" + (resourceType == null ? "nt/unstructured" : resourceType);
        testClient.mkdirs(HttpTestBase.WEBDAV_BASE_URL, scriptPath);
    }