在JDK 1.8

时间:2015-07-30 15:33:47

标签: maven java-8 testng maven-surefire-plugin

当我尝试运行测试用例(testng-6.9.4)时将java升级到1.8版本后,我在运行它时遇到以下异常。

我也在使用 maven-surefire-plugin版本2.18.1。 com.googlecode.jmockit版本0.999.15

异常日志:

    -------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.x.SampleTest
Configuring TestNG with: TestNG652Configurator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.979 sec - in com.x.SampleTest
st
Running com.x.OtherFileImplTest
Configuring TestNG with: TestNG652Configurator
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2.271 sec <<< FAILURE! - in com.x.OtherFileImplTest
testRetrieveCollectionOfViews(com.x.OtherFileImplTest)  Time elapsed: 0.022 sec  <<< FAILURE!
java.lang.IllegalArgumentException: null
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:129)
        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:113)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

0 个答案:

没有答案