<<< When I invoke a servlet method from a test method I expect that the simulated servlet container automatically invokes the init(ServerConfig config) method. >>>
Unfortunately this is just not how it works :) You have to call the init(config) method manually in your setUp (or wherever suits your needs). The problem with automating this test is that there is no way for the Cactus test class to know which object needs to be init()'ed. BTW, the servlet container is not "simulated"--it's the real container. Cheers, nick -----Original Message----- From: Raffaella Coccioli [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 7:24 AM To: Cactus Users List Subject: init() method not invoked When I invoke a servlet method from a test method I expect that the simulated servlet container automatically invokes the init(ServerConfig config) method. Why doesn't it happen? If this is normal, how can I do to enforce the init(config) invocation? P.S I'm using Tomcat 4.0.1 Thanks in advance -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
