JUnit version 3.8 or later expected

已回答

I can't run junit test. Please refer below log.
It's spring framework project using maven. It's not android proejct. please fix it asap. Thanks.

JUnit version 3.8 or later expected
java.lang.ClassNotFoundExceptiom:junit.framework.ComparisonFailure

1
Avatar
Permanently deleted user

Also Junit 4.12 have ComparisonFailure class

0

Do you really have a path with ":" on your system? You can't use the colon in Java paths because it's used as the classpath delimiter character.

Move your files/repository to some other location that will not contain a colon.

Java sees it as 2 different paths, a directory and a jar:

1: /home/seongwanryu/Downloads/idea-IU-191.6183.87/bin/D:
2: /cepdev/sw/m2_repository/junit/junit/4.12/junit-4.12.jar

Therefore, the jar is not found in the classpath and you will not be able to run your app this way because all the jar dependencies will be missing.

0
Avatar
Permanently deleted user

Thank you. I really apprecatied. I fixed thanks to you. 

0
Avatar
Permanently deleted user

I have the same problem after update IntelliJ to 2021.2 (no project changes). In my project I have the latest Spock version with Groovy 3 and Jupiter. How could update of an IDE have impact to test run?

0

Hello K Hanusova90,

If possible please create an issue at YouTrack (https://youtrack.jetbrains.com/issues/IDEA) and attach the sample project to reproduce the case to it. Thank you 

 

0
Avatar
Permanently deleted user

Hello Olga, thank you for your reply. I have created issue https://youtrack.jetbrains.com/issue/IDEA-274801. I can send you whole project to mail if necessary, it couldn't be added to issue.

0

K Hanusova90,

Thank you, the problem is fixed, the fix will be available in 2021.2.1. Sorry for inconvenience.

0

请先登录再写评论。