Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

JUnit stops working after upgrade to 13.1.2

$
0
0

Hello

 

Yesterday I did a minor upgrade from 13.0 to 13.1.2, and now JUnit seems to have been affected. Nothing else has changed (classpaths, mvn, etc) - I'm simply importing junit 4.4 in pom.xml and trying to run a test. The code compiles fine, but when I try to debug a test I get:

 

Exception in thread "main" java.lang.NoSuchMethodError: org.junit.runner.manipulation.Filter.matchMethodDescription(Lorg/junit/runner/Description;)Lorg/junit/runner/manipulation/Filter;

at com.intellij.junit4.JUnit4TestRunnerUtil.buildRequest(JUnit4TestRunnerUtil.java:160)

at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:39)

at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)

at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)

Seaching online, people seem to reckon this is a classpath issue, e.g. JUnit 3.x leaking in. I don't see how that can be as nothing has changed since the upgrade. I have since deleted the JUnit 3.x libs in my maven repo, and made sure none of the dependancies I have also themselves depend on 3.x. Still no joy.
Anyone seen this before? To date, I've never had a smooth Intellij upgrade
Thanks in advance.

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>