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
0757d24d
Commit
0757d24d
authored
Nov 19, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix /configprops tests
parent
6ad626de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ConfigurationPropertiesReportEndpointSerializationTests.java
...figurationPropertiesReportEndpointSerializationTests.java
+3
-2
test-spring-configuration-metadata.json
...esources/META-INF/test-spring-configuration-metadata.json
+2
-0
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpointSerializationTests.java
View file @
0757d24d
...
...
@@ -166,7 +166,7 @@ public class ConfigurationPropertiesReportEndpointSerializationTests {
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
nestedProperties
.
get
(
"properties"
);
assertNotNull
(
map
);
assertEquals
(
2
,
map
.
size
());
assertEquals
(
3
,
map
.
size
());
assertEquals
(
null
,
(
map
.
get
(
"map"
)));
}
...
...
@@ -206,7 +206,8 @@ public class ConfigurationPropertiesReportEndpointSerializationTests {
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
nestedProperties
.
get
(
"properties"
);
assertNotNull
(
map
);
assertEquals
(
2
,
map
.
size
());
// Only one property is mapped in metadata so the others are ignored
assertEquals
(
1
,
map
.
size
());
assertEquals
(
"foo"
,
((
Map
<
String
,
Object
>)
map
.
get
(
"map"
)).
get
(
"name"
));
}
...
...
spring-boot-actuator/src/test/resources/META-INF/test-spring-configuration-metadata.json
View file @
0757d24d
{
"properties"
:
[
{
"name"
:
"bar.name"
,
"type"
:
"java.util.Map"
,
"dataType"
:
"java.lang.String"
},
{
"name"
:
"spam.map.name"
,
"type"
:
"java.util.Map"
,
"dataType"
:
"java.lang.String"
}
]}
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