我有一個Springboot應用程序,我配置了一些駱駝路由。 public class CamelConfig {
private static final Logger LOG = LoggerFactory.getLogger(CamelConfig.class);
@Value("${activemq.broker.url:tcp://localhost:61616}")
Strin
我想用CamelTestSupport測試我的駱駝路線。我有一個類中定義這樣 public class ActiveMqConfig{
@Bean
public RoutesBuilder route() {
return new SpringRouteBuilder() {
@Override
public void configure() throws
返回值我在我的服務提出了以下路線: public void configure() {
/*
* Scheduled Camel route to produce a monthly report from the audit table.
* This is scheduled to run the first day of every month.
*
我正在嘗試使用http://camel.apache.org/mock.html爲我的駱駝路由創建測試用例。我需要驗證路由中的處理器。但簡單的測試不適合我。 public class CamelRouteTest extends CamelTestSupport {
@Override
public String isMockEndpointsAndSkip() {
我有一個駱駝路由輪詢來自ftp服務器的文件併發送文件到s3。我在路由中有一些處理器,它根據文件名來計算/操作標題。我需要測試這條路線,我如何注入我的處理器並在我的處理器中使用文件語言? @RunWith(MockitoJUnitRunner.class)
public class CamelS3HeadersProcessorTest extends CamelTestSupport {