Merge pull request #14915 from michaldo

* gh-14915:
  Polish
  Skip restarter for JUnit5
This commit is contained in:
Madhura Bhave
2018-10-23 13:52:14 -07:00
2 changed files with 6 additions and 0 deletions

View File

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

View File

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