File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
platform-tests/src/test/java/org/junit/platform/console/tasks Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,20 @@ void logsInvalidSearchPathRoots(@TrackLogRecords LogRecordListener listener) {
391
391
.hasSize (1 );
392
392
}
393
393
394
+ @ Test
395
+ void doesNotLogInvalidAdditionalClasspathRoots (@ TrackLogRecords LogRecordListener listener ) {
396
+ var opts = new TestDiscoveryOptions ();
397
+ opts .setScanClasspath (true );
398
+ opts .setAdditionalClasspathEntries (List .of (Paths .get ("/also/does/not/exist" )));
399
+
400
+ DiscoveryRequestCreator .toDiscoveryRequestBuilder (opts );
401
+
402
+ assertThat (listener .stream (DiscoveryRequestCreator .class ))
403
+ .map (LogRecord ::getMessage )
404
+ .filteredOn (msg -> msg .contains ("/also/does/not/exist" ))
405
+ .isEmpty ();
406
+ }
407
+
394
408
private LauncherDiscoveryRequest convert () {
395
409
return DiscoveryRequestCreator .toDiscoveryRequestBuilder (options ).build ();
396
410
}
You can’t perform that action at this time.
0 commit comments