@Configuration @EnableAutoConfiguration(excludeName="org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration") @ComponentScan(basePackages={"org.openhubframework.openhub.common","org.openhubframework.openhub.core","org.openhubframework.openhub.test"}, excludeFilters=) @EnableConfigurationProperties @EnableSpringConfigured @EnableAspectJAutoProxy public class TestConfig extends Object
Usage in your test classes:
@SpringApplicationConfiguration(classes = {TestConfig.class, TestAopConfig.class})
Constructor and Description |
---|
TestConfig() |
Modifier and Type | Method and Description |
---|---|
ActiveRoutesCollector |
activeRoutesCollector(org.springframework.context.ApplicationContext ctx,
org.apache.camel.spring.boot.CamelConfigurationProperties config)
Implementation of
RoutesCollector for tests that adds only active routes into camel context. |
DummyPolicy |
dummyPolicy() |
org.apache.camel.spring.boot.CamelContextConfiguration |
testContextConfiguration() |
@Bean(name="roleWsAuthPolicy") public DummyPolicy dummyPolicy()
@Bean public ActiveRoutesCollector activeRoutesCollector(org.springframework.context.ApplicationContext ctx, org.apache.camel.spring.boot.CamelConfigurationProperties config)
RoutesCollector
for tests that adds only active routes into camel context.@Bean public org.apache.camel.spring.boot.CamelContextConfiguration testContextConfiguration()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.