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
2c3b455b
Commit
2c3b455b
authored
Nov 11, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
575070a8
8470d649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
EndpointIdTimeToLivePropertyFunctionTests.java
...e/endpoint/EndpointIdTimeToLivePropertyFunctionTests.java
+7
-4
EndpointId.java
...org/springframework/boot/actuate/endpoint/EndpointId.java
+2
-2
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/EndpointIdTimeToLivePropertyFunctionTests.java
View file @
2c3b455b
...
...
@@ -46,15 +46,18 @@ public class EndpointIdTimeToLivePropertyFunctionTests {
@Test
public
void
userConfiguration
()
{
this
.
environment
.
setProperty
(
"
management.endpoint.another-test.cache.time-to-live"
,
"
500"
);
Long
result
=
this
.
timeToLive
.
apply
(
EndpointId
.
of
(
"
anotherT
est"
));
this
.
environment
.
setProperty
(
"management.endpoint.test.cache.time-to-live"
,
"500"
);
Long
result
=
this
.
timeToLive
.
apply
(
EndpointId
.
of
(
"
t
est"
));
assertThat
(
result
).
isEqualTo
(
500L
);
}
@Test
public
void
mixedCaseUserConfiguration
()
{
this
.
environment
.
setProperty
(
"management.endpoint.another-test.cache.time-to-live"
,
"500"
);
Long
result
=
this
.
timeToLive
.
apply
(
EndpointId
.
of
(
"anotherTest"
));
assertThat
(
result
).
isEqualTo
(
500L
);
}
}
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EndpointId.java
View file @
2c3b455b
...
...
@@ -117,8 +117,8 @@ public final class EndpointId {
}
/**
* Factory method to create a new {@link EndpointId} from a property value.
Is m
ore
* lenient tha
t
{@link #of(String)} to allow for common "relaxed" property variants.
* Factory method to create a new {@link EndpointId} from a property value.
M
ore
* lenient tha
n
{@link #of(String)} to allow for common "relaxed" property variants.
* @param value the property value to convert
* @return an {@link EndpointId} instance
*/
...
...
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