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
ea3816b5
Commit
ea3816b5
authored
Jun 10, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
c1dea379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SpringApplicationLifecycleAutoConfigurationTests.java
...min/SpringApplicationLifecycleAutoConfigurationTests.java
+3
-3
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/admin/SpringApplicationLifecycleAutoConfigurationTests.java
View file @
ea3816b5
...
...
@@ -43,7 +43,7 @@ import static org.junit.Assert.fail;
*/
public
class
SpringApplicationLifecycleAutoConfigurationTests
{
private
static
final
String
ENABLE_
LIFECYCLE
_PROP
=
"spring.application.admin.enabled=true"
;
private
static
final
String
ENABLE_
ADMIN
_PROP
=
"spring.application.admin.enabled=true"
;
private
static
final
String
JMX_NAME_PROPERTY
=
"spring.application.admin.jmx-name"
;
...
...
@@ -78,7 +78,7 @@ public class SpringApplicationLifecycleAutoConfigurationTests {
@Test
public
void
registeredWithProperty
()
throws
Exception
{
load
(
ENABLE_
LIFECYCLE
_PROP
);
load
(
ENABLE_
ADMIN
_PROP
);
ObjectName
objectName
=
createDefaultObjectName
();
ObjectInstance
objectInstance
=
this
.
mBeanServer
.
getObjectInstance
(
objectName
);
assertNotNull
(
"Lifecycle bean should have been registered"
,
objectInstance
);
...
...
@@ -89,7 +89,7 @@ public class SpringApplicationLifecycleAutoConfigurationTests {
String
customJmxName
=
"org.acme:name=FooBar"
;
System
.
setProperty
(
JMX_NAME_PROPERTY
,
customJmxName
);
try
{
load
(
ENABLE_
LIFECYCLE
_PROP
);
load
(
ENABLE_
ADMIN
_PROP
);
try
{
this
.
mBeanServer
.
getObjectInstance
(
createObjectName
(
customJmxName
));
}
...
...
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