INT-1789: fix test for Java 5 (duh)

This commit is contained in:
Dave Syer
2011-05-03 17:28:53 +01:00
parent fdc5862e44
commit 2150b9b806
3 changed files with 9 additions and 2 deletions

View File

@@ -135,9 +135,11 @@ public class MBeanExporterIntegrationTests {
messageChannelsMonitor = context.getBean(IntegrationMBeanExporter.class);
assertNotNull(messageChannelsMonitor);
MBeanServer server = context.getBean(MBeanServer.class);
Set<ObjectName> names = server.queryNames(ObjectName.getInstance("org.springframework.integration:type=*,*"), null);
Set<ObjectName> names = server.queryNames(ObjectName.getInstance("org.springframework.integration:type=MessageChannel,*"), null);
// Only one registered (out of >2 available)
assertEquals(1, names.size());
names = server.queryNames(ObjectName.getInstance("org.springframework.integration:type=MessageHandler,*"), null);
assertEquals(0, names.size());
}
public static class DateFactoryBean implements FactoryBean<Date> {

View File

@@ -18,6 +18,10 @@
<int:queue />
</int:channel>
<int:channel id="output">
<int:queue />
</int:channel>
<int:inbound-channel-adapter id="explicit" ref="service" method="execute" channel="input">
<int:poller fixed-rate="200" />
</int:inbound-channel-adapter>