jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tanmay_ambre" <tanmay_am...@infosys.com>
Subject RE: Infinite Recursion when using suite method in cactus
Date Fri, 19 Nov 2004 09:34:35 GMT
Thanks Nicolas. How stupid of me :)
 


Warm Regards,
 
tanmay ambre,
Infosys Technologies Ltd,
Pune, India.
 
(O) +91-20-22973681
(m) +91-9850414331
 

-----Original Message-----
From: Nicolas.CHALUMEAU@arsoe-trelaze.com [mailto:Nicolas.CHALUMEAU@arsoe-trelaze.com] 
Sent: Friday, November 19, 2004 2:18 PM
To: Cactus Users List
Subject: Re: Infinite Recursion when using suite method in cactus

Normal. It is a programmation error : return suite; instead of return suite(); will solve
your problem





"tanmay_ambre" <tanmay_ambre@infosys.com>
19/11/2004 06:03
Veuillez répondre à "Cactus Users List"

 
        Pour :  <cactus-user@jakarta.apache.org>
        cc : 
        Objet : Infinite Recursion when using suite method in cactus


Hi,
 
I have written a TestSuite which has a public static Test suite() method in it. The method
implementation is as follows:
 
    public static Test suite()
    {
        ServletTestSuite suite = new ServletTestSuite();
        suite.addTest(new TestCactusDelegate("testGetCustInfo"));
        return suite();
    }
 
Whenever I try running this test case using Browser Integration or Ant integration, the program
goes in an infinite recursive loop. 
 
For running the unittests I use the following jars in the classpath. I also use cactifywar
to create a war file for unit testing. The app server is Weblogic 8.1
 
aspectjrt-1.1.1.jar
cactus-1.6.1.jar
cactus-ant-1.6.1.jar
commons-httpclient-2.0.2.jar
commons-logging-1.0.3.jar
httpunit-1.5.4.jar
junit-3.8.1.jar
nekohtml-0.7.4.jar
 
 
Following is the trace from a log file. This trace gets repeated infinitely.
 
 
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
<setDelegatedTest([testGetCustInfo(be.telenet.unittest.testcactus.testwe
bclient.testdelegate.TestCactusDelegate)])
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
>setDelegatedTest
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
<setWrappedTest([null])
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
>setWrappedTest
[DEBUG][org.apache.cactus.ServletTestSuite]:
<addTest([testGetCustInfo(be.telenet.unittest.testcactus.testwebclient.t
estdelegate.TestCactusDelegate)])
[DEBUG][org.apache.cactus.ServletTestSuite]: >addTest
 
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
<setDelegatedTest([testGetCustInfo(be.telenet.unittest.testcactus.testwe
bclient.testdelegate.TestCactusDelegate)])
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
>setDelegatedTest
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
<setWrappedTest([null])
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
>setWrappedTest
[DEBUG][org.apache.cactus.ServletTestSuite]:
<addTest([testGetCustInfo(be.telenet.unittest.testcactus.testwebclient.t
estdelegate.TestCactusDelegate)])
[DEBUG][org.apache.cactus.ServletTestSuite]: >addTest
 
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
<setDelegatedTest([testGetCustInfo(be.telenet.unittest.testcactus.testwe
bclient.testdelegate.TestCactusDelegate)])
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
>setDelegatedTest
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
<setWrappedTest([null])
[DEBUG][org.apache.cactus.internal.server.ServerTestCaseCaller]:
>setWrappedTest
[DEBUG][org.apache.cactus.ServletTestSuite]:
<addTest([testGetCustInfo(be.telenet.unittest.testcactus.testwebclient.t
estdelegate.TestCactusDelegate)])
[DEBUG][org.apache.cactus.ServletTestSuite]: >addTest
 
Warm Regards,
 
tanmay ambre,
Infosys Technologies Ltd,
Pune, India.
 
(O) +91-20-22973681
(m) +91-9850414331
 
 




---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message