static boolean hasInitializationException() { return getInitializationException() != null; }
static boolean hasInitializationException() { return getInitializationException() != null; }
void initializeAdaptor() throws Exception { // first time we're being initialized if (!State.hasTestAdaptor()) { // no, initialization has been attempted before and failed, refuse // to do anything else if (State.hasInitializationException()) { // failed on suite level, ignore children // notifier.fireTestIgnored(getFailureDescription()); handleSuiteLevelFailure(State.getInitializationException()); } else { try { // ARQ-1742 If exceptions happen during boot TestRunnerAdaptor adaptor = TestRunnerAdaptorBuilder .build(); // don't set it if beforeSuite fails adaptor.beforeSuite(); State.testAdaptor(adaptor); } catch (Exception e) { // caught exception during BeforeSuite, mark this as failed State.caughtInitializationException(e); handleBeforeSuiteFailure(e); } } } if (State.hasTestAdaptor()) { setAdaptor(State.getTestAdaptor()); } }
void initializeAdaptor() throws Exception { // first time we're being initialized if (!State.hasTestAdaptor()) { // no, initialization has been attempted before and failed, refuse // to do anything else if (State.hasInitializationException()) { // failed on suite level, ignore children // notifier.fireTestIgnored(getFailureDescription()); handleSuiteLevelFailure(State.getInitializationException()); } else { try { // ARQ-1742 If exceptions happen during boot TestRunnerAdaptor adaptor = TestRunnerAdaptorBuilder .build(); // don't set it if beforeSuite fails adaptor.beforeSuite(); State.testAdaptor(adaptor); } catch (Exception e) { // caught exception during BeforeSuite, mark this as failed State.caughtInitializationException(e); handleBeforeSuiteFailure(e); } } } if (State.hasTestAdaptor()) { setAdaptor(State.getTestAdaptor()); } }