Polish
See gh-8543
This commit is contained in:
@@ -20,7 +20,6 @@ import org.junit.Test;
|
|||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||||
import org.springframework.boot.test.web.client.TestRestTemplate;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.test.annotation.DirtiesContext;
|
import org.springframework.test.annotation.DirtiesContext;
|
||||||
@@ -33,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for {@link SpringBootTest} in a reactive environment configured with
|
* Tests for {@link SpringBootTest} in a reactive environment configured with
|
||||||
* a user-defined {@link TestRestTemplate}.
|
* a user-defined {@link RestTemplate} that is named {@code testRestTemplate}.
|
||||||
*
|
*
|
||||||
* @author Madhura Bhave
|
* @author Madhura Bhave
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for {@link SpringBootTest} configured with {@link WebEnvironment#RANDOM_PORT}.
|
* Tests for {@link SpringBootTest} configured with a user-defined {@link RestTemplate}
|
||||||
|
* that is named {@code testRestTemplate}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
@@ -39,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@DirtiesContext
|
@DirtiesContext
|
||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { "value=123" })
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { "value=123" })
|
||||||
public class SpringBootTestTestRestTemplateDefinedByUser
|
public class SpringBootTestUserDefinedTestRestTemplateTests
|
||||||
extends AbstractSpringBootTestWebServerWebEnvironmentTests {
|
extends AbstractSpringBootTestWebServerWebEnvironmentTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
Reference in New Issue
Block a user