I can create a JUnit4 test case. I know it no longer extends TestCase,
but I can't figure out how to launch the test. When I go to 'run', it
does not recognize the class as a JUnitTest. The eclipse help isn't.
> I can create a JUnit4 test case. I know it no longer extends TestCase,
> but I can't figure out how to launch the test. When I go to 'run', it
> does not recognize the class as a JUnitTest. The eclipse help isn't.
Do you have the correct version of the JUnit library on your build
path?
Did you properly annotate your test methods with "@Test"?
Henk
bucky - 27 Jul 2007 14:19 GMT
> > I can create a JUnit4 test case. I know it no longer extends TestCase,
> > but I can't figure out how to launch the test. When I go to 'run', it
[quoted text clipped - 6 lines]
>
> Henk
There's my problem - I didn't include an "@Test". Once I did that, the
code was recognized as a JUnit4 test case.
Using JUnit3, I had the habit of creating an empty test case and
running it, getting a error, just as a preliminary check. I tried to
do this with JUnit4, but it doesn't work that way.
Henk -- thanks for your help.