public class TestHttpServer extends HttpServerFunctionalTest
| Modifier and Type | Class and Description |
|---|---|
static class |
TestHttpServer.DummyFilterInitializer
FilterInitializer that initialized the DummyFilter.
|
static class |
TestHttpServer.DummyServletFilter
Dummy filter that mimics as an authentication filter.
|
static class |
TestHttpServer.EchoMapServlet |
static class |
TestHttpServer.EchoServlet |
static class |
TestHttpServer.HtmlContentServlet |
static class |
TestHttpServer.LongHeaderServlet |
static class |
TestHttpServer.MyGroupsProvider
Custom user->group mapping service.
|
TEST_BUILD_WEBAPPS| Constructor and Description |
|---|
TestHttpServer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanup() |
static void |
setup() |
void |
testAuthorizationOfDefaultServlets()
Verify the administrator access for /logs, /stacks, /conf, /logLevel and
/metrics servlets.
|
void |
testBindAddress() |
void |
testContentTypes() |
void |
testDisabledAuthorizationOfDefaultServlets()
Verify the access for /logs, /stacks, /conf, /logLevel and /metrics
servlets, when authentication filters are set, but authorization is not
enabled.
|
void |
testEcho() |
void |
testEchoMap()
Test the echo map servlet that uses getParameterMap.
|
void |
testHasAdministratorAccess() |
void |
testHttpServerBuilderWithExternalConnector()
HTTPServer.Builder should proceed if a external connector is available.
|
void |
testJersey() |
void |
testLongHeader()
Test that verifies headers can be up to 64K long.
|
void |
testMaxThreads()
Test the maximum number of threads cannot be exceeded.
|
void |
testNoCacheHeader() |
void |
testRequestQuoterWithNotNull() |
void |
testRequestQuoterWithNull() |
void |
testRequiresAuthorizationAccess() |
void |
testXFrameHeaderSameOrigin() |
createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stoppublic void testMaxThreads()
throws Exception
Exceptionpublic void testEchoMap()
throws Exception
Exceptionpublic void testLongHeader()
throws Exception
Exceptionpublic void testDisabledAuthorizationOfDefaultServlets()
throws Exception
Exceptionpublic void testAuthorizationOfDefaultServlets()
throws Exception
Exceptionpublic void testRequestQuoterWithNull()
throws Exception
Exceptionpublic void testRequestQuoterWithNotNull()
throws Exception
Exceptionpublic void testHasAdministratorAccess()
throws Exception
Exceptionpublic void testRequiresAuthorizationAccess()
throws Exception
Exceptionpublic void testXFrameHeaderSameOrigin()
throws Exception
Exception