Fix failing test due to change in JMX export default setting

This commit is contained in:
Christian Dupuis 2013-12-13 23:31:55 +01:00
parent beef5cfd31
commit 2b16a4af39

View File

@ -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)