Hey, Sounds to me like you haven't deployed your updated test class to JBoss. I don't have a lot of experience with JBoss, but copy the test class you modified to WEB-INF/classes (wherever that is for your web-app). Then try running the test over again. Not sure if you'll have to restart JBoss.
Good luck. -Larry -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 9:25 AM To: [EMAIL PROTECTED] Subject: Problem writing multiple tests in a test case Hi Iam new to cacuts Iam trying to write multiple tests in a test case, consider sample ejb example provided by cacuts I wrote one more test method testConvert1 in addition to testConvert method in TestConverterEJB.java /** * Sample Cactus test for a session bean. * * @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a> * * @version $Id: TestConverterEJB.java,v 1.2.2.1 2003/10/23 18:22:53 vmassol Exp $ */ public class TestConverterEJB extends ServletTestCase { private Converter converter; public TestConverterEJB(String name) { super(name); } public static Test suite() { TestSuite ts=new TestSuite(TestConverterEJB.class); return ts; } public void setUp() { try { Context ctx = new InitialContext(); ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(ctx.lookup("java:comp/ejb/Converter"), ConverterHome.class); this.converter = home.create(); } catch(Exception e) { e.printStackTrace(); } } public void testConvert() throws Exception { double dollar = this.converter.convertYenToDollar(100.0); assertEquals("dollar", 1.0, dollar, 0.001); } public void testConvert1() throws Exception { double dollar = this.converter.convertYenToDollar(100.0); assertEquals("dollar", 1.0, dollar, 0.001); } } While running the on jboss server their was error during run time init: compile.java: Created dir: F:\jakarta-cactus-13-1.5\samples\ejb\target\classes\java Compiling 3 source files to F:\jakarta-cactus-13-1.5 \samples\ejb\target\classes\java ejb: Building jar: F:\jakarta-cactus-13-1.5 \samples\ejb\target\cactus-sample-ejb.jar ear: Building ear: F:\jakarta-cactus-13-1.5 \samples\ejb\target\cactus-sample-ejb.ear compile.cactus: Created dir: F:\jakarta-cactus-13-1.5\samples\ejb\target\classes\cactus Compiling 1 source file to F:\jakarta-cactus-13-1.5 \samples\ejb\target\classes\cactus test.war: Building war: F:\jakarta-cactus-13-1.5 \samples\ejb\target\cactus-sample-ejb.war Analyzing war: F:\jakarta-cactus-13-1.5 \samples\ejb\target\cactus-sample-ejb.war Building war: F:\jakarta-cactus-13-1.5 \samples\ejb\target\cactus-sample-ejb-cactified.war Building ear: F:\jakarta-cactus-13-1.5 \samples\ejb\target\cactus-sample-ejb-cactified.ear test.prepare: Created dir: F:\jakarta-cactus-13-1.5\samples\ejb\target\test-reports Created dir: F:\jakarta-cactus-13-1.5 \samples\ejb\target\test-reports\jboss3x Created dir: F:\jakarta-cactus-13-1.5 \samples\ejb\target\test-reports\orion1x Created dir: F:\jakarta-cactus-13-1.5 \samples\ejb\target\test-reports\orion2x test: ----------------------------------------------------------------- Running tests against JBoss 3.2.3 ----------------------------------------------------------------- Testsuite: org.apache.cactus.sample.ejb.TestConverterEJB Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.297 sec Testcase: testConvert1(org.apache.cactus.sample.ejb.TestConverterEJB): FAILED Method "testConvert1" not found junit.framework.AssertionFailedError: Method "testConvert1" not found at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295) at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller. java:156) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0 (AbstractWebTestController.java:130) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1 $advice(AbstractWebTestController.java:151) at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWeb TestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTes tRedirector.java:138) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(Ser vletTestRedirector.java:151) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector. java) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTest Redirector.java:109) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(Serv letTestRedirector.java:151) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.j ava) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrR ealm.java:220) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStat sValve.java:76) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci ationValve.java:65) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:677) at java.lang.Thread.run(Unknown Source) TEST org.apache.cactus.sample.ejb.TestConverterEJB FAILED Using Xalan version: Xalan Java 2.5.1 Transform time: 3656ms Using Xalan version: Xalan Java 2.5.1 Transform time: 109ms Using Xalan version: Xalan Java 2.5.1 Transform time: 109ms file:F:/jakarta-cactus-13-1.5/samples/ejb/build.xml:335: At least one test failed! BUILD FAILED Total time: 6 seconds I didnt change any xml file, should i do some configuration in WEB_INF xml files for that matter if cahnge testConvert name with even single method its giving same problem Pls help in this regards Thx in advance JP --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and its attachments are confidential under applicable law are intended for use of the senders addressee only, unless the sender expressly agrees otherwise, or unless a separate written agreement exists between Iron Mountain and a recipient company governing communications between the parties and any data that may be so transmitted. Transmission of email over the Internet is not a secure communications medium. If you are requesting or have requested the transmittal of personal data, as defined in applicable privacy laws, by means of email or in an attachment to email, you may wish to select a more secure alternate means of transmittal that better supports your obligations to protect such personal data. If the recipient of this message is not the recipient named above, and/or you have received this email in error, you must take no action based on the information in this email. You are hereby notified that any dissemination, misuse or copying or disclosure of this communication by a recipient who has received this message in error is strictly prohibited. If this message is received in error please return this email to the sender and immediately highlight any error in transmittal. Thank You --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
