RE: java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass Migrating to 5.4.0

2019-02-12 Thread Ahmed Yarub
Here is the solution for this problem: https://github.com/junit-team/junit5/issues/1773 It's because in the new version of JUnit 5, the dependencies were consolidated into a single one. You can see it here: https://junit.org/junit5/docs/snapshot/release-notes/index.html "New junit-jupiter depende

Re: Fwd: FOSDEM 19 Debian Java talk

2019-02-12 Thread Robert Scholte
On Tue, 12 Feb 2019 12:34:56 +0100, Markus Koschany wrote: Hello, Dalibor Topic (Oracle) and Robert Scholte (Apache Maven) contacted me and were so kind to agree to make this discussion public, so that others can chime in too. I would like to use the opportunity to answer the initial question

Re: java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass Migrating to 5.4.0

2019-02-12 Thread Karl Heinz Marbaise
Hi, the issue is simply cause Spring Boot already has a dependency (import) to an older verison of JUnit Jupiter the simple solution is to add the org.junit:junit-bom:5.4.0 before Spring Boot bom import...in your dependencyManagement This will solve the issue. Kind regards Karl Heinz

java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass Migrating to 5.4.0

2019-02-12 Thread Ahmed Yarub
JDK: 11 Spring Boot: 2.1.2.RELEASE JUnit: 5.4.0 Maven: 3.6.0 Surefire: 3.0.0-M3 At first, I got the following error running the tests on IntelliJ and using the command mvn clean install: ``` [INFO] --- maven-surefire-plugin:3.0.0-M3:test (default-test) @ x --- [INFO] [INFO] -