How to setup JUnit in 856 ?

When trying to run a JUnit test I get the following exception:

java.lang.NoSuchMethodError: junit.textui.TestRunner.setPrinter(Ljunit/textui/ResultPrinter;)V
at com.intellij.rt.execution.junit2.IdeaJUnitAgent.setStreams(IdeaJUnitAgent.java:32)
at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:85)
at com.intellij.rt.execution.junit2.JUnitStarter.main(Process terminated with exit code 1
JUnitStarter.java:26)
Exception in thread "main"

How should I setup Aurora 856 so that running tests works ?

Best regards

Thomas Gülden
Munich, Germany

0
2 comments
Avatar
Permanently deleted user

Did you add junit.jar as a local or global library?

Alain

0
Avatar
Permanently deleted user

I got it to work. I discovered that I also had a junit.jar in a project library. After removing junit from that library and replacing it with junit.jar shipped with Aurora, it worked.

Thanks for the help.

Thomas Gülden
Munich, Germany

0

Please sign in to leave a comment.