mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
@WebApplication->@WebAppConfiguration
Fixed gh-746
This commit is contained in:
parent
33499e3d81
commit
f81c01d490
@ -371,7 +371,7 @@ and then inject the actual (``local'') port as a `@Value`. For example:
|
|||||||
----
|
----
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
|
@SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
|
||||||
@WebApplication
|
@WebAppConfiguration
|
||||||
@IntegrationTest("server.port:0")
|
@IntegrationTest("server.port:0")
|
||||||
public class CityRepositoryIntegrationTests {
|
public class CityRepositoryIntegrationTests {
|
||||||
|
|
||||||
|
@ -1558,7 +1558,7 @@ interaction. For Example:
|
|||||||
----
|
----
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
|
@SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
|
||||||
@WebApplication
|
@WebAppConfiguration
|
||||||
@IntegrationTest
|
@IntegrationTest
|
||||||
public class CityRepositoryIntegrationTests {
|
public class CityRepositoryIntegrationTests {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user