On 23 Apr, To: Cactus Mailing List wrote:
> Hi,
>
> We have a setup which generates a lot of war files in
>
> /tmp/foo/foo.war
> /tmp/bar/bar.war
> .
> .
> .
>
> I want to create some tests for Cactus which tests the classes in the above
> wars. I was hoping that I could put all my tests in a cactus.war file and
> run the tests correclty. Is this possible? Or do I have to have all my tests
> in the foo.war, bar.war, etc. files? Should I try to use an EAR file for my
> cactus tests?
>
Ok, let me change this question. After rereading the config page, I decided
to take all the .class files and put them in my cactus.war file. However,
when I run my tests, I get this error:
[junit] Testcase: testDoGet took 0.036 sec
[junit] Caused an ERROR
[junit] Not a valid response
[junit] org.apache.cactus.util.ChainedRuntimeException: Not a valid response
[junit] at
org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):134)
[junit] at
org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
[junit] at
org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):1221)
[junit] at
org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParser.java;org/apache/cactus/util/log/LogAspect.java(1k):96)
[junit] at
org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):231)
[junit] at
org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):123)
[junit] at
org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):1221)
[junit] at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.java(1k):115)
[junit] at
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:457)
[junit] at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
[junit] at
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:131)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)
What causes this in my setup?
L
--
Laurent Duperval <mailto:[EMAIL PROTECTED]>
LARKINSON'S LAW
All laws are basically false.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>