Skip to content

Commit

Permalink
add more details so i can figure out why this test is failing on the …
Browse files Browse the repository at this point in the history
…build server.
  • Loading branch information
chenson42 committed Jul 24, 2008
1 parent e8ba375 commit 05f373a
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -305,8 +305,6 @@ public void testInvalidInetAddressFilterComboAddressFilter(final String filterSt
public void testInetAddressFilterDefaultMulticastAddressFilter(final String filterString, final String checkAddr)
throws Exception
{

// final InetAddressFilter filter = new InetAddressFilter();
final InetAddressFilter filter = getFilter();
final MockFilterConfig config = new MockFilterConfig(servletContext);
config.addInitParameter(InetAddressFilter.INET_ADDRESS_FILTERS, filterString);
Expand All @@ -315,7 +313,7 @@ public void testInetAddressFilterDefaultMulticastAddressFilter(final String filt
final MockHttpServletRequest request = createMockHttpServletRequest(checkAddr);
final MockHttpServletResponse response = new MockHttpServletResponse();
filter.doFilter(request, response, new MockFilterChain());
Assert.assertTrue(response.getStatus() == HttpServletResponse.SC_FORBIDDEN);
Assert.assertEquals(response.getStatus(),HttpServletResponse.SC_FORBIDDEN, "The " + filterString + " filter did not return the expected response when " + checkAddr + " was checked.");

filter.destroy();
}
Expand Down

0 comments on commit 05f373a

Please sign in to comment.