0

Possible Duplicate:
Unrooted Tests

I've a meven project and I integrated Junit for testing some methods. When I lunch Run-> Maven Install all tests are executed but if I write a new test and then I try to lunch it JUnit returned my an InitializationError of UnrootedTest? Why?

Community
  • 1
  • 1
Claudio Pomo
  • 2,392
  • 7
  • 42
  • 71

1 Answers1

0

If your class extends TestCase somewhere in its hierarchy, you have to use the JUnit 3 test runner listed in the drop down under run configurations. Using the JUnit 4 runner (the default I believe) causes that unrooted test phenomenon to occur.

Check this question, might help: Unrooted Tests

Community
  • 1
  • 1
Anshu
  • 7,783
  • 5
  • 31
  • 41