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
Please sign in to leave a comment.
Did you add junit.jar as a local or global library?
Alain
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