jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Question about Servlet TestSuite
Date Sat, 18 Oct 2003 08:36:30 GMT


> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@firstam.com]
> Sent: 17 October 2003 22:55
> To: Cactus Users List
> Subject: Question about Servlet TestSuite
> 
> I have the following script
> 
> package com.test;
> 
> import junit.framework.*;
> import org.apache.log4j.Logger;
> 
> 
> 
> public class AllBatTests{
> 
> 
>   private static Logger logger = Logger.getLogger(AllBatTests.class);
> 
> 
>   public static Test suite() {
>     TestSuite suite = new TestSuite();
>     suite.addTest(com.test.QaServiceBatTest.suite());
>     suite.addTest(com.test.QaProductBatTest.suite());
>     return suite;
>   }
> }
> 
> If I change it to
> 
> public static Test suite() {
>     ServletTestSuite suite = new ServletTestSuite ();
>     suite.addTest(com.test.QaServiceBatTest.suite());
>     suite.addTest(com.test.QaProductBatTest.suite());
>     return suite;
> }
> 
> Can I still use JUnit to run the test or do I need seperate test
suites?

I don't understand. What you have written *is* a test suite. As with all
cactus tests you need to use a JUnit test runner to start the test.

-Vincent


Mime
View raw message