Fix typo
This commit is contained in:
parent
c1dea3797a
commit
ea3816b550
|
@ -43,7 +43,7 @@ import static org.junit.Assert.fail;
|
||||||
*/
|
*/
|
||||||
public class SpringApplicationLifecycleAutoConfigurationTests {
|
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";
|
private static final String JMX_NAME_PROPERTY = "spring.application.admin.jmx-name";
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ public class SpringApplicationLifecycleAutoConfigurationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void registeredWithProperty() throws Exception {
|
public void registeredWithProperty() throws Exception {
|
||||||
load(ENABLE_LIFECYCLE_PROP);
|
load(ENABLE_ADMIN_PROP);
|
||||||
ObjectName objectName = createDefaultObjectName();
|
ObjectName objectName = createDefaultObjectName();
|
||||||
ObjectInstance objectInstance = this.mBeanServer.getObjectInstance(objectName);
|
ObjectInstance objectInstance = this.mBeanServer.getObjectInstance(objectName);
|
||||||
assertNotNull("Lifecycle bean should have been registered", objectInstance);
|
assertNotNull("Lifecycle bean should have been registered", objectInstance);
|
||||||
|
@ -89,7 +89,7 @@ public class SpringApplicationLifecycleAutoConfigurationTests {
|
||||||
String customJmxName = "org.acme:name=FooBar";
|
String customJmxName = "org.acme:name=FooBar";
|
||||||
System.setProperty(JMX_NAME_PROPERTY, customJmxName);
|
System.setProperty(JMX_NAME_PROPERTY, customJmxName);
|
||||||
try {
|
try {
|
||||||
load(ENABLE_LIFECYCLE_PROP);
|
load(ENABLE_ADMIN_PROP);
|
||||||
try {
|
try {
|
||||||
this.mBeanServer.getObjectInstance(createObjectName(customJmxName));
|
this.mBeanServer.getObjectInstance(createObjectName(customJmxName));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue