JMX: remove duplicate annotations

This commit is contained in:
Dave Syer
2010-10-13 08:17:07 -07:00
parent 9f8b4d93a5
commit f69a178c1f
8 changed files with 76 additions and 101 deletions

View File

@@ -15,6 +15,7 @@ package org.springframework.integration.jmx.config;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Set;
import javax.management.MBeanServer;
@@ -46,6 +47,7 @@ public class MBeanRegistrationTests {
@Test
public void testExporterMBeanRegistration() throws Exception {
// System.err.println(server.queryNames(new ObjectName("*:type=*MBeanExporter,*"), null));
System.err.println(Arrays.asList(server.getMBeanInfo(server.queryNames(new ObjectName("*:type=*Handler,*"), null).iterator().next()).getAttributes()));
Set<ObjectName> names = server.queryNames(new ObjectName("test.MBeanRegistration:type=IntegrationMBeanExporter,name=integrationMbeanExporter,*"), null);
assertEquals(1, names.size());
}