File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/extension Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1010
1111package org .junit .jupiter .engine .extension ;
1212
13+ import static java .util .function .Predicate .not ;
1314import static java .util .stream .Collectors .toUnmodifiableList ;
1415import static org .assertj .core .api .Assertions .assertThat ;
1516import static org .junit .jupiter .api .Assertions .assertEquals ;
5455class TestWatcherTests extends AbstractJupiterTestEngineTests {
5556
5657 private static final List <String > testWatcherMethodNames = Arrays .stream (TestWatcher .class .getDeclaredMethods ())//
57- .map (Method ::getName ).collect (toUnmodifiableList ());
58+ .filter (not (Method ::isSynthetic ))//
59+ .map (Method ::getName )//
60+ .collect (toUnmodifiableList ());
5861
5962 @ BeforeEach
6063 void clearResults () {
You can’t perform that action at this time.
0 commit comments