"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zxingorg/src/test/java/com/google/zxing/web/WelcomeFilterTestCase.java" between
zxing-zxing-3.4.0.tar.gz and zxing-zxing-3.4.1.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.

WelcomeFilterTestCase.java  (zxing-zxing-3.4.0):WelcomeFilterTestCase.java  (zxing-zxing-3.4.1)
skipping to change at line 42 skipping to change at line 42
public final class WelcomeFilterTestCase extends Assert { public final class WelcomeFilterTestCase extends Assert {
@Test @Test
public void testRedirect() { public void testRedirect() {
MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletRequest request = new MockHttpServletRequest();
request.setRequestURI("/"); request.setRequestURI("/");
HttpServletResponse response = new MockHttpServletResponse(); HttpServletResponse response = new MockHttpServletResponse();
FilterChain chain = new MockFilterChain(); FilterChain chain = new MockFilterChain();
new WelcomeFilter().doFilter(request, response, chain); new WelcomeFilter().doFilter(request, response, chain);
assertEquals(HttpServletResponse.SC_MOVED_PERMANENTLY, response.getStatus()) ; assertEquals(HttpServletResponse.SC_MOVED_PERMANENTLY, response.getStatus()) ;
assertEquals("/w/decode.jspx", response.getHeader(HttpHeaders.LOCATION)); String location = response.getHeader(HttpHeaders.LOCATION);
assertNotNull(location);
assertTrue(location.startsWith("https://"));
assertTrue(location.endsWith("/w/decode.jspx"));
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)