Esempio n. 1
0
 @Override
 protected void runChild(Runner child, RunNotifier notifier) {
   if (!(initialized)) {
     initialize();
   }
   child.run(notifier);
 }
Esempio n. 2
0
 // TODO: require an instance?
 @Override
 public void run(RunNotifier notifier) {
   List<Class<?>> allPossibleClasses = gatherClasses();
   List<Runner> allPossibleRunners = runnersForClasses(allPossibleClasses);
   List<Runner> valid = filterRunners(allPossibleRunners);
   for (Runner each : valid) each.run(notifier);
 }
Esempio n. 3
0
 @Override
 public void run(RunNotifier notifier) {
   if (myTests == null) {
     runFailure(
         createTestDescription(ModuleSymbolicSuite.NO_TESTS),
         new IllegalStateException("no tests found in " + myClassName),
         notifier);
   } else if (myDelegate == null) {
     for (String test : myTests) {
       runFailure(
           createTestDescription(test), new ClassNotFoundException(myClassName), notifier);
     }
   } else {
     myDelegate.run(notifier);
   }
 }
Esempio n. 4
0
 @Override
 public void run(RunNotifier notifier) {
   cargoRunner.run(notifier);
 }
Esempio n. 5
0
 @Override
 protected void runChild(Runner runner, final RunNotifier notifier) {
   runner.run(notifier);
 }