From 1bf0aed0f525acc9a3910cb96a3b7dd9e0fa8162 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 20 May 2024 15:09:22 +0200 Subject: [PATCH] [build.gradle] Add junit-platform-launcher add testRuntimeOnly Fixes NoSuchMethodError: 'java.util.Set org.junit.platform.engine.TestDescriptor.getAncestors() when running unit tests in Eclipse. --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index be40f20fe..1bf116655 100644 --- a/build.gradle +++ b/build.gradle @@ -313,6 +313,8 @@ tasks.withType(Javadoc) { testFixturesApi "org.junit.jupiter:junit-jupiter-api:$junitVersion" testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion" + // https://stackoverflow.com/a/77274251/194894 + testRuntimeOnly "org.junit.platform:junit-platform-launcher" // The smack-extensions subproject uses mockito in its fest // fixtures, and we want to have mockito also available in