On Sat, Jan 24, 2009 at 10:51 AM, Amin Mohammed-Coleman <ami...@gmail.com>wrote:
> I have junit 4 tests which all run correctly in eclipse. However when I > try to run the tests in maven (mvn test) I get nullpointerexceptions (due to > classes not being instantiated properly. > > Any help would be appreciated. Probably means Maven is running them as JUnit 3.X and ignoring the @Before annotations. mvn -X test, pipe the output, and check which version of Junit.jar is being used. - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/