|
|
@ -92,7 +92,7 @@ public class JmxAutoConfigurationTests {
|
|
|
|
public void testDefaultDomainConfiguredOnMBeanExport() {
|
|
|
|
public void testDefaultDomainConfiguredOnMBeanExport() {
|
|
|
|
MockEnvironment env = new MockEnvironment();
|
|
|
|
MockEnvironment env = new MockEnvironment();
|
|
|
|
env.setProperty("spring.jmx.enabled", "true");
|
|
|
|
env.setProperty("spring.jmx.enabled", "true");
|
|
|
|
env.setProperty("spring.jmx.default_domain", "my-test-domain");
|
|
|
|
env.setProperty("spring.jmx.default-domain", "my-test-domain");
|
|
|
|
this.context = new AnnotationConfigApplicationContext();
|
|
|
|
this.context = new AnnotationConfigApplicationContext();
|
|
|
|
this.context.setEnvironment(env);
|
|
|
|
this.context.setEnvironment(env);
|
|
|
|
this.context.register(TestConfiguration.class, JmxAutoConfiguration.class);
|
|
|
|
this.context.register(TestConfiguration.class, JmxAutoConfiguration.class);
|
|
|
|