public EachTestNotifier(RunNotifier notifier, Description description)
 {
   base.\u002Ector();
   EachTestNotifier eachTestNotifier = this;
   this.fNotifier = notifier;
   this.fDescription = description;
 }
Example #2
0
 public MethodRoadie(object test, TestMethod method, RunNotifier notifier, Description description)
 {
   base.\u002Ector();
   MethodRoadie methodRoadie = this;
   this.fTest = test;
   this.fNotifier = notifier;
   this.fDescription = description;
   this.fTestMethod = method;
 }
Example #3
0
 public ClassRoadie(RunNotifier notifier, TestClass testClass, Description description, Runnable runnable)
 {
   base.\u002Ector();
   ClassRoadie classRoadie = this;
   this.fNotifier = notifier;
   this.fTestClass = testClass;
   this.fDescription = description;
   this.fRunnable = runnable;
 }
Example #4
0
 public JUnitCore()
 {
   base.\u002Ector();
   JUnitCore junitCore = this;
   this.fNotifier = new RunNotifier();
 }
 public virtual RunNotifier getNotifier(TestResult result, JUnit4TestAdapter adapter)
 {
   RunNotifier runNotifier = new RunNotifier();
   runNotifier.addListener((RunListener) new JUnit4TestAdapterCache\u00241(this, result));
   return runNotifier;
 }
    protected internal virtual void invokeTestMethod(Method method, RunNotifier notifier)
    {
      Description description = this.methodDescription(method);
      object test;
      InvocationTargetException invocationTargetException1;
      Exception exception1;
      try
      {
        try
        {
          test = this.createTest();
          goto label_8;
        }
        catch (InvocationTargetException ex)
        {
          int num = 1;
          invocationTargetException1 = (InvocationTargetException) ByteCodeHelper.MapException<InvocationTargetException>((Exception) ex, (ByteCodeHelper.MapFlags) num);
        }
      }
      catch (Exception ex)
      {
        int num = 0;
        M0 m0 = ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num);
        if (m0 == null)
        {
          throw;
        }
        else
        {
          exception1 = (Exception) m0;
          goto label_7;
        }
      }
      InvocationTargetException invocationTargetException2 = invocationTargetException1;
      this.testAborted(notifier, description, invocationTargetException2.getCause());
      return;
label_7:
      Exception exception2 = exception1;
      this.testAborted(notifier, description, (Exception) exception2);
      return;
label_8:
      TestMethod method1 = this.wrapMethod(method);
      new MethodRoadie(test, method1, notifier, description).run();
    }
Example #7
0
 protected internal abstract void runChild(object obj, RunNotifier rn);
 protected internal override void runChild(object x0, RunNotifier x1)
 {
   this.runChild((FrameworkMethod) x0, x1);
 }
 public virtual TestListener createAdaptingListener(RunNotifier notifier)
 {
   return (TestListener) new JUnit38ClassRunner.OldTestClassAdaptingListener(this, notifier, (JUnit38ClassRunner.\u0031) null);
 }
Example #10
0
 protected internal override void runChild(object x0, RunNotifier x1)
 {
   this.runChild((Runner) x0, x1);
 }
Example #11
0
 protected internal virtual void runChild(Runner runner, RunNotifier notifier)
 {
   runner.run(notifier);
 }
Example #12
0
 public abstract void run(RunNotifier rn);
Example #13
0
 protected internal virtual Statement childrenInvoker(RunNotifier notifier)
 {
   return (Statement) new ParentRunner\u00242(this, notifier);
 }
Example #14
0
    public override void run(RunNotifier notifier)
    {
      EachTestNotifier eachTestNotifier = new EachTestNotifier(notifier, this.getDescription());
      StoppedByUserException stoppedByUserException;
      Exception exception;
      try
      {
        try
        {
          try
          {
            this.classBlock(notifier).evaluate();
            return;
          }
          catch (AssumptionViolatedException ex)
          {
          }
        }
        catch (StoppedByUserException ex)
        {
          int num = 1;
          stoppedByUserException = (StoppedByUserException) ByteCodeHelper.MapException<StoppedByUserException>((Exception) ex, (ByteCodeHelper.MapFlags) num);
          goto label_6;
        }
      }
      catch (Exception ex)
      {
        int num = 0;
        exception = (Exception) ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num);
        goto label_7;
      }
      eachTestNotifier.fireTestIgnored();
      return;
label_6:
      throw Throwable.__\u003Cunmap\u003E((Exception) stoppedByUserException);
label_7:
      Exception targetException = exception;
      eachTestNotifier.addFailure(targetException);
    }
 public override void run(RunNotifier notifier)
 {
   TestResult tr = new TestResult();
   tr.addListener(this.createAdaptingListener(notifier));
   this.getTest().run(tr);
 }
 private OldTestClassAdaptingListener([In] JUnit38ClassRunner obj0, [In] RunNotifier obj1)
 {
   base.\u002Ector();
   JUnit38ClassRunner.OldTestClassAdaptingListener adaptingListener = this;
   this.fNotifier = obj1;
 }
 public override void run(RunNotifier notifier)
 {
   Iterator iterator = this.fCauses.iterator();
   while (iterator.hasNext())
     this.runCause((Exception) iterator.next(), notifier);
 }
 protected internal virtual void runChild(FrameworkMethod method, RunNotifier notifier)
 {
   EachTestNotifier eachTestNotifier = this.makeNotifier(method, notifier);
   if (method.getAnnotation((Class) ClassLiteral<Ignore>.Value) != null)
     this.runIgnored(eachTestNotifier);
   else
     this.runNotIgnored(method, eachTestNotifier);
 }
 public override void run(RunNotifier notifier)
 {
   new ClassRoadie(notifier, this.fTestClass, this.getDescription(), (Runnable) new JUnit4ClassRunner\u00241(this, notifier)).runProtected();
 }
 protected internal virtual void runMethods(RunNotifier notifier)
 {
   Iterator iterator = this.fTestMethods.iterator();
   while (iterator.hasNext())
     this.invokeTestMethod((Method) iterator.next(), notifier);
 }
Example #21
0
 protected internal virtual Statement classBlock(RunNotifier notifier)
 {
   return this.withAfterClasses(this.withBeforeClasses(this.childrenInvoker(notifier)));
 }