Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 11909 invoked from network); 2 Jan 2001 12:50:08 -0000 Received: from unknown (HELO ?195.115.98.1?) (195.115.98.1) by h31.sny.collab.net with SMTP; 2 Jan 2001 12:50:08 -0000 Received: from maileu.imediation.com by [195.115.98.1] via smtpd (for h31.sny.collab.net [64.208.42.41]) with SMTP; 2 Jan 2001 13:49:49 UT Received: (private information removed) Message-ID: <9B3E950CB293D411ADF4009027B0A4D25E760E@maileu.imediation.com> From: Stephane Bailliez To: ant-user@jakarta.apache.org Cc: noel.rappin@openwave.com Subject: RE: JUnit Task Date: Tue, 2 Jan 2001 12:53:05 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C074BA.F301CA36" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C074BA.F301CA36 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The JUnit test runner tries first to find a static suite method and use = it, if it is not found it tries to extract a TestSuite from the class. Could you provide a small sample code of your 2 classes because I = cannot get the picture. --=20 St=E9phane Bailliez=20 Software Engineer, Paris - France=20 iMediation - http://www.imediation.com=20 Disclaimer: All the opinions expressed above are mine and not those = from my company.=20 > -----Original Message----- > From: Noel Rappin [mailto:noel.rappin@openwave.com] > Sent: Friday, December 29, 2000 4:22 PM > To: ant-user@jakarta.apache.org > Subject: JUnit Task >=20 >=20 > I think this just got answered to the list, but I deleted the=20 > message, so I > apologize if this is a repeat. >=20 > I'm trying to use the JUnit task -- I'm starting with one subclass of > TestCase that has a constructor, a startUp() a tearDown() and one > testSomething() method. I also have a second class that=20 > contains a static > suite() method that returns the suite from the TestCase. =20 > This works from > the JUnit TextRunner. >=20 > Trying to do this in Ant, I see the following problems: >=20 > * When I point the to the TestCase, I get the message: > No tests found in com.whatever.my.TestCase >=20 > * When I point the at the second class, Ant complains=20 > that it doesn't > have a TestCase(String) constructor, which is true, but I was=20 > expecting it > to call the static suite() method. >=20 > So how does the Ant JUnit task find tests? What am I missing here? >=20 > Thanks, >=20 > Noel >=20 > ------------- > Noel Rappin > Openwave > Principal Software Engineer, Internal Development > Noel.Rappin@openwave.com > (781) 274-7000 x305 > ---------------- > The opinions expressed in this message are not those of Openwave. >=20 >=20 >=20 >=20 ------_=_NextPart_001_01C074BA.F301CA36 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: JUnit Task

The JUnit test runner tries first to find a static = suite method and use it, if it is not found it tries to extract a = TestSuite from the class.

Could you provide a small sample code of your 2 = classes because I cannot get the picture.

--
 St=E9phane Bailliez
 Software Engineer, Paris - France
 iMediation - http://www.imediation.com
 Disclaimer: All the opinions expressed above = are mine and not those from my company.



> -----Original Message-----
> From: Noel Rappin [mailto:noel.rappin@openwave.com= ]
> Sent: Friday, December 29, 2000 4:22 PM
> To: ant-user@jakarta.apache.org
> Subject: JUnit Task
>
>
> I think this just got answered to the list, but = I deleted the
> message, so I
> apologize if this is a repeat.
>
> I'm trying to use the JUnit task -- I'm = starting with one subclass of
> TestCase that has a constructor, a startUp() a = tearDown() and one
> testSomething() method.  I also have a = second class that
> contains a static
> suite() method that returns the suite from the = TestCase. 
> This works from
> the JUnit TextRunner.
>
> Trying to do this in Ant, I see the following = problems:
>
> * When I point the <test> to the = TestCase, I get the message:
> No tests found in = com.whatever.my.TestCase
>
> * When I point the <test> at the second = class, Ant complains
> that it doesn't
> have a TestCase(String) constructor, which is = true, but I was
> expecting it
> to call the static suite() method.
>
> So how does the Ant JUnit task find = tests?  What am I missing here?
>
> Thanks,
>
> Noel
>
> -------------
> Noel Rappin
> Openwave
> Principal Software Engineer, Internal = Development
> Noel.Rappin@openwave.com
> (781) 274-7000 x305
> ----------------
> The opinions expressed in this message are not = those of Openwave.
>
>
>
>

------_=_NextPart_001_01C074BA.F301CA36--