コード例 #1
0
ファイル: CatchTest.java プロジェクト: holzerc/citrus
  @Test
  @SuppressWarnings({"unchecked", "rawtypes"})
  public void testCatchDefaultException() {
    Catch catchAction = new Catch();

    List actionList = Collections.singletonList(new FailAction());
    catchAction.setActions(actionList);

    catchAction.execute(context);
  }
コード例 #2
0
ファイル: CatchTest.java プロジェクト: holzerc/citrus
  @Test
  @SuppressWarnings({"unchecked", "rawtypes"})
  public void testNothingToCatch() {
    Catch catchAction = new Catch();

    List actionList = Collections.singletonList(new EchoAction());
    catchAction.setActions(actionList);

    catchAction.setException("com.consol.citrus.exceptions.CitrusRuntimeException");

    catchAction.execute(context);
  }