317.3. 例
たとえば、以下のようにテストケースを作成できます。
from("seda:someEndpoint"). to("test:file://data/expectedOutput?noop=true");
from("seda:someEndpoint").
to("test:file://data/expectedOutput?noop=true");
テストが MockEndpoint.assertIsSatisfied(camelContext)メソッド を呼び出すと、テストケースが必要なアサーションを実行します。
テストエンドポイントに他の期待値を設定する方法は、「 Mock コンポーネント」を参照してください。