public class TestServletFilter extends HttpServerFunctionalTest
| Modifier and Type | Class and Description |
|---|---|
static class |
TestServletFilter.ErrorFilter |
static class |
TestServletFilter.SimpleFilter
A very simple filter which record the uri filtered.
|
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static String |
uri |
TEST_BUILD_WEBAPPS| Constructor and Description |
|---|
TestServletFilter() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
assertExceptionContains(String string,
Throwable t) |
void |
testContextSpecificServletFilterWhenInitThrowsException()
Similar to the above test case, except that it uses a different API to add the filter.
|
void |
testServletFilter() |
void |
testServletFilterWhenInitThrowsException() |
access, createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, createTestServerWithSecurityAndAcl, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stoppublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestServletFilter()
private static void assertExceptionContains(String string, Throwable t)
public void testServletFilter() throws Exception
Exceptionpublic void testServletFilterWhenInitThrowsException() throws Exception
Exceptionpublic void testContextSpecificServletFilterWhenInitThrowsException() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.