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
c403ac9d
Commit
c403ac9d
authored
Sep 26, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
f88ebf75
379ce62e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
SpringBootContextLoader.java
...gframework/boot/test/context/SpringBootContextLoader.java
+0
-17
No files found.
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java
View file @
c403ac9d
...
...
@@ -18,10 +18,7 @@ package org.springframework.boot.test.context;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.LinkedHashSet
;
import
java.util.List
;
import
java.util.Set
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.boot.SpringApplication
;
...
...
@@ -80,15 +77,6 @@ import org.springframework.web.context.support.GenericWebApplicationContext;
*/
public
class
SpringBootContextLoader
extends
AbstractContextLoader
{
private
static
final
Set
<
String
>
INTEGRATION_TEST_ANNOTATIONS
;
static
{
Set
<
String
>
annotations
=
new
LinkedHashSet
<>();
annotations
.
add
(
"org.springframework.boot.test.IntegrationTest"
);
annotations
.
add
(
"org.springframework.boot.test.WebIntegrationTest"
);
INTEGRATION_TEST_ANNOTATIONS
=
Collections
.
unmodifiableSet
(
annotations
);
}
@Override
public
ApplicationContext
loadContext
(
MergedContextConfiguration
config
)
throws
Exception
{
...
...
@@ -222,11 +210,6 @@ public class SpringBootContextLoader extends AbstractContextLoader {
}
private
boolean
isEmbeddedWebEnvironment
(
MergedContextConfiguration
config
)
{
for
(
String
annotation
:
INTEGRATION_TEST_ANNOTATIONS
)
{
if
(
AnnotatedElementUtils
.
isAnnotated
(
config
.
getTestClass
(),
annotation
))
{
return
true
;
}
}
SpringBootTest
annotation
=
AnnotatedElementUtils
.
findMergedAnnotation
(
config
.
getTestClass
(),
SpringBootTest
.
class
);
if
(
annotation
!=
null
&&
annotation
.
webEnvironment
().
isEmbedded
())
{
...
...
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