Skip to content

Commit 6802876

Browse files
izeyephilwebb
authored andcommitted
Rename TestRestTemplateTestContextCustomizer*
Closes gh-12182
1 parent cd5266a commit 6802876

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
import org.springframework.test.context.MergedContextConfiguration;
4343

4444
/**
45-
* {@link ContextCustomizer} for {@link SpringBootTest}.
45+
* {@link ContextCustomizer} for {@link TestRestTemplate}.
4646
*
4747
* @author Phillip Webb
4848
* @author Andy Wilkinson
4949
*/
50-
class TestRestTemplateTestContextCustomizer implements ContextCustomizer {
50+
class TestRestTemplateContextCustomizer implements ContextCustomizer {
5151

5252
@Override
5353
public void customizeContext(ConfigurableApplicationContext context,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
import org.springframework.test.context.ContextCustomizerFactory;
2626

2727
/**
28-
* {@link ContextCustomizerFactory} for {@link SpringBootTest}.
28+
* {@link ContextCustomizerFactory} for {@link TestRestTemplate}.
2929
*
3030
* @author Andy Wilkinson
31-
* @see TestRestTemplateTestContextCustomizer
31+
* @see TestRestTemplateContextCustomizer
3232
*/
33-
class TestRestTemplateTestContextCustomizerFactory implements ContextCustomizerFactory {
33+
class TestRestTemplateContextCustomizerFactory implements ContextCustomizerFactory {
3434

3535
@Override
3636
public ContextCustomizer createContextCustomizer(Class<?> testClass,
3737
List<ContextConfigurationAttributes> configAttributes) {
3838
if (AnnotatedElementUtils.findMergedAnnotation(testClass,
3939
SpringBootTest.class) != null) {
40-
return new TestRestTemplateTestContextCustomizer();
40+
return new TestRestTemplateContextCustomizer();
4141
}
4242
return null;
4343
}

spring-boot-project/spring-boot-test/src/main/resources/META-INF/spring.factories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.springframework.boot.test.context.ImportsContextCustomizerFactory,\
44
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizerFactory,\
55
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory,\
66
org.springframework.boot.test.mock.mockito.MockitoContextCustomizerFactory,\
7-
org.springframework.boot.test.web.client.TestRestTemplateTestContextCustomizerFactory,\
7+
org.springframework.boot.test.web.client.TestRestTemplateContextCustomizerFactory,\
88
org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizerFactory
99

1010
# Test Execution Listeners
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
import static org.assertj.core.api.Assertions.assertThat;
4141

4242
/**
43-
* Integration test for {@link TestRestTemplateTestContextCustomizer}.
43+
* Integration tests for {@link TestRestTemplateContextCustomizer}.
4444
*
4545
* @author Phillip Webb
4646
*/
4747
@RunWith(SpringRunner.class)
4848
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
4949
@DirtiesContext
50-
public class TestRestTemplateTestContextCustomizerIntegrationTests {
50+
public class TestRestTemplateContextCustomizerIntegrationTests {
5151

5252
@Autowired
5353
private TestRestTemplate restTemplate;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
import static org.assertj.core.api.Assertions.assertThat;
4141

4242
/**
43-
* Integration test for {@link TestRestTemplateTestContextCustomizer} with a custom
43+
* Integration tests for {@link TestRestTemplateContextCustomizer} with a custom
4444
* {@link TestRestTemplate} bean.
4545
*
4646
* @author Phillip Webb
4747
*/
4848
@RunWith(SpringRunner.class)
4949
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
5050
@DirtiesContext
51-
public class TestRestTemplateTestContextCustomizerWithOverrideIntegrationTests {
51+
public class TestRestTemplateContextCustomizerWithOverrideIntegrationTests {
5252

5353
@Autowired
5454
private TestRestTemplate restTemplate;

0 commit comments

Comments
 (0)