use of org.springframework.integration.config.TestTrigger in project spring-integration by spring-projects.
the class PollerParserTests method pollerWithTriggerReference.
@Test
public void pollerWithTriggerReference() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("pollerWithTriggerReference.xml", PollerParserTests.class);
Object poller = context.getBean("poller");
assertNotNull(poller);
PollerMetadata metadata = (PollerMetadata) poller;
assertTrue(metadata.getTrigger() instanceof TestTrigger);
context.close();
}
Aggregations