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 |
TEST_BUILD_WEBAPPS
Constructor and Description |
---|
TestServletFilter() |
Modifier and Type | Method and Description |
---|---|
static void |
assertExceptionContains(java.lang.String string,
java.lang.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() |
createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stop
public static void assertExceptionContains(java.lang.String string, java.lang.Throwable t)
public void testServletFilter() throws java.lang.Exception
java.lang.Exception
public void testServletFilterWhenInitThrowsException() throws java.lang.Exception
java.lang.Exception
public void testContextSpecificServletFilterWhenInitThrowsException() throws java.lang.Exception
java.lang.Exception