Hi Matt,

I'm not sure about @Before and @After methods in Pax Exam 1.x, but I can confirm they do not work in 2.2.0.

Or at least, they are run inside the driver and not inside the container, so you don't get what you expect.

The terminology (driver, container) is explained here:
http://team.ops4j.org/wiki/display/paxexam/Concepts

@Inject is not supported in 2.2.0. Instead, you pass the BundleContext as a parameter to your test method.

Most of this will change hopefully in 2.3.0, see
http://team.ops4j.org/wiki/display/paxexam/JUnit+Driver

I think we really should revert to no-args test methods (as in 1.x), which is what JUnit expects, so we'd be able to delegate more work to JUnit.

One of the major points I need to work out with Toni before the 2.3.0 release...

Best regards,
Harald

Am 25.08.2011 23:24, schrieb Matt Madhavan:
Hello,
It looks like that the methods with the above annotations do not seem to
be invoked? They used to work in 1.x. Am I missing something?

Thanks in advance!


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

Reply via email to