No, you can have any number of test methods per test class.

The problem must be somewhere else. Which OSGi framework(s) are you
using for your test? What happens when you comment out the @Test
annotation on your first method so that Exam only sees the second one?

Best regards,
Harald

2011/9/8 Sathyakumar Seshachalam <[email protected]>:
> Hi,
>
>
>
> I am running a unit test (@Junit4TestRunner.class) which has two @Test
> annotated methods both of which take a BundleContext as argument. Weirdly
> the second test method fails with a “ClassNotFoundException” of the test
> class itself, while the first one executes without a problem. If I copy and
> paste contents of the second test method in to the one, it all works fine.
> Does this mean I can only have one test method ? note am using pax runner as
> the container.
>
>

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to