camel-test

    1熱度

    1回答

    ,而我使用property-placeholder標記,如下所示加載性能: <cm:property-placeholder id="myblueprint.test" persistent-id="camel.blueprint"/> 在部署我對JBOSS保險絲項目,它會加載camel.blueprint.cfg從/etc/目錄FUSE的,而當我在結構配置文件上部署項目,它將從配置文件中創建

    0熱度

    1回答

    我是駱駝世界的新手。使用camel-cxf,我已經實現了一個web服務(基於請求的id,查詢數據庫,如果發現形式的響應與記錄細節,否則返回靜態響應),它有一些非常基本的數據庫交互和轉換。 我正在嘗試編寫一些單元測試(獨立於數據庫),例如將數據庫交互作用以形成靜態響應)。有沒有辦法跳過發送到數據庫端點併發送交換中的靜態數據(模仿數據庫記錄)並驗證轉換結果? 問候, 香卡

    0熱度

    2回答

    我有一個Springboot應用程序,我配置了一些駱駝路由。 public class CamelConfig { private static final Logger LOG = LoggerFactory.getLogger(CamelConfig.class); @Value("${activemq.broker.url:tcp://localhost:61616}") Strin

    0熱度

    2回答

    我想用CamelTestSupport測試我的駱駝路線。我有一個類中定義這樣 public class ActiveMqConfig{ @Bean public RoutesBuilder route() { return new SpringRouteBuilder() { @Override public void configure() throws

    -1熱度

    1回答

    我有以下春天路線: <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="activemq:topic:inbox" /> <choice> <when> <simple>${in.header.Value}</simp

    1熱度

    1回答

    返回值我在我的服務提出了以下路線: 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. *

    1熱度

    1回答

    我正在嘗試使用http://camel.apache.org/mock.html爲我的駱駝路由創建測試用例。我需要驗證路由中的處理器。但簡單的測試不適合我。 public class CamelRouteTest extends CamelTestSupport { @Override public String isMockEndpointsAndSkip() {

    2熱度

    2回答

    我有一個駱駝路由輪詢來自ftp服務器的文件併發送文件到s3。我在路由中有一些處理器,它根據文件名來計算/操作標題。我需要測試這條路線,我如何注入我的處理器並在我的處理器中使用文件語言? @RunWith(MockitoJUnitRunner.class) public class CamelS3HeadersProcessorTest extends CamelTestSupport {