throw new CitrusRuntimeException("Before suite failed with errors", e);
}
}
} else {
testSuiteListener.onStart();
testSuiteListener.onStartSuccess();
}
List<SequenceAfterSuite> afterSuite = CollectionUtils.arrayToList(ctx.getBeansOfType(SequenceAfterSuite.class).values().toArray());
Runtime.getRuntime().addShutdownHook(new Thread(new AfterSuiteShutdownHook(testContext.getTestInstance().getClass().getPackage().getName(), afterSuite, context, testSuiteListener)));
}