On Mar 24, 6:34 pm, dom.k.bl...@googlemail.com wrote:
> > dom.k.bl...@googlemail.com wrote:
> > > I am fairly new to JUnit so maybe I did something silly here.
[quoted text clipped - 19 lines]
> Thanks for confirming this. Maybe I picked up a dodgy beta JUnit
> version. I will try a different one.
Note that if your test suite is a class derived from TestCase or
TestSuite, JUnit 4 will run it "as if" under JUnit 3's rules, in which
case any exception is an error, and @Test is ignored entirely. To use
the JUnit 4 features, your class should be derived from Object -- and
you don't need to name your test cases testSomething, just something,
provided they're correctly annotated.
-o
Patricia Shanahan - 25 Mar 2008 01:06 GMT
> On Mar 24, 6:34 pm, dom.k.bl...@googlemail.com wrote:
>>
[quoted text clipped - 23 lines]
>
> -o
Indeed, the test in which I embedded the sample code is designed as a
JUnit 4 test, and does not extend TestCase.
Patricia
dom.k.black@googlemail.com - 25 Mar 2008 09:01 GMT
> On Mar 24, 6:34 pm, dom.k.bl...@googlemail.com wrote:
>
[quoted text clipped - 30 lines]
>
> -o
Thanks, that might be it.
I changed the class to be derived from TestCase.
But if I don't do that, I can add the test to the AllTests test suite
(addSuite needsa TestCase subclass)?