Fix failing test due to change in JMX export default setting

pull/165/head
Christian Dupuis 11 years ago
parent beef5cfd31
commit 2b16a4af39

@ -47,14 +47,13 @@ public class JmxAutoConfigurationTests {
}
}
@Test(expected = NoSuchBeanDefinitionException.class)
@Test
public void testDefaultMBeanExport() {
this.context = new AnnotationConfigApplicationContext();
this.context.register(JmxAutoConfiguration.class);
this.context.refresh();
this.context.getBean(MBeanExporter.class);
fail();
assertNotNull(this.context.getBean(MBeanExporter.class));
}
@Test(expected = NoSuchBeanDefinitionException.class)

Loading…
Cancel
Save