Ejemplo n.º 1
0
  @Test
  @SuppressWarnings({"unchecked", "rawtypes"})
  public void testCatchDefaultException() {
    Catch catchAction = new Catch();

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

    catchAction.execute(context);
  }
Ejemplo n.º 2
0
  @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);
  }