File Cleanup - Event to JMX

This commit is contained in:
Gary Russell
2016-06-04 11:39:43 -04:00
parent e16f084628
commit 8e3622757d
55 changed files with 202 additions and 152 deletions

View File

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

View File

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

View File

@@ -18,4 +18,4 @@
<context:mbean-server id="mbeanServer" />
<int-jmx:mbean-export server="mbeanServer" default-domain="test.MethodInvoker" />
</beans>
</beans>