src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletVersionableTest.java [637:661]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        params.put(":checkinNewVersionableNodes", "true");
        final String testPath = TEST_BASE_PATH + "/abs/" + System.currentTimeMillis();
        testClient.createNode(HTTP_BASE_URL + testPath + "/src", params);

        params.clear();
        params.put(":autoCheckout", "true");
        params.put("text", "Hello");
        testClient.createNode(HTTP_BASE_URL + testPath + "/src/child", params);

        // assert content at source location
        String oldContent = getContent(HTTP_BASE_URL + testPath + "/src.-1.json", CONTENT_TYPE_JSON);
        assertJavascript("false", oldContent, "out.println(data['jcr:isCheckedOut'])");
        assertJavascript("Hello", oldContent, "out.println(data.child.text)");

        // create dest as empty
        params.put("jcr:mixinTypes", "mix:versionable");
        params.put(":checkinNewVersionableNodes", "true");
        testClient.createNode(HTTP_BASE_URL + testPath + "/dest", params);

        String content = getContent(HTTP_BASE_URL + testPath + "/dest.json", CONTENT_TYPE_JSON);
        assertJavascript("false", oldContent, "out.println(data['jcr:isCheckedOut'])");

        // copy text from src/text
        params.clear();
        params.put(":autoCheckout", "true");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletVersionableTest.java [722:746]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        params.put(":checkinNewVersionableNodes", "true");
        final String testPath = TEST_BASE_PATH + "/abs/" + System.currentTimeMillis();
        testClient.createNode(HTTP_BASE_URL + testPath + "/src", params);

        params.clear();
        params.put(":autoCheckout", "true");
        params.put("text", "Hello");
        testClient.createNode(HTTP_BASE_URL + testPath + "/src/child", params);

        // assert content at source location
        String oldContent = getContent(HTTP_BASE_URL + testPath + "/src.-1.json", CONTENT_TYPE_JSON);
        assertJavascript("false", oldContent, "out.println(data['jcr:isCheckedOut'])");
        assertJavascript("Hello", oldContent, "out.println(data.child.text)");

        // create dest as empty
        params.put("jcr:mixinTypes", "mix:versionable");
        params.put(":checkinNewVersionableNodes", "true");
        testClient.createNode(HTTP_BASE_URL + testPath + "/dest", params);

        String content = getContent(HTTP_BASE_URL + testPath + "/dest.json", CONTENT_TYPE_JSON);
        assertJavascript("false", oldContent, "out.println(data['jcr:isCheckedOut'])");

        // copy child from src
        params.clear();
        params.put(":autoCheckout", "true");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



