You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Bret Kumler <bk...@bitfone.com> on 2004/09/10 20:38:44 UTC
Suite
I have a stupid question.
The code below, do I need to extend ServletTestCase or can I remove it?
public class TestAllServices extends ServletTestCase {
public static Test suite() {
ServletTestSuite suite = new ServletTestSuite();
suite.addTest(com.tests.TestDMEJB.suite());
suite.addTest(com.test.TestDIEJB.suite());
return suite;
}
}
RE: Suite
Posted by Vincent Massol <vm...@pivolis.com>.
BTW, it's even better to write:
public class TestAllServices {
public static Test suite() {
ServletTestSuite suite = new ServletTestSuite();
suite.addTestSuite(TestDMEJB.class);
suite.addTestSuite(TestDIEJB.class);
return suite;
}
}
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: vendredi 10 septembre 2004 22:43
> To: 'Cactus Users List'
> Subject: RE: Suite
>
> That's what I thought, just wanted to make sure :-)
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Friday, September 10, 2004 1:13 PM
> To: 'Cactus Users List'
> Subject: RE: Suite
>
> Hi Bret,
>
> You should not extend anything.
>
> public class TestAllServices {
> public static Test suite() {
> ServletTestSuite suite = new ServletTestSuite();
> suite.addTest(com.tests.TestDMEJB.suite());
> suite.addTest(com.test.TestDIEJB.suite());
> return suite;
> }
> }
>
> -Vincent
>
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > Sent: vendredi 10 septembre 2004 20:39
> > To: 'Cactus Users List'
> > Subject: Suite
> >
> > I have a stupid question.
> >
> > The code below, do I need to extend ServletTestCase or can I remove it?
> >
> > public class TestAllServices extends ServletTestCase {
> > public static Test suite() {
> > ServletTestSuite suite = new ServletTestSuite();
> > suite.addTest(com.tests.TestDMEJB.suite());
> > suite.addTest(com.test.TestDIEJB.suite());
> > return suite;
> > }
> > }
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
RE: Suite
Posted by Bret Kumler <bk...@bitfone.com>.
That's what I thought, just wanted to make sure :-)
-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Friday, September 10, 2004 1:13 PM
To: 'Cactus Users List'
Subject: RE: Suite
Hi Bret,
You should not extend anything.
public class TestAllServices {
public static Test suite() {
ServletTestSuite suite = new ServletTestSuite();
suite.addTest(com.tests.TestDMEJB.suite());
suite.addTest(com.test.TestDIEJB.suite());
return suite;
}
}
-Vincent
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: vendredi 10 septembre 2004 20:39
> To: 'Cactus Users List'
> Subject: Suite
>
> I have a stupid question.
>
> The code below, do I need to extend ServletTestCase or can I remove it?
>
> public class TestAllServices extends ServletTestCase {
> public static Test suite() {
> ServletTestSuite suite = new ServletTestSuite();
> suite.addTest(com.tests.TestDMEJB.suite());
> suite.addTest(com.test.TestDIEJB.suite());
> return suite;
> }
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org
RE: Suite
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Bret,
You should not extend anything.
public class TestAllServices {
public static Test suite() {
ServletTestSuite suite = new ServletTestSuite();
suite.addTest(com.tests.TestDMEJB.suite());
suite.addTest(com.test.TestDIEJB.suite());
return suite;
}
}
-Vincent
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: vendredi 10 septembre 2004 20:39
> To: 'Cactus Users List'
> Subject: Suite
>
> I have a stupid question.
>
> The code below, do I need to extend ServletTestCase or can I remove it?
>
> public class TestAllServices extends ServletTestCase {
> public static Test suite() {
> ServletTestSuite suite = new ServletTestSuite();
> suite.addTest(com.tests.TestDMEJB.suite());
> suite.addTest(com.test.TestDIEJB.suite());
> return suite;
> }
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org