JUnit testing with a Maven project in NetBeans
Hello there!
I'm running a Maven project using NetBeans which uses RTC PlainJavaClient Api. I've added it to classpath and can use it with no problems. I'm trying to run some JUnit tests. Each time I'm getting the same error. It seems as though the platform can't start during JUnit test. I get the following error: testAddListener caused an ERROR: class "org.eclipse.core.runtime.IContributor"'s signer information does not match signer information of other classes in the same package Anyone can help? Regards, Paweł |
One answer
I get the following error: Greetings, Pawel I've usually seen that message when I have two copies of a JAR on the classpath, each of which has different versions. Some classes are loaded from one JAR, and some from the other, which results in the error message you're seeing. Since you're running JUnit, are you including a JUnit jar file on the classpath of your project, and also using the built-in Eclipse JUnit library? If so, try removing the built-in JAR (which is usually an earlier version), and see if that helps. Keith McMillan |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.