i am writing my first maven plugin and want to add unit tests for it. i read some about that and it seems that i need to extend AbstractMojoTestCase. But with this i only have JUnit3 style. Is there any way to use Junit4 (i want it mainly because of the "@Rule"s) probably in conjunction with mockito and/or guice (=juckito)?
At first step i need to inject @Parameter. i tried System.setProperty("some.prop", "someValue"); but this isn't working (parameter are null).
thx in advance