213214215216217218219220221222223
stage.init(context); stage.preProcess(); boolean exceptionCaught = false; try { stage.process(event); } catch (Exception e) { exceptionCaught = true; } AssertJUnit.assertTrue(exceptionCaught);
191192193194195196197198199200201
StageContext context = new StageContext(); stage.init(context); stage.preProcess(); boolean exceptionCaught = false; try { stage.process(event); } catch (Exception e) { exceptionCaught = true; } AssertJUnit.assertTrue(exceptionCaught); stage.postProcess();