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

查看:78
本文介绍了Struts 2 Junit测试用例执行失败(StrutsTestCase.getActionProxy:138»NullPointer)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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,

Eclipse JUNIT堆栈跟踪中的错误

任何人都可以建议我如何解决此问题吗?

Can Anyone advice me how to resolve this issue ?

推荐答案

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

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

但是在我面对新的 查看全文

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