src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java [435:457]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*");
        String importedNodeUrl = testClient.createNode(
                HTTP_BASE_URL + testPath,
                new NameValuePairList(props),
                null,
                true,
                testFile,
                SlingPostConstants.RP_CONTENT_FILE,
                null);

        // make sure the name is what was inside the file.
        assertTrue(importedNodeUrl.endsWith("/nodeName"));

        // assert content at new location
        String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON);

        JsonObject jsonObj = JsonUtil.parseObject(content);
        assertNotNull(jsonObj);

        // assert the imported content is there.
        String expectedJsonContent =
                getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json"));
        assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletImportTest.java [573:595]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*");
        String importedNodeUrl = testClient.createNode(
                HTTP_BASE_URL + testPath,
                new NameValuePairList(props),
                null,
                true,
                testFile,
                SlingPostConstants.RP_CONTENT_FILE,
                null);

        // make sure the name is what was inside the file.
        assertTrue(importedNodeUrl.endsWith("/nodeName"));

        // assert content at new location
        String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON);

        JsonObject jsonObj = JsonUtil.parseObject(content);
        assertNotNull(jsonObj);

        // assert the imported content is there.
        String expectedJsonContent =
                getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json"));
        assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



