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() |
createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, getServerURL, prepareTestWebapp, readOutput, stop
public void testMaxThreads() throws Exception
Exception
public void testEchoMap() throws Exception
Exception
public void testLongHeader() throws Exception
Exception
public void testDisabledAuthorizationOfDefaultServlets() throws Exception
Exception
public void testAuthorizationOfDefaultServlets() throws Exception
Exception
public void testRequestQuoterWithNull() throws Exception
Exception
public void testRequestQuoterWithNotNull() throws Exception
Exception
public void testHasAdministratorAccess() throws Exception
Exception
public void testRequiresAuthorizationAccess() throws Exception
Exception