Strange error when running JUnit test (4.1 and 4.4)


I am getting strange errors running JUnit tests:

java.lang.NoSuchMethodError: com.konri.analysis.Analysis.getCashFlows()Ljava/util/List;
at com.konri.analysis.AnalysisTest.testCashFlows(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at com.intellij.rt.execution.junit.JUnitStarter.main(
Process finished with exit code 255

Most of tests run fine, but some of those gets such error. There is no obvious difference between tests which passes ans which not - all tests are passing in ant build and from command line using same JVM e.t.c.

It is happening on both JUnit 4.1 and 4.4. I am using EAP version, build 7330,

Any one has some thoughts what it can be?

Best regards

1 comment
Comment actions Permalink


I found answer myself ... problem was in JVM - I'm on Mac OS X, and switch project to 1.6.0 ... problem was solved by switching back to 1.5.0



Please sign in to leave a comment.