Merge pull request #14915 from michaldo

* gh-14915:
  Polish
  Skip restarter for JUnit5
pull/14947/head
Madhura Bhave 6 years ago
commit b04d3f507c

@ -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");

Loading…
Cancel
Save