Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
68028763
Commit
68028763
authored
Feb 22, 2018
by
Johnny Lim
Committed by
Phillip Webb
Feb 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename TestRestTemplateTestContextCustomizer*
Closes gh-12182
parent
cd5266ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
TestRestTemplateContextCustomizer.java
...ot/test/web/client/TestRestTemplateContextCustomizer.java
+2
-2
TestRestTemplateContextCustomizerFactory.java
.../web/client/TestRestTemplateContextCustomizerFactory.java
+4
-4
spring.factories
...ng-boot-test/src/main/resources/META-INF/spring.factories
+1
-1
TestRestTemplateContextCustomizerIntegrationTests.java
...nt/TestRestTemplateContextCustomizerIntegrationTests.java
+2
-2
TestRestTemplateContextCustomizerWithOverrideIntegrationTests.java
...emplateContextCustomizerWithOverrideIntegrationTests.java
+2
-2
No files found.
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate
Test
ContextCustomizer.java
→
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplateContextCustomizer.java
View file @
68028763
...
...
@@ -42,12 +42,12 @@ import org.springframework.test.context.ContextCustomizer;
import
org.springframework.test.context.MergedContextConfiguration
;
/**
* {@link ContextCustomizer} for {@link
SpringBootTest
}.
* {@link ContextCustomizer} for {@link
TestRestTemplate
}.
*
* @author Phillip Webb
* @author Andy Wilkinson
*/
class
TestRestTemplate
Test
ContextCustomizer
implements
ContextCustomizer
{
class
TestRestTemplateContextCustomizer
implements
ContextCustomizer
{
@Override
public
void
customizeContext
(
ConfigurableApplicationContext
context
,
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate
Test
ContextCustomizerFactory.java
→
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplateContextCustomizerFactory.java
View file @
68028763
...
...
@@ -25,19 +25,19 @@ import org.springframework.test.context.ContextCustomizer;
import
org.springframework.test.context.ContextCustomizerFactory
;
/**
* {@link ContextCustomizerFactory} for {@link
SpringBootTest
}.
* {@link ContextCustomizerFactory} for {@link
TestRestTemplate
}.
*
* @author Andy Wilkinson
* @see TestRestTemplate
Test
ContextCustomizer
* @see TestRestTemplateContextCustomizer
*/
class
TestRestTemplate
Test
ContextCustomizerFactory
implements
ContextCustomizerFactory
{
class
TestRestTemplateContextCustomizerFactory
implements
ContextCustomizerFactory
{
@Override
public
ContextCustomizer
createContextCustomizer
(
Class
<?>
testClass
,
List
<
ContextConfigurationAttributes
>
configAttributes
)
{
if
(
AnnotatedElementUtils
.
findMergedAnnotation
(
testClass
,
SpringBootTest
.
class
)
!=
null
)
{
return
new
TestRestTemplate
Test
ContextCustomizer
();
return
new
TestRestTemplateContextCustomizer
();
}
return
null
;
}
...
...
spring-boot-project/spring-boot-test/src/main/resources/META-INF/spring.factories
View file @
68028763
...
...
@@ -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.TestRestTemplate
Test
ContextCustomizerFactory,\
org.springframework.boot.test.web.client.TestRestTemplateContextCustomizerFactory,\
org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizerFactory
# Test Execution Listeners
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/TestRestTemplate
Test
ContextCustomizerIntegrationTests.java
→
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/TestRestTemplateContextCustomizerIntegrationTests.java
View file @
68028763
...
...
@@ -40,14 +40,14 @@ import org.springframework.test.context.junit4.SpringRunner;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
* Integration test
for {@link TestRestTemplateTest
ContextCustomizer}.
* Integration test
s for {@link TestRestTemplate
ContextCustomizer}.
*
* @author Phillip Webb
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@DirtiesContext
public
class
TestRestTemplate
Test
ContextCustomizerIntegrationTests
{
public
class
TestRestTemplateContextCustomizerIntegrationTests
{
@Autowired
private
TestRestTemplate
restTemplate
;
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/TestRestTemplate
Test
ContextCustomizerWithOverrideIntegrationTests.java
→
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/TestRestTemplateContextCustomizerWithOverrideIntegrationTests.java
View file @
68028763
...
...
@@ -40,7 +40,7 @@ import org.springframework.test.context.junit4.SpringRunner;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
* Integration test
for {@link TestRestTemplateTest
ContextCustomizer} with a custom
* Integration test
s for {@link TestRestTemplate
ContextCustomizer} with a custom
* {@link TestRestTemplate} bean.
*
* @author Phillip Webb
...
...
@@ -48,7 +48,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
@DirtiesContext
public
class
TestRestTemplate
Test
ContextCustomizerWithOverrideIntegrationTests
{
public
class
TestRestTemplateContextCustomizerWithOverrideIntegrationTests
{
@Autowired
private
TestRestTemplate
restTemplate
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment