1 16 package org.apache.cocoon; 17 18 23 public class Bug26571SendPageRedirectTestCase 24 extends HtmlUnitTestCase 25 { 26 static final String pageurl = "/samples/test/sendpage-redirect/"; 27 28 public void testSendPageRedirectGood() 29 throws Exception  30 { 31 loadResponse(pageurl+"test-good"); 32 assertEquals("Status code match", 302, response.getStatusCode()); 33 } 34 35 public void testSendPageRedirectBad() 36 throws Exception  37 { 38 loadResponse(pageurl+"test-bad"); 39 assertEquals("Status code match", 302, response.getStatusCode()); 40 } 41 } 42 | Popular Tags |