ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Choosing junit tests (again)
Date Fri, 24 Sep 2004 11:00:04 GMT
Yes - only non-argument-constructors are implied.
Constructors are not inherited.

Therefore you have to write that :)  (like each generator does that)
But its simple: just call super(s)

Jan

> -----Ursprüngliche Nachricht-----
> Von: André Dantas Rocha [mailto:ad-rocha@uol.com.br]
> Gesendet am: Freitag, 24. September 2004 12:59
> An: 'Ant Users List'
> Betreff: Choosing junit tests (again)
> 
> 
> One more question..
> 
> When using:
> 
> public class OneMethodTestSuite {
>   public static Test suite() {
>     TestSuite suite = new TestSuite();
>     suite.addTest(new MyTest("testMethodOne"));
>     return suite;
>   }
> }
> 
> MyTest is the class witch contains "testMethodOne" method? in 
> this case have
> I to implement a MyTest(String) constructor?
> 
> Thanks again,
> 
> André
> 
> 
> 
> 
>  
> 
> -----Mensagem original-----
> De: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Enviada em: sexta-feira, 24 de setembro de 2004 07:19
> Para: user@ant.apache.org
> Assunto: AW: Choosing junit tests
> 
> yes ... but not directly ...
> 
> JUnit is not able to run only one testcase so Ant cant do 
> that neither.
> BUT - you can create a test suite only running that one testcase.
> 
> Have found my earlier posting on JGuru :)
> http://www.jguru.com/forums/view.jsp?EID=1163524
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: André Dantas Rocha [mailto:ad-rocha@uol.com.br] Gesendet am: 
> > Freitag, 24. September 2004 12:14
> > An: user@ant.apache.org
> > Betreff: Choosing junit tests
> > 
> > Hi,
> >  
> > Is there a way to specify the junit tests to run?
> >  
> > Something like this:
> >  
> > public classe MyTestCase extends TestCase {
> >   public void testCase1 {}
> >   public void testCase2 {}
> >   public void testCase3 {}
> > }
> >  
> > I would like to run only testCase2 and testCase3. Is it possible?
> >  
> > Thanks,
> >  
> > André
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message