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
a99f78c6
Commit
a99f78c6
authored
Apr 06, 2021
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.4.x'
parents
c6cd5117
8a045474
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ConfigDataTests.java
.../springframework/boot/context/config/ConfigDataTests.java
+1
-1
No files found.
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataTests.java
View file @
a99f78c6
...
@@ -96,7 +96,7 @@ class ConfigDataTests {
...
@@ -96,7 +96,7 @@ class ConfigDataTests {
MapPropertySource
source2
=
new
MapPropertySource
(
"test"
,
Collections
.
emptyMap
());
MapPropertySource
source2
=
new
MapPropertySource
(
"test"
,
Collections
.
emptyMap
());
Options
options1
=
Options
.
of
(
Option
.
IGNORE_IMPORTS
);
Options
options1
=
Options
.
of
(
Option
.
IGNORE_IMPORTS
);
Options
options2
=
Options
.
of
(
Option
.
IGNORE_PROFILES
);
Options
options2
=
Options
.
of
(
Option
.
IGNORE_PROFILES
);
PropertySourceOptions
propertySourceOptions
=
(
source
)
->
source
==
source1
?
options1
:
options2
;
PropertySourceOptions
propertySourceOptions
=
(
source
)
->
(
source
!=
source1
)
?
options2
:
options1
;
ConfigData
configData
=
new
ConfigData
(
Arrays
.
asList
(
source1
,
source2
),
propertySourceOptions
);
ConfigData
configData
=
new
ConfigData
(
Arrays
.
asList
(
source1
,
source2
),
propertySourceOptions
);
assertThat
(
configData
.
getOptions
(
source1
)).
isEqualTo
(
options1
);
assertThat
(
configData
.
getOptions
(
source1
)).
isEqualTo
(
options1
);
assertThat
(
configData
.
getOptions
(
source2
)).
isEqualTo
(
options2
);
assertThat
(
configData
.
getOptions
(
source2
)).
isEqualTo
(
options2
);
...
...
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