Struts 2 Junit 测试用例执行失败 (StrutsTestCase.getActionProxy:138 » NullPointer)

2022-01-16 00:00:00 java junit eclipse maven struts2

我创建了一个示例 struts 2 项目 &junit 测试用例请参考以下链接.

谁能告诉我如何解决这个问题?

解决方案

在构建路径中添加classes文件夹后解决eclipse中的错误.

但是在我遇到一个新的 问题 在 Maven 构建测试执行期间.

I created a sample struts 2 project & junit test case by referring the below link.

http://self-learning-java-tutorial.blogspot.com.au/2015/04/struts2-junit-integration.html

But, while executing the test case I am getting following error,

Error in Eclipse JUNIT stacktrace

Can Anyone advice me how to resolve this issue ?

解决方案

The error in eclipse is resolved after adding the classes folder in the build path.

But after I faced a new Issue during maven build test execution.

相关文章