Merge pull request #14915 from michaldo
* gh-14915: Polish Skip restarter for JUnit5
This commit is contained in:
@@ -37,6 +37,7 @@ public class DefaultRestartInitializer implements RestartInitializer {
|
||||
static {
|
||||
Set<String> skipped = new LinkedHashSet<>();
|
||||
skipped.add("org.junit.runners.");
|
||||
skipped.add("org.junit.platform.");
|
||||
skipped.add("org.springframework.boot.test.");
|
||||
skipped.add("cucumber.runtime.");
|
||||
SKIPPED_STACK_ELEMENTS = Collections.unmodifiableSet(skipped);
|
||||
|
||||
@@ -36,6 +36,11 @@ public class DefaultRestartInitializerTests {
|
||||
testSkippedStacks("org.junit.runners.Something");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void jUnit5StackShouldReturnNull() {
|
||||
testSkippedStacks("org.junit.platform.Something");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void springTestStackShouldReturnNull() {
|
||||
testSkippedStacks("org.springframework.boot.test.Something");
|
||||
|
||||
Reference in New Issue
Block a user