Exemple #1
0
 public Failure(Description description, Exception thrownException)
 {
   base.\u002Ector();
   Failure failure = this;
   this.fThrownException = thrownException;
   this.fDescription = description;
 }
 public EachTestNotifier(RunNotifier notifier, Description description)
 {
   base.\u002Ector();
   EachTestNotifier eachTestNotifier = this;
   this.fNotifier = notifier;
   this.fDescription = description;
 }
 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;
 }
 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;
 }
 public virtual List asTestList(Description description)
 {
   if (description.isTest())
   {
     Test[] testArray = new Test[1];
     int index = 0;
     Test test = this.asTest(description);
     testArray[index] = test;
     return Arrays.asList((object[]) testArray);
   }
   else
   {
     ArrayList arrayList = new ArrayList();
     Iterator iterator = description.getChildren().iterator();
     while (iterator.hasNext())
     {
       Description description1 = (Description) iterator.next();
       ((List) arrayList).add((object) this.asTest(description1));
     }
     return (List) arrayList;
   }
 }
 public override void testIgnored(Description description)
 {
   this.fWriter.append('I');
 }
 public override void testStarted(Description description)
 {
   this.fWriter.append('.');
 }
 public virtual void addChild(Description description)
 {
   this.getChildren().add((object) description);
 }
 public virtual Test asTest(Description description)
 {
   if (description.isSuite())
   {
     return this.createTest(description);
   }
   else
   {
     if (!this.containsKey((object) description))
       this.put((object) description, (object) this.createTest(description));
     return (Test) this.get((object) description);
   }
 }
 internal JUnit4TestCaseFacade([In] Description obj0)
 {
   base.\u002Ector();
   JUnit4TestCaseFacade junit4TestCaseFacade = this;
   this.fDescription = obj0;
 }
Exemple #11
0
 public virtual int compare(Description o1, Description o2)
 {
   return this.fComparator.compare((object) o1, (object) o2);
 }
 public virtual void testStarted(Description description)
 {
 }
Exemple #13
0
 public virtual Request filterWith(Description desiredDescription)
 {
   return this.filterWith(org.junit.runner.manipulation.Filter.matchMethodDescription(desiredDescription));
 }
Exemple #14
0
 public abstract bool shouldRun(Description d);
Exemple #15
0
 public static Filter matchMethodDescription(Description desiredDescription)
 {
   return (Filter) new Filter\u00242(desiredDescription);
 }
 public virtual void testIgnored(Description description)
 {
 }
 public virtual void testFinished(Description description)
 {
 }