Skip to content

Rename TestRestTemplateTestContextCustomizer* #12182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
import org.springframework.test.context.MergedContextConfiguration;

/**
* {@link ContextCustomizer} for {@link SpringBootTest}.
* {@link ContextCustomizer} for {@link TestRestTemplate}.
*
* @author Phillip Webb
* @author Andy Wilkinson
*/
class TestRestTemplateTestContextCustomizer implements ContextCustomizer {
class TestRestTemplateContextCustomizer implements ContextCustomizer {

@Override
public void customizeContext(ConfigurableApplicationContext context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
import org.springframework.test.context.ContextCustomizerFactory;

/**
* {@link ContextCustomizerFactory} for {@link SpringBootTest}.
* {@link ContextCustomizerFactory} for {@link TestRestTemplate}.
*
* @author Andy Wilkinson
* @see TestRestTemplateTestContextCustomizer
* @see TestRestTemplateContextCustomizer
*/
class TestRestTemplateTestContextCustomizerFactory implements ContextCustomizerFactory {
class TestRestTemplateContextCustomizerFactory implements ContextCustomizerFactory {

@Override
public ContextCustomizer createContextCustomizer(Class<?> testClass,
List<ContextConfigurationAttributes> configAttributes) {
if (AnnotatedElementUtils.findMergedAnnotation(testClass,
SpringBootTest.class) != null) {
return new TestRestTemplateTestContextCustomizer();
return new TestRestTemplateContextCustomizer();
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.springframework.boot.test.context.ImportsContextCustomizerFactory,\
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizerFactory,\
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory,\
org.springframework.boot.test.mock.mockito.MockitoContextCustomizerFactory,\
org.springframework.boot.test.web.client.TestRestTemplateTestContextCustomizerFactory,\
org.springframework.boot.test.web.client.TestRestTemplateContextCustomizerFactory,\
org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizerFactory

# Test Execution Listeners
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
import static org.assertj.core.api.Assertions.assertThat;

/**
* Integration test for {@link TestRestTemplateTestContextCustomizer}.
* Integration tests for {@link TestRestTemplateContextCustomizer}.
*
* @author Phillip Webb
*/
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@DirtiesContext
public class TestRestTemplateTestContextCustomizerIntegrationTests {
public class TestRestTemplateContextCustomizerIntegrationTests {

@Autowired
private TestRestTemplate restTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
import static org.assertj.core.api.Assertions.assertThat;

/**
* Integration test for {@link TestRestTemplateTestContextCustomizer} with a custom
* Integration tests for {@link TestRestTemplateContextCustomizer} with a custom
* {@link TestRestTemplate} bean.
*
* @author Phillip Webb
*/
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@DirtiesContext
public class TestRestTemplateTestContextCustomizerWithOverrideIntegrationTests {
public class TestRestTemplateContextCustomizerWithOverrideIntegrationTests {

@Autowired
private TestRestTemplate restTemplate;
Expand Down