Skip to content

Commit a7cb689

Browse files
committed
Move @LocalServerPort annotation
Move the @LocalServerPort to org.springframework.boot.context.embedded since it's only really useful when working with embedded servlet containers. See spring-projectsgh-5822
1 parent 3de48d2 commit a7cb689

File tree

66 files changed

+66
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+66
-66
lines changed

Diff for: spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointMvcIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
import org.springframework.boot.autoconfigure.web.HttpMessageConverters;
4848
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
4949
import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
50-
import org.springframework.boot.context.web.LocalServerPort;
50+
import org.springframework.boot.context.embedded.LocalServerPort;
5151
import org.springframework.boot.test.context.SpringBootTest;
5252
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
5353
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointServerContextPathIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.runner.RunWith;
2323

2424
import org.springframework.boot.actuate.autoconfigure.MinimalActuatorHypermediaApplication;
25-
import org.springframework.boot.context.web.LocalServerPort;
25+
import org.springframework.boot.context.embedded.LocalServerPort;
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2828
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesRefreshTokenTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration;
3131
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
3232
import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
33-
import org.springframework.boot.context.web.LocalServerPort;
33+
import org.springframework.boot.context.embedded.LocalServerPort;
3434
import org.springframework.boot.test.context.SpringBootTest;
3535
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3636
import org.springframework.context.annotation.Configuration;

Diff for: spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/RemappedErrorViewIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
2525
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
2626
import org.springframework.boot.context.embedded.ErrorPage;
27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator-log4j2/src/test/java/sample/actuator/log4j2/SampleActuatorLog4J2ApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator-ui/src/test/java/sample/actuator/ui/SampleActuatorUiApplicationPortTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.runner.RunWith;
2323

2424
import org.springframework.boot.actuate.autoconfigure.LocalManagementPort;
25-
import org.springframework.boot.context.web.LocalServerPort;
25+
import org.springframework.boot.context.embedded.LocalServerPort;
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2828
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator-ui/src/test/java/sample/actuator/ui/SampleActuatorUiApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.Test;
2323
import org.junit.runner.RunWith;
2424

25-
import org.springframework.boot.context.web.LocalServerPort;
25+
import org.springframework.boot.context.embedded.LocalServerPort;
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2828
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/EndpointsPropertiesSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.autoconfigure.security.SecurityProperties;
26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/InsecureManagementPortAndPathSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.actuate.autoconfigure.LocalManagementPort;
2626
import org.springframework.boot.autoconfigure.security.SecurityProperties;
27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/InsecureManagementSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/InsecureSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementAddressActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.runner.RunWith;
2323

2424
import org.springframework.boot.actuate.autoconfigure.LocalManagementPort;
25-
import org.springframework.boot.context.web.LocalServerPort;
25+
import org.springframework.boot.context.embedded.LocalServerPort;
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2828
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementPathSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementPortAndPathSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.actuate.autoconfigure.LocalManagementPort;
2626
import org.springframework.boot.autoconfigure.security.SecurityProperties;
27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementPortSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.actuate.autoconfigure.LocalManagementPort;
2626
import org.springframework.boot.autoconfigure.security.SecurityProperties;
27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/NoManagementSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.autoconfigure.security.SecurityProperties;
26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/NonSensitiveHealthTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020
import org.junit.runner.RunWith;
2121

22-
import org.springframework.boot.context.web.LocalServerPort;
22+
import org.springframework.boot.context.embedded.LocalServerPort;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2525
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.beans.factory.annotation.Autowired;
2727
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
2828
import org.springframework.boot.autoconfigure.security.SecurityProperties;
29-
import org.springframework.boot.context.web.LocalServerPort;
29+
import org.springframework.boot.context.embedded.LocalServerPort;
3030
import org.springframework.boot.test.context.SpringBootTest;
3131
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3232
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ServletPathInsecureSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ServletPathSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ShutdownSampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.boot.autoconfigure.security.SecurityProperties;
26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-atmosphere/src/test/java/sample/atmosphere/SampleAtmosphereApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.springframework.boot.CommandLineRunner;
3030
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
3131
import org.springframework.boot.builder.SpringApplicationBuilder;
32-
import org.springframework.boot.context.web.LocalServerPort;
32+
import org.springframework.boot.context.embedded.LocalServerPort;
3333
import org.springframework.boot.test.context.SpringBootTest;
3434
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3535
import org.springframework.context.ConfigurableApplicationContext;

Diff for: spring-boot-samples/spring-boot-sample-hateoas/src/test/java/sample/hateoas/SampleHateoasApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-hypermedia-ui/src/test/java/sample/hypermedia/ui/SampleHypermediaUiApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.Test;
2323
import org.junit.runner.RunWith;
2424

25-
import org.springframework.boot.context.web.LocalServerPort;
25+
import org.springframework.boot.context.embedded.LocalServerPort;
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2828
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-hypermedia/src/test/java/sample/hypermedia/SampleHypermediaApplicationHomePageTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.Test;
2323
import org.junit.runner.RunWith;
2424

25-
import org.springframework.boot.context.web.LocalServerPort;
25+
import org.springframework.boot.context.embedded.LocalServerPort;
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2828
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jersey/src/test/java/sample/jersey/SampleJerseyApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020
import org.junit.runner.RunWith;
2121

22-
import org.springframework.boot.context.web.LocalServerPort;
22+
import org.springframework.boot.context.embedded.LocalServerPort;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2525
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jersey1/src/test/java/sample/jersey1/SampleJersey1ApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020
import org.junit.runner.RunWith;
2121

22-
import org.springframework.boot.context.web.LocalServerPort;
22+
import org.springframework.boot.context.embedded.LocalServerPort;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2525
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jetty-ssl/src/test/java/sample/jetty/ssl/SampleJettySslApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.junit.Test;
2525
import org.junit.runner.RunWith;
2626

27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jetty/src/test/java/sample/jetty/SampleJettyApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.Test;
2424
import org.junit.runner.RunWith;
2525

26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jetty8-ssl/src/test/java/sample/jetty8/ssl/SampleJetty8SslApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.junit.Test;
2525
import org.junit.runner.RunWith;
2626

27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jetty8/src/test/java/sample/jetty8/SampleJetty8ApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.Test;
2424
import org.junit.runner.RunWith;
2525

26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-jetty93/src/test/java/sample/jetty93/SampleJetty93ApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.Test;
2424
import org.junit.runner.RunWith;
2525

26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-servlet/src/test/java/sample/servlet/SampleServletApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import org.springframework.beans.factory.annotation.Autowired;
2323
import org.springframework.boot.autoconfigure.security.SecurityProperties;
24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-testng/src/test/java/sample/testng/SampleTestNGApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import org.testng.annotations.Test;
2020

21-
import org.springframework.boot.context.web.LocalServerPort;
21+
import org.springframework.boot.context.embedded.LocalServerPort;
2222
import org.springframework.boot.test.context.SpringBootTest;
2323
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2424
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-tomcat-jsp/src/test/java/sample/tomcat/jsp/SampleWebJspApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020
import org.junit.runner.RunWith;
2121

22-
import org.springframework.boot.context.web.LocalServerPort;
22+
import org.springframework.boot.context.embedded.LocalServerPort;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2525
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-tomcat-multi-connectors/src/test/java/sample/tomcat/multiconnector/SampleTomcatTwoConnectorsApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.junit.runner.RunWith;
3232

3333
import org.springframework.beans.factory.annotation.Autowired;
34-
import org.springframework.boot.context.web.LocalServerPort;
34+
import org.springframework.boot.context.embedded.LocalServerPort;
3535
import org.springframework.boot.test.context.SpringBootTest;
3636
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3737
import org.springframework.context.ApplicationContext;

Diff for: spring-boot-samples/spring-boot-sample-tomcat-ssl/src/test/java/sample/tomcat/ssl/SampleTomcatSslApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.junit.Test;
2525
import org.junit.runner.RunWith;
2626

27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-tomcat/src/test/java/sample/tomcat/NonAutoConfigurationSampleTomcatApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration;
2929
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
3030
import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
31-
import org.springframework.boot.context.web.LocalServerPort;
31+
import org.springframework.boot.context.embedded.LocalServerPort;
3232
import org.springframework.boot.test.context.SpringBootTest;
3333
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3434
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-tomcat/src/test/java/sample/tomcat/SampleTomcatApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.Test;
2424
import org.junit.runner.RunWith;
2525

26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-tomcat7-jsp/src/test/java/sample/tomcat7/jsp/SampleWebJspApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020
import org.junit.runner.RunWith;
2121

22-
import org.springframework.boot.context.web.LocalServerPort;
22+
import org.springframework.boot.context.embedded.LocalServerPort;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2525
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-traditional/src/test/java/sample/traditional/SampleTraditionalApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.Test;
2020
import org.junit.runner.RunWith;
2121

22-
import org.springframework.boot.context.web.LocalServerPort;
22+
import org.springframework.boot.context.embedded.LocalServerPort;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2525
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-undertow-ssl/src/test/java/sample/undertow/ssl/SampleUndertowSslApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.junit.Test;
2525
import org.junit.runner.RunWith;
2626

27-
import org.springframework.boot.context.web.LocalServerPort;
27+
import org.springframework.boot.context.embedded.LocalServerPort;
2828
import org.springframework.boot.test.context.SpringBootTest;
2929
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3030
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-undertow/src/test/java/sample/undertow/SampleUndertowApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.Test;
2424
import org.junit.runner.RunWith;
2525

26-
import org.springframework.boot.context.web.LocalServerPort;
26+
import org.springframework.boot.context.embedded.LocalServerPort;
2727
import org.springframework.boot.test.context.SpringBootTest;
2828
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2929
import org.springframework.boot.test.web.client.TestRestTemplate;

Diff for: spring-boot-samples/spring-boot-sample-web-freemarker/src/test/java/sample/freemarker/SampleWebFreeMarkerApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.junit.Test;
2222
import org.junit.runner.RunWith;
2323

24-
import org.springframework.boot.context.web.LocalServerPort;
24+
import org.springframework.boot.context.embedded.LocalServerPort;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
2727
import org.springframework.boot.test.web.client.TestRestTemplate;

0 commit comments

Comments
 (0)