You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Neeme Praks <ne...@inpoc.com> on 2001/11/01 01:23:57 UTC
scratchpad tests
Why do we have the following exclusion in our JUnit Ant task when testing
scratchpad?:
<exclude name="**/test/Abstract*TestCase.class"/>
I have org.apache.avalon.excalibur.i18n.test.AbstractBundleTestCase and I
would like to run this one as well...
Neeme
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: scratchpad tests
Posted by Neeme Praks <ne...@one.ee>.
well, my test is a _non-abstract_ class, but it is testing the _abstract_
class (it has inner class that implements the abstract methods).
Probably I can work around it by renaming something...
> -----Original Message-----
> From: Berin Loritsch [mailto:bloritsch@apache.org]
> Sent: Wednesday, October 31, 2001 6:42 AM
> To: Avalon Developers List
> Subject: Re: scratchpad tests
>
>
> Neeme Praks wrote:
> >
> > Why do we have the following exclusion in our JUnit Ant task
> when testing
> > scratchpad?:
> > <exclude name="**/test/Abstract*TestCase.class"/>
> >
> > I have
> org.apache.avalon.excalibur.i18n.test.AbstractBundleTestCase and I
> > would like to run this one as well...
>
> Because _Abstract_ classes cannot be instantiated. If your
> AbstractBundleTestCase
> is indeed a concrete class, then I would rename it to something
> that reflects that,
> like BaseBundleTestCase. That implies it is meant to be
> extended, and it does not
> imply that the class is declared abstract.
>
>
> --
>
> "Those who would trade liberty for
> temporary security deserve neither"
> - Benjamin Franklin
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: scratchpad tests
Posted by Berin Loritsch <bl...@apache.org>.
Neeme Praks wrote:
>
> Why do we have the following exclusion in our JUnit Ant task when testing
> scratchpad?:
> <exclude name="**/test/Abstract*TestCase.class"/>
>
> I have org.apache.avalon.excalibur.i18n.test.AbstractBundleTestCase and I
> would like to run this one as well...
Because _Abstract_ classes cannot be instantiated. If your AbstractBundleTestCase
is indeed a concrete class, then I would rename it to something that reflects that,
like BaseBundleTestCase. That implies it is meant to be extended, and it does not
imply that the class is declared abstract.
--
"Those who would trade liberty for
temporary security deserve neither"
- Benjamin Franklin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>