Exemplo n.º 1
0
 public JUnit4TestAdapter(Class newTestClass, JUnit4TestAdapterCache cache)
 {
   base.\u002Ector();
   JUnit4TestAdapter junit4TestAdapter = this;
   this.fCache = cache;
   this.fNewTestClass = newTestClass;
   this.fRunner = Request.classWithoutSuiteMethod(newTestClass).getRunner();
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 protected internal virtual Description describeChild(Runner child)
 {
   return child.getDescription();
 }
Exemplo n.º 4
0
 public static Request runner(Runner runner)
 {
   return (Request) new Request\u00241(runner);
 }
Exemplo n.º 5
0
 protected internal virtual void runChild(Runner runner, RunNotifier notifier)
 {
   runner.run(notifier);
 }