Struts 2 Junit 测试用例执行失败 (StrutsTestCase.getActionProxy:138 » NullPointer) [英] Struts 2 Junit Test case execution failed (StrutsTestCase.getActionProxy:138 » NullPointer)

查看:27
本文介绍了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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆