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
199606da
Commit
199606da
authored
Jun 11, 2019
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17069 from izeye
* pr/17069: Add missing @Test annotations Closes gh-17069
parents
1d5647b9
3b3a92c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
SpringIterableConfigurationPropertySourceTests.java
...ource/SpringIterableConfigurationPropertySourceTests.java
+4
-0
No files found.
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySourceTests.java
View file @
199606da
...
@@ -179,8 +179,11 @@ class SpringIterableConfigurationPropertySourceTests {
...
@@ -179,8 +179,11 @@ class SpringIterableConfigurationPropertySourceTests {
DefaultPropertyMapper
.
INSTANCE
);
DefaultPropertyMapper
.
INSTANCE
);
assertThat
(
adapter
.
stream
().
count
()).
isEqualTo
(
2
);
assertThat
(
adapter
.
stream
().
count
()).
isEqualTo
(
2
);
map
.
setThrowException
(
true
);
map
.
setThrowException
(
true
);
map
.
put
(
"key3"
,
"value3"
);
assertThat
(
adapter
.
stream
().
count
()).
isEqualTo
(
3
);
}
}
@Test
public
void
originTrackedMapPropertySourceKeyAdditionInvalidatesCache
()
{
public
void
originTrackedMapPropertySourceKeyAdditionInvalidatesCache
()
{
// gh-13344
// gh-13344
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
...
@@ -194,6 +197,7 @@ class SpringIterableConfigurationPropertySourceTests {
...
@@ -194,6 +197,7 @@ class SpringIterableConfigurationPropertySourceTests {
assertThat
(
adapter
.
stream
().
count
()).
isEqualTo
(
3
);
assertThat
(
adapter
.
stream
().
count
()).
isEqualTo
(
3
);
}
}
@Test
public
void
readOnlyOriginTrackedMapPropertySourceKeyAdditionDoesNotInvalidateCache
()
{
public
void
readOnlyOriginTrackedMapPropertySourceKeyAdditionDoesNotInvalidateCache
()
{
// gh-16717
// gh-16717
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
...
...
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