Hi,
I am getting a NullPointerException when running SureFire plugin and getting a
failed test:
No exceptions are thrown if all the tests pass. I am using SureFire plugin
2.4.2 (latest):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
</plugin>
My project is an aggregate type with the top-level being a pom type and one of
the child projects has a TestNG class located in src/test/java/ standard maven
dir.
More info about the testclass itself:
I am using Spring-Test in 2.5 with TestNG integration. This works fine using
the testNG plugin for eclipseIDE.
@ContextConfiguration(locations={"classpath:testApplicationContext.xml"})
@Test(groups = "integration-jpa")
public class ReferenceDomainToEntitiesBridgeImplTest extends
AbstractTestNGSpringContextTests {
//test methods here
}
Anyone hit similar issues?
Thanks,
-Guillaume
stacktrace:
org.apache.maven.surefire.booter.SurefireExecutionException: null; nested except
ion is java.lang.NullPointerException: null
java.lang.NullPointerException
at
org.apache.maven.surefire.report.AbstractTextReporter.testFailed(AbstractTextReporter.java:111)
at
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:335)
at
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:317)
at
org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGReporter.java:103)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1433)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1417)
at
org.testng.internal.Invoker.handleInvocationResults(Invoker.java:1152)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:887)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:689)
at org.testng.TestRunner.privateRun(TestRunner.java:566)
at org.testng.TestRunner.run(TestRunner.java:466)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
at org.testng.SuiteRunner.run(SuiteRunner.java:191)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
at org.testng.TestNG.run(TestNG.java:701)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that
is privileged, confidential, and/or otherwise protected from disclosure to
anyone other than its intended recipient(s). Any dissemination or use of this
electronic email or its contents (including any attachments) by persons other
than the intended recipient(s) is strictly prohibited. If you have received
this message in error, please notify us immediately by reply email so that we
may correct our internal records. Please then delete the original message
(including any attachments) in its entirety. Thank you.