public override void run(TestResult result) { this.fActiveTestDeathCount = 0; Thread.MemoryBarrier(); base.run(result); this.waitUntilFinished(); }
protected internal virtual void printFooter(TestResult result) { if (result.wasSuccessful()) { this.getWriter().println(); this.getWriter().print("OK"); this.getWriter().println(new StringBuilder().append(" (").append(result.runCount()).append(" test").append(result.runCount() != 1 ? "s" : "").append(")").toString()); } else { this.getWriter().println(); this.getWriter().println("FAILURES!!!"); this.getWriter().println(new StringBuilder().append("Tests run: ").append(result.runCount()).append(", Failures: ").append(result.failureCount()).append(", Errors: ").append(result.errorCount()).toString()); } this.getWriter().println(); }
protected internal virtual void printFailures(TestResult result) { this.printDefects(result.failures(), result.failureCount(), "failure"); }
protected internal virtual void printErrors(TestResult result) { this.printDefects(result.errors(), result.errorCount(), "error"); }
public override void run(TestResult result) { TestSetup\u00241 testSetup1 = new TestSetup\u00241(this, result); result.runProtected((Test) this, (Protectable) testSetup1); }
public override void run(RunNotifier notifier) { TestResult tr = new TestResult(); tr.addListener(this.createAdaptingListener(notifier)); this.getTest().run(tr); }
public override void run(TestResult result) { for (int index = 0; index < this.fTimesRepeat && !result.shouldStop(); ++index) base.run(result); }
public virtual RunNotifier getNotifier(TestResult result, JUnit4TestAdapter adapter) { RunNotifier runNotifier = new RunNotifier(); runNotifier.addListener((RunListener) new JUnit4TestAdapterCache\u00241(this, result)); return runNotifier; }
public virtual void run(TestResult result) { this.basicRun(result); }
public virtual void basicRun(TestResult result) { this.fTest.run(result); }
public virtual void run(TestResult result) { this.fRunner.run(this.fCache.getNotifier(result, this)); }
public virtual void run(TestResult result) { string str = "This test stub created only for informational purposes."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new RuntimeException(str); }
public virtual void run(TestResult result) { Iterator iterator = this.fTests.iterator(); while (iterator.hasNext()) { Test test = (Test) iterator.next(); if (result.shouldStop()) break; this.runTest(test, result); } }
public virtual void runTest(Test test, TestResult result) { test.run(result); }
public override void runTest(Test test, TestResult result) { new ActiveTestSuite\u00241(this, test, result).start(); }