public class PostServletImportTest
extends org.apache.sling.commons.testing.integration.HttpTestBase
Modifier and Type | Field and Description |
---|---|
static String |
TEST_BASE_PATH |
CONTENT_TYPE_CSS, CONTENT_TYPE_DONTCARE, CONTENT_TYPE_HTML, CONTENT_TYPE_JS, CONTENT_TYPE_JSON, CONTENT_TYPE_PLAIN, CONTENT_TYPE_XML, DEFAULT_EXT, DEFAULT_READINESS_MEDIA_TYPE, EXECUTE_RESOURCE_TYPE, HTTP_BASE_URL, HTTP_METHOD_GET, HTTP_METHOD_POST, HTTP_URL, httpClient, MAX_READY_URL_INDEX, PROPERTY_SKIP_STARTUP_CHECK, READINESS_MEDIA_TYPE_PROP, READY_TIMEOUT_SECONDS, READY_URL_PROP_PREFIX, SERVLET_CONTEXT, SLING_POST_SERVLET_CREATE_SUFFIX, SLING_RESOURCE_TYPE, TEST_PATH, testClient, urlsToDelete, WEBDAV_BASE_URL
Constructor and Description |
---|
PostServletImportTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertExpectedJSON(javax.json.JsonObject expectedJson,
javax.json.JsonObject actualJson) |
protected String |
importNodeWithExactName(String testNodeName) |
protected void |
tearDown() |
void |
testImportAutoCheckoutNodes()
SLING-2108 Test import operation which auto checks out versionable nodes.
|
void |
testImportCheckinNodes()
Test import operation which checks in versionable nodes.
|
void |
testImportJarFromFile() |
void |
testImportJCRXMLFromFile() |
void |
testImportJSONFromFile()
Test import operation for a posted json file
|
void |
testImportJSONFromFileWithoutOptionalName()
Test import operation for a posted json file without the optional name
|
void |
testImportJSONFromRequestParam()
Test import operation for a posted json string
|
void |
testImportJSONFromRequestParamWithoutOptionalName()
Test import operation for a posted json string without the optional name
|
void |
testImportJSONWithUTF8Content()
SLING-2143: test import where json is in a UTF-8 charset
|
void |
testImportNodeWithAlreadyUsedExactName()
SLING-1091: test error reporting when attempting to import a node with an
already used node name.
|
void |
testImportNodeWithExactName()
SLING-1091: test create node with an exact node name (no filtering)
|
void |
testImportNodeWithInvalidExactName()
SLING-1091: test error reporting when attempting to create a node with an
invalid exact node name.
|
void |
testImportReplace()
Test import operation which replaces existing content
|
void |
testImportReplaceProperties()
SLING-1627: test import of content over existing content with the ':replaceProperties"
parameter set and the ":replace" property not set.
|
void |
testImportXMLFromFile() |
void |
testImportXMLFromFileWithoutOptionalName() |
void |
testImportXMLFromRequestParam() |
void |
testImportXMLFromRequestParamWithoutOptionalName() |
void |
testImportZipFromFile() |
assertHttpStatus, assertHttpStatus, assertJavascript, assertJavascript, assertPostStatus, executeScript, executeScript, getContent, getContent, getContent, getContent, getDefaultCredentials, getResponseBodyAsStream, isBundleVersionAtLeast, removeEndingSlash, setReadinessContentType, setUp, slingServerReady, uploadTestScript, waitForSlingStartup
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public static final String TEST_BASE_PATH
protected void tearDown() throws Exception
tearDown
in class org.apache.sling.commons.testing.integration.HttpTestBase
Exception
protected void assertExpectedJSON(javax.json.JsonObject expectedJson, javax.json.JsonObject actualJson) throws javax.json.JsonException
javax.json.JsonException
public void testImportReplace() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportReplaceProperties() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportCheckinNodes() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportAutoCheckoutNodes() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJSONFromFile() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJSONFromFileWithoutOptionalName() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJSONFromRequestParam() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportXMLFromFile() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportXMLFromFileWithoutOptionalName() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportXMLFromRequestParam() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportXMLFromRequestParamWithoutOptionalName() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportZipFromFile() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJarFromFile() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJCRXMLFromFile() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
protected String importNodeWithExactName(String testNodeName) throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportNodeWithExactName() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportNodeWithInvalidExactName() throws IOException
IOException
public void testImportNodeWithAlreadyUsedExactName() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
public void testImportJSONWithUTF8Content() throws IOException, javax.json.JsonException
IOException
javax.json.JsonException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.