public class HtmlDefaultServletTest
extends org.apache.sling.commons.testing.integration.HttpTestBase
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_PROP |
static String |
CONFIG_SERVLET |
static String |
EXT_SERVLET_SUFFIX |
static String |
HTML_DEFAULT_SERVLET_SUFFIX |
static String |
NONEXISTING_RESOURCE_URL |
static String |
PATHS_SERVLET_SUFFIX |
static String |
PREFIX_0_SERVLET_SUFFIX |
static String |
PREFIX_M1_SERVLET_SUFFIX |
static String |
PUT_SERVLET_SUFFIX |
static String |
REQUEST_URI_OPTING_SERVLET_SUFFIX |
static String |
SEL_SERVLET_SUFFIX |
static String |
TEST_PATH |
static String |
TEST_RESOURCE_TYPE |
static String |
TEST_SERVLET_MARKER |
protected org.apache.sling.commons.testing.integration.HttpTestBase.TestNode |
testNodeNORT |
protected org.apache.sling.commons.testing.integration.HttpTestBase.TestNode |
testNodeRT |
static String |
WAR_SEL_SERVLET_SUFFIX |
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, testClient, urlsToDelete, WEBDAV_BASE_URL
Constructor and Description |
---|
HtmlDefaultServletTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNotTestServlet(String content)
Assert that content does not contain TEST_SERVLET_MARKER
|
protected void |
assertServlet(String content,
String expectedSuffix)
Asserts that the given content is in Properties format and
contains a property named CLASS_PROP that ends with
expected suffix
|
protected Properties |
getTestServletProperties(String content) |
protected void |
setUp() |
protected void |
tearDown() |
void |
testHtmlExtension() |
void |
testJsonExtension() |
assertHttpStatus, assertHttpStatus, assertJavascript, assertJavascript, assertPostStatus, executeScript, executeScript, getContent, getContent, getContent, getContent, getDefaultCredentials, getResponseBodyAsStream, isBundleVersionAtLeast, removeEndingSlash, setReadinessContentType, 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 CONFIG_SERVLET
public static final String CLASS_PROP
public static final String TEST_SERVLET_MARKER
public static final String TEST_RESOURCE_TYPE
public static final String TEST_PATH
public static final String NONEXISTING_RESOURCE_URL
public static final String EXT_SERVLET_SUFFIX
public static final String SEL_SERVLET_SUFFIX
public static final String WAR_SEL_SERVLET_SUFFIX
public static final String PREFIX_0_SERVLET_SUFFIX
public static final String PREFIX_M1_SERVLET_SUFFIX
public static final String PUT_SERVLET_SUFFIX
public static final String HTML_DEFAULT_SERVLET_SUFFIX
public static final String REQUEST_URI_OPTING_SERVLET_SUFFIX
public static final String PATHS_SERVLET_SUFFIX
protected org.apache.sling.commons.testing.integration.HttpTestBase.TestNode testNodeNORT
protected org.apache.sling.commons.testing.integration.HttpTestBase.TestNode testNodeRT
public void testHtmlExtension() throws IOException
IOException
public void testJsonExtension() throws IOException
IOException
protected void assertServlet(String content, String expectedSuffix) throws IOException
IOException
protected Properties getTestServletProperties(String content) throws IOException
IOException
protected void assertNotTestServlet(String content)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.