
public class ReverseProxyServletTest extends Object
ReverseProxyServlet| Modifier and Type | Field and Description |
|---|---|
static String |
SERVERNAME
naam server 2. test waarde.
|
| Constructor and Description |
|---|
ReverseProxyServletTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Set up test en mock objecten.
|
void |
testCheckUrlAllowed()
Test methode voor
ReverseProxyServlet#checkUrlAllowed(java.lang.String) . |
void |
testDoGetHttpServletRequestHttpServletResponse1()
Test methode voor
ReverseProxyServlet
. |
void |
testDoGetHttpServletRequestHttpServletResponse2()
Test methode voor
ReverseProxyServlet
. |
void |
testDoGetHttpServletRequestHttpServletResponse3()
Test methode voor
ReverseProxyServlet
. |
void |
testDoGetHttpServletRequestHttpServletResponse4()
Test methode voor
ReverseProxyServlet
. |
void |
testInitServletConfig()
Test methode voor
ReverseProxyServlet
, test voor missende config optie. |
public static final String SERVERNAME
public void setUp()
throws Exception
Exception - the exceptionpublic void testDoGetHttpServletRequestHttpServletResponse1()
throws IOException
ReverseProxyServlet
.IOException - when it bubbles up from the servletresponsepublic void testDoGetHttpServletRequestHttpServletResponse2()
throws IOException
ReverseProxyServlet
.IOException - when it bubbles up from the servletresponsepublic void testDoGetHttpServletRequestHttpServletResponse3()
throws IOException
ReverseProxyServlet
.IOException - when it bubbles up from the servletresponsepublic void testDoGetHttpServletRequestHttpServletResponse4()
throws IOException
ReverseProxyServlet
.IOException - when it bubbles up from the servletresponsepublic final void testInitServletConfig()
ReverseProxyServlet
, test voor missende config optie.public void testCheckUrlAllowed()
ReverseProxyServlet#checkUrlAllowed(java.lang.String) . Deze test
maakt een mock servletconfig en configureert de servlet. Met de
reflection API wordt de private method van de echte ReverseProxyServlet
aangeroepen.Copyright © 2012–2014 Ministerie EZ. All rights reserved.