项目打包异常
Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 17.479 s <<< FAILURE! - in org.jeecg.SampleTesttestTran(org.jeecg.SampleTest)Time elapsed: 0.833 s<<< ERROR!
java.lang.NumberFormatException: For input string: "hello"
at org.jeecg.SampleTest.testTran(SampleTest.java:45)
testSelect(org.jeecg.SampleTest)Time elapsed: 0.042 s<<< FAILURE!
java.lang.AssertionError: expected:<5> but was:<15>
at org.jeecg.SampleTest.testSelect(SampleTest.java:29)
2019-03-02 13:51:53.959 INFOo.s.w.context.support.GenericWebApplicationContext:993 - Closing org.springframework.web.context.support.GenericWebApplicationContext@71454b9d: startup date ; root of context hierarchy
2019-03-02 13:51:53.964 INFOo.s.context.support.DefaultLifecycleProcessor:366 - Stopping beans in phase 2147483647
2019-03-02 13:51:53.967 INFOorg.quartz.core.QuartzScheduler:585 - Scheduler quartzScheduler_$_NON_CLUSTERED paused.
2019-03-02 13:51:53.978 INFOo.s.scheduling.quartz.SchedulerFactoryBean:824 - Shutting down Quartz Scheduler
2019-03-02 13:51:53.979 INFOorg.quartz.core.QuartzScheduler:666 - Scheduler quartzScheduler_$_NON_CLUSTERED shutting down.
2019-03-02 13:51:53.979 INFOorg.quartz.core.QuartzScheduler:585 - Scheduler quartzScheduler_$_NON_CLUSTERED paused.
2019-03-02 13:51:53.980 INFOorg.quartz.core.QuartzScheduler:740 - Scheduler quartzScheduler_$_NON_CLUSTERED shutdown complete.
Results:
Failures:
SampleTest.testSelect:29 expected:<5> but was:<15>
Errors:
SampleTest.testTran:45 » NumberFormat For input string: "hello"
Tests run: 3, Failures: 1, Errors: 1, Skipped: 0
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 21.835 s
Finished at: 2019-03-02T13:51:54+08:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project jeecg-boot: There are test failures.
Please refer to D:\workspace\jeecg-boot\jeecg-boot\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) -jvmRun.dump, .dumpstream and -jvmRun.dumpstream.
->
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
页:
[1]