Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 73530 invoked from network); 24 Sep 2004 11:27:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Sep 2004 11:27:02 -0000 Received: (qmail 7983 invoked by uid 500); 24 Sep 2004 11:28:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 7889 invoked by uid 500); 24 Sep 2004 11:28:22 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 7811 invoked by uid 99); 24 Sep 2004 11:28:20 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.182] (HELO web52905.mail.yahoo.com) (206.190.39.182) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 24 Sep 2004 04:28:17 -0700 Message-ID: <20040924112813.8442.qmail@web52905.mail.yahoo.com> Received: from [212.95.183.130] by web52905.mail.yahoo.com via HTTP; Fri, 24 Sep 2004 04:28:13 PDT Date: Fri, 24 Sep 2004 04:28:13 -0700 (PDT) From: Ivan Ivanov Subject: Re: AW: Choosing junit tests (again) To: Ant Users List In-Reply-To: <879A5AD5DD0ED511891F0003473A9B560E23F66F@Z011004> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Actually, this is the habit of most IDEs :)). But the correct answer was yours: it won't work as the constructors are not inherited. Good habits prevents us from learning. --- Jan.Materne@rzf.fin-nrw.de wrote: > good habbit ;-) > > Jan > > > -----Urspr�ngliche Nachricht----- > > Von: Ivan Ivanov > [mailto:rambiusparkisanius@yahoo.com] > > Gesendet am: Freitag, 24. September 2004 13:01 > > An: Ant Users List > > Betreff: Re: Choosing junit tests (again) > > > > I do not know, whether this snippet will work. > Most > > probably yes. I have the habit in all my test case > to > > provide the default no-arg constructor and the > > contructor with single argument - the name of the > > test. > > > > --- Andr� Dantas Rocha > wrote: > > > > > > > > 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 > > > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - Send 10MB messages! > > http://promotions.yahoo.com/new_mail > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org