Skip to content

Commit 005daab

Browse files
committed
Fix selectClasspathRoots() example in LauncherDiscoveryRequestBuilder
DiscoverySelectors.selectClasspathRoots() returns a List and therefore cannot be used alongside any other selectors.
1 parent 270b722 commit 005daab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

junit-platform-launcher/src/main/java/org/junit/platform/launcher/core/LauncherDiscoveryRequestBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@
6565
* selectMethod("org.example.order.OrderTests", "test4"),
6666
* selectMethod(OrderTests.class, "test5"),
6767
* selectMethod(OrderTests.class, testMethod),
68-
* selectClasspathRoots(Collections.singleton(Paths.get("/my/local/path1"))),
6968
* selectUniqueId("unique-id-1"),
7069
* selectUniqueId("unique-id-2")
7170
* )
71+
* .selectors(
72+
* selectClasspathRoots(Set.of(Paths.get("/my/local/path1")))
73+
* )
7274
* .filters(
7375
* includeEngines("junit-jupiter", "spek"),
7476
* // excludeEngines("junit-vintage"),

0 commit comments

Comments
 (0)