Struts 2 Junit Test case execution failed (StrutsTestCase.getActionProxy:138 #187; NullPointer)(Struts 2 Junit 测试用例执行失败 (StrutsTestCase.getActionProxy:138 NullPointer))
问题描述
我创建了一个示例 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.
这篇关于Struts 2 Junit 测试用例执行失败 (StrutsTestCase.getActionProxy:138 » NullPointer)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Struts 2 Junit 测试用例执行失败 (StrutsTestCase.getActionProxy:138 » NullPointer)
基础教程推荐
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 存储 20 位数字的数据类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
