public Arquillian(Class<?> testClass) throws InitializationError { super(testClass); if (State.isRunningInEclipse()) { State.runnerStarted(); } }
public Arquillian(Class<?> testClass) throws InitializationError { super(testClass); if (State.isRunningInEclipse()) { State.runnerStarted(); } }
void beforeTestClassPhase(Class<?> testClass) throws Exception { State.runnerStarted(); initializeAdaptor(); // initialization ok, run children if (State.hasTestAdaptor()) { setAdaptor(State.getTestAdaptor()); } getAdaptor().beforeClass(testClass, LifecycleMethodExecutor.NO_OP); }
void beforeTestClassPhase(Class<?> testClass) throws Exception { State.runnerStarted(); initializeAdaptor(); // initialization ok, run children if (State.hasTestAdaptor()) { setAdaptor(State.getTestAdaptor()); } getAdaptor().beforeClass(testClass, LifecycleMethodExecutor.NO_OP); }
@Override public void run(final RunNotifier notifier) { if (State.hasAnyArquillianRule(this.getTestClass())) { throw new RuntimeException(String.format("TestClass: %s contains Arquillian runner and Arquillian Rule." + " Arquillian doesn't support @RunWith(Arquillian.class) and ArquillianTestClass or " + "ArquillianTest to use at the same time. You have to decide whether you want use runner:" + " http://arquillian.org/arquillian-core/#how-it-works or rules : http://arquillian.org/arquillian-core/#_how_to_use_it", this.getTestClass().getName())); } if (State.isNotRunningInEclipse()) { State.runnerStarted(); } AdaptorManagerWithNotifier adaptorManager = new AdaptorManagerWithNotifier(notifier) { protected void setAdaptor(TestRunnerAdaptor testRunnerAdaptor) { adaptor = testRunnerAdaptor; } protected TestRunnerAdaptor getAdaptor() { return adaptor; } protected Description getFailureDescription() { return getDescription(); } }; adaptorManager.initializeAdaptor(); adaptorManager.prepareDestroyAdaptorProcess(); // initialization ok, run children if (State.hasTestAdaptor()) { super.run(notifier); } }
@Override public void run(final RunNotifier notifier) { if (State.hasAnyArquillianRule(this.getTestClass())) { throw new RuntimeException(String.format("TestClass: %s contains Arquillian runner and Arquillian Rule." + " Arquillian doesn't support @RunWith(Arquillian.class) and ArquillianTestClass or " + "ArquillianTest to use at the same time. You have to decide whether you want use runner:" + " http://arquillian.org/arquillian-core/#how-it-works or rules : http://arquillian.org/arquillian-core/#_how_to_use_it", this.getTestClass().getName())); } if (State.isNotRunningInEclipse()) { State.runnerStarted(); } AdaptorManagerWithNotifier adaptorManager = new AdaptorManagerWithNotifier(notifier) { protected void setAdaptor(TestRunnerAdaptor testRunnerAdaptor) { adaptor = testRunnerAdaptor; } protected TestRunnerAdaptor getAdaptor() { return adaptor; } protected Description getFailureDescription() { return getDescription(); } }; adaptorManager.initializeAdaptor(); adaptorManager.prepareDestroyAdaptorProcess(); // initialization ok, run children if (State.hasTestAdaptor()) { super.run(notifier); } }