@Test @SuppressWarnings({"unchecked", "rawtypes"}) public void testCatchDefaultException() { Catch catchAction = new Catch(); List actionList = Collections.singletonList(new FailAction()); catchAction.setActions(actionList); catchAction.execute(context); }
@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); }