Strange error when running JUnit test (4.1 and 4.4)

Hi,

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(AnalysisTest.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
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
Konrad

1 comment

Hi,

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

Regards
Konrad

0

Please sign in to leave a comment.