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)
求教这应该怎么解决?谢谢~
|