File Cleanup - Event to JMX
This commit is contained in:
@@ -165,7 +165,7 @@ public class ServiceActivatorDefaultFrameworkMethodTests {
|
||||
public void testFailOnDoubleReference() {
|
||||
try {
|
||||
new ClassPathXmlApplicationContext(this.getClass().getSimpleName() + "-fail-context.xml",
|
||||
this.getClass());
|
||||
this.getClass()).close();
|
||||
fail("Expected exception due to 2 endpoints referencing the same bean");
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package org.springframework.integration.jmx.config;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.parsing.BeanDefinitionParsingException;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
@@ -28,7 +29,7 @@ public class MBeanExporterNameTests {
|
||||
|
||||
@Test(expected = BeanDefinitionParsingException.class)
|
||||
public void testHandlerMBeanRegistration() throws Exception {
|
||||
new ClassPathXmlApplicationContext(getClass().getSimpleName() + "-context.xml", getClass());
|
||||
new ClassPathXmlApplicationContext(getClass().getSimpleName() + "-context.xml", getClass()).close();
|
||||
}
|
||||
|
||||
public static class Source {
|
||||
|
||||
@@ -18,4 +18,4 @@
|
||||
<context:mbean-server id="mbeanServer" />
|
||||
<int-jmx:mbean-export server="mbeanServer" default-domain="test.MethodInvoker" />
|
||||
|
||||
</beans>
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user