hi, still trying to run the sample, testStatusCode throws (see below). both testStatusCode() & endStatusCode are no-ops (null body).
is there an easy way to remove these from the test suite (other than commenting out the tests)? where could one catch this to try and get by and continue the tests? thanks 16:57:45,880 [main] DEBUG unit.TestServletTestCase2 - Test case = testStatusCode 16:57:45,880 [main] DEBUG client.AbstractHttpClient - >doTest(simulation URL = [null], automatic session = [true], cookies = [], headers = [], method = [POST], parameters = [[[ServletTestRedirector_TestClass] = [[org.apache.cactus.sample.unit.TestServletTestCase2]]][[ServletTestRedirector_AutomaticSession] = [[true]]][[ServletTestRedirector_TestMethod] = [[testStatusCode]]]]) 16:57:45,880 [main] DEBUG client.HttpClientHelper - >HttpClientHelper([http://localhost:8080/test/ServletRedirector/]) 16:57:45,880 [main] DEBUG client.HttpClientHelper - <HttpClientHelper 16:57:45,880 [main] DEBUG client.HttpClientHelper - >connect(simulation URL = [null], automatic session = [true], cookies = [], headers = [], method = [POST], parameters = [[[ServletTestRedirector_TestClass] = [[org.apache.cactus.sample.unit.TestServletTestCase2]]][[ServletTestRedirector_Service] = [[CALL_TEST]]][[ServletTestRedirector_AutomaticSession] = [[true]]][[ServletTestRedirector_TestMethod] = [[testStatusCode]]]]) 16:57:45,880 [main] DEBUG client.HttpClientHelper - >addCookies(...) 16:57:45,880 [main] DEBUG client.HttpClientHelper - <addCookies 16:57:45,880 [main] DEBUG client.HttpClientHelper - <connect 16:57:45,880 [main] DEBUG ient.AutoReadHttpURLConnection - >getInputStream() 16:57:45,880 [main] DEBUG ient.AutoReadHttpURLConnection - Original connection = sun.net.www.protocol.http.HttpURLConnection:http://localhost:8080/test/ServletRedirector/ 16:57:45,880 [main] DEBUG unit.TestServletTestCase2 - Exception in test java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/test/ServletRedirector/ at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:564) at org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoReadHttpURLConnection.java:127) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:136) at org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409) public void testStatusCode() { // FIXME: use HttpClient for http connection // response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); } public void endStatusCode(WebResponse theResponse) throws IOException { // FIXME: use HttpClient for http connection // assertEquals(HttpServletResponse.SC_UNAUTHORIZED, // theResponse.getConnection().getResponseCode()); } --- ray tayek http://home.earthlink.net/~rtayek/ actively seeking telecommuting work orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
