Пример #1
0
 @Override
 protected void runChild(Runner child, RunNotifier notifier) {
   if (!(initialized)) {
     initialize();
   }
   child.run(notifier);
 }
Пример #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);
 }
Пример #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);
   }
 }
Пример #4
0
 @Override
 public void run(RunNotifier notifier) {
   cargoRunner.run(notifier);
 }
Пример #5
0
 @Override
 protected void runChild(Runner runner, final RunNotifier notifier) {
   runner.run(notifier);
 }