1

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

eclipse resolution

Can Anyone advice me how to resolve this issue ?

Aravind
  • 1,145
  • 6
  • 18
  • 44
  • I have posted the answer for resolving the issue in eclipse. But getting a new error in maven build test execution. I will post that as a new question. – Aravind Feb 03 '17 at 00:49
  • 1
    Now that the linked question is resolved. Would suggest sharing the code for `TestNumberAction.testGetNthPrime` and relevant code that it is testing. Please update the question with minimal, verifiable info such that who reads can try and reproduce as well ensuring http://stackoverflow.com/help/mcve – Naman Feb 03 '17 at 03:04
  • @nullpointer: Thanks. I will follow the practice(minimal & verifiable) in future posts. After resolving that issue, I am facing this error again in maven build. Can anyone advice how to resolve this issue in maven test case execution. It was working fine in eclipse after adding the classes folder in build path. – Aravind Feb 03 '17 at 03:58

1 Answers1

0

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

Eclipse Error

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

Community
  • 1
  • 1
Aravind
  • 1,145
  • 6
  • 18
  • 44