INT-1812 eliminated package cycles
This commit is contained in:
committed by
Gary Russell
parent
a5b13dba44
commit
985374ca69
@@ -26,11 +26,11 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.aopalliance.aop.Advice;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.parsing.BeanDefinitionParsingException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
import org.springframework.integration.config.TestTrigger;
|
||||
import org.springframework.integration.context.IntegrationContextUtils;
|
||||
import org.springframework.integration.scheduling.PollerMetadata;
|
||||
import org.springframework.integration.test.util.TestUtils;
|
||||
import org.springframework.scheduling.support.PeriodicTrigger;
|
||||
@@ -51,7 +51,7 @@ public class PollerParserTests {
|
||||
"defaultPollerWithId.xml", PollerParserTests.class);
|
||||
Object poller = context.getBean("defaultPollerWithId");
|
||||
assertNotNull(poller);
|
||||
Object defaultPoller = context.getBean(IntegrationContextUtils.DEFAULT_POLLER_METADATA_BEAN_NAME);
|
||||
Object defaultPoller = context.getBean(PollerMetadata.DEFAULT_POLLER_METADATA_BEAN_NAME);
|
||||
assertNotNull(defaultPoller);
|
||||
assertEquals(defaultPoller, context.getBean("defaultPollerWithId"));
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public class PollerParserTests {
|
||||
public void defaultPollerWithoutId() {
|
||||
ApplicationContext context = new ClassPathXmlApplicationContext(
|
||||
"defaultPollerWithoutId.xml", PollerParserTests.class);
|
||||
Object defaultPoller = context.getBean(IntegrationContextUtils.DEFAULT_POLLER_METADATA_BEAN_NAME);
|
||||
Object defaultPoller = context.getBean(PollerMetadata.DEFAULT_POLLER_METADATA_BEAN_NAME);
|
||||
assertNotNull(defaultPoller);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user