Add integration test for task events
This resolves #126 Use RedisConnectionFactory from RedisTestSupport Add sub-project for integration tests - Since there are overlaps with the integration tests and the unit tests running together (using redis binder vs test support binder), it is better to move the integration tests to a separate sub-project Little cleanup
This commit is contained in:
committed by
Glenn Renfro
parent
1cd18497b8
commit
ced5a3aa87
@@ -35,12 +35,12 @@ public class TaskEventTests {
|
||||
public void testDefaultConfiguration() {
|
||||
ConfigurableApplicationContext applicationContext =
|
||||
SpringApplication.run(new Object[] {TaskEventsConfiguration.class,
|
||||
TaskEventAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class,
|
||||
TestSupportBinderAutoConfiguration.class},
|
||||
new String[] {"--spring.cloud.task.closecontext.enable=false",
|
||||
"--spring.main.web-environment=false",
|
||||
"--spring.cloud.stream.defaultBinder=test"});
|
||||
TaskEventAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class,
|
||||
TestSupportBinderAutoConfiguration.class},
|
||||
new String[] {"--spring.cloud.task.closecontext.enable=false",
|
||||
"--spring.main.web-environment=false",
|
||||
"--spring.cloud.stream.defaultBinder=test"});
|
||||
|
||||
assertNotNull(applicationContext.getBean("taskEventListener"));
|
||||
assertNotNull(applicationContext.getBean(TaskEventAutoConfiguration.TaskEventChannels.class));
|
||||
|
||||
Reference in New Issue
Block a user