public JUnit4TestAdapter(Class newTestClass, JUnit4TestAdapterCache cache) { base.\u002Ector(); JUnit4TestAdapter junit4TestAdapter = this; this.fCache = cache; this.fNewTestClass = newTestClass; this.fRunner = Request.classWithoutSuiteMethod(newTestClass).getRunner(); }
public virtual Result run(Runner runner) { Result result = new Result(); RunListener listener = result.createListener(); this.fNotifier.addFirstListener(listener); try { this.fNotifier.fireTestRunStarted(runner.getDescription()); runner.run(this.fNotifier); this.fNotifier.fireTestRunFinished(result); } finally { this.removeListener(listener); } return result; }
protected internal virtual Description describeChild(Runner child) { return child.getDescription(); }
public static Request runner(Runner runner) { return (Request) new Request\u00241(runner); }
protected internal virtual void runChild(Runner runner, RunNotifier notifier) { runner.run(notifier); }