Commit b04d3f50 authored by Madhura Bhave's avatar Madhura Bhave

Merge pull request #14915 from michaldo

* gh-14915:
  Polish
  Skip restarter for JUnit5
parents 80bb7ea9 5f24af6c
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment