會員註冊 /
登入
|
電腦版
|
發表人:
wyhao31, 十級學員
2012-12-17 19:04:35
maven package以后,出现了单元测试不通过的错误:
Results :
Failed tests: testInReplyToIncorrectShouldCreateNewTopic(net.jforum.api.integration.mail.pop.POPListenerTestCase): The message was not inserted
Tests in error:
testSimple(net.jforum.api.integration.mail.pop.POPListenerTestCase)
testInReplyToCreateNewTopicThenReply(net.jforum.api.integration.mail.pop.POPListenerTestCase)
Tests run: 62, Failures: 1, Errors: 2, Skipped: 0
详细的异常如下:
Tests run: 3, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 1.211 sec <<< FAILURE!
testSimple(net.jforum.api.integration.mail.pop.POPListenerTestCase) Time elapsed: 1.142 sec <<< ERROR!
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:417)
at java.lang.Integer.parseInt(Integer.java:499)
at net.jforum.context.standard.StandardRequestContext.getIntParameter(StandardRequestContext.java:138)
at net.jforum.view.forum.PostAction.list(PostAction.java:129)
at net.jforum.view.forum.PostAction.isForumReadonly(PostAction.java:1489)
at net.jforum.view.forum.PostAction.insertSave(PostAction.java:956)
at net.jforum.api.integration.mail.pop.POPPostAction.insertMessage(POPPostAction.java:138)
at net.jforum.api.integration.mail.pop.POPPostAction.insertMessages(POPPostAction.java:116)
at net.jforum.api.integration.mail.pop.POPListener.execute(POPListener.java:92)
at net.jforum.api.integration.mail.pop.POPListenerTestCase.sendMessage(POPListenerTestCase.java:223)
at net.jforum.api.integration.mail.pop.POPListenerTestCase.testSimple(POPListenerTestCase.java:112)
求教这应该怎么解决?谢谢~
發表人:
andowson, 七段學員
2013-01-20 22:10:08
wyhao31您好:
目前我尚未遇到這個問題,推測是您的環境問題,請參考我這邊的開發環境:
OS: Windows 7
DB: MySQL Server 5.5.29
IDE: Eclipse Java EE IDE for Web Developers(Juno Service Release 1)
JDK: Oracle Java SE JDK 6.0 Update 38
Builder: Apache Maven 3.0.4
App Server: Apache Tomcat 7.0.35
會員註冊 /
登入
|
電腦版
|