From dc0a642fc07a0db50693e120bbb707fcb427e830 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 30 Aug 2019 22:00:17 -0700 Subject: [PATCH] Fix chackstyle violations in test See gh-18012 --- .../web/context/WebServerApplicationContextTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/context/WebServerApplicationContextTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/context/WebServerApplicationContextTests.java index 6b1254dbe8..d7e13d9cb6 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/context/WebServerApplicationContextTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/context/WebServerApplicationContextTests.java @@ -16,7 +16,7 @@ package org.springframework.boot.web.context; -import org.junit.Test; +import org.junit.jupiter.api.Test; import org.springframework.context.ApplicationContext; @@ -32,19 +32,19 @@ import static org.mockito.Mockito.mock; public class WebServerApplicationContextTests { @Test - public void hasServerNamespaceWhenContextIsNotWebServerApplicationContextReturnsFalse() { + void hasServerNamespaceWhenContextIsNotWebServerApplicationContextReturnsFalse() { ApplicationContext context = mock(ApplicationContext.class); assertThat(WebServerApplicationContext.hasServerNamespace(context, "test")).isFalse(); } @Test - public void hasServerNamespaceWhenContextIsWebServerApplicationContextAndNamespaceDoesNotMatchReturnsFalse() { + void hasServerNamespaceWhenContextIsWebServerApplicationContextAndNamespaceDoesNotMatchReturnsFalse() { ApplicationContext context = mock(WebServerApplicationContext.class); assertThat(WebServerApplicationContext.hasServerNamespace(context, "test")).isFalse(); } @Test - public void hasServerNamespaceWhenContextIsWebServerApplicationContextAndNamespaceMatchesReturnsTrue() { + void hasServerNamespaceWhenContextIsWebServerApplicationContextAndNamespaceMatchesReturnsTrue() { WebServerApplicationContext context = mock(WebServerApplicationContext.class); given(context.getServerNamespace()).willReturn("test"); assertThat(WebServerApplicationContext.hasServerNamespace(context, "test")).isTrue();