See gh-13776
This commit is contained in:
Johnny Lim
2018-07-15 23:57:45 +09:00
committed by Stephane Nicoll
parent f325ee9406
commit 068e22d60b
5 changed files with 14 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ public class JndiConnectionFactoryAutoConfigurationTests {
}
@After
public void close() {
public void cleanUp() {
TestableInitialContextFactory.clearAll();
if (this.initialContextFactory != null) {
System.setProperty(Context.INITIAL_CONTEXT_FACTORY,

View File

@@ -75,7 +75,7 @@ public class UndertowWebServerFactoryCustomizerTests {
}
@Test
public void deduceUseForwardHeadersUndertow() {
public void deduceUseForwardHeaders() {
this.environment.setProperty("DYNO", "-");
ConfigurableUndertowWebServerFactory factory = mock(
ConfigurableUndertowWebServerFactory.class);
@@ -84,7 +84,7 @@ public class UndertowWebServerFactoryCustomizerTests {
}
@Test
public void defaultUseForwardHeadersUndertow() {
public void defaultUseForwardHeaders() {
ConfigurableUndertowWebServerFactory factory = mock(
ConfigurableUndertowWebServerFactory.class);
this.customizer.customize(factory);
@@ -92,7 +92,7 @@ public class UndertowWebServerFactoryCustomizerTests {
}
@Test
public void setUseForwardHeadersUndertow() {
public void setUseForwardHeaders() {
this.serverProperties.setUseForwardHeaders(true);
ConfigurableUndertowWebServerFactory factory = mock(
ConfigurableUndertowWebServerFactory.class);