Tabnine Logo
AllDefaultPossibilitiesBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
AllDefaultPossibilitiesBuilder
in
org.junit.internal.builders

Best Java code snippets using org.junit.internal.builders.AllDefaultPossibilitiesBuilder (Showing top 20 results out of 315)

origin: junit-team/junit4

/**
 * Call this when the default builder is good enough. Left in for compatibility with JUnit 4.4.
 *
 * @param klass the root of the suite
 * @param suiteClasses the classes in the suite
 */
protected Suite(Class<?> klass, Class<?>[] suiteClasses) throws InitializationError {
  this(new AllDefaultPossibilitiesBuilder(), klass, suiteClasses);
}
origin: junit-team/junit4

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  List<RunnerBuilder> builders = Arrays.asList(
      ignoredBuilder(),
      annotatedBuilder(),
      suiteMethodBuilder(),
      junit3Builder(),
      junit4Builder());
  for (RunnerBuilder each : builders) {
    Runner runner = each.safeRunnerForClass(testClass);
    if (runner != null) {
      return runner;
    }
  }
  return null;
}
origin: google/j2objc

  @Override
  public Runner getRunner() {
    synchronized (fRunnerLock) {
      if (fRunner == null) {
        fRunner = new AllDefaultPossibilitiesBuilder(fCanUseSuiteMethod).safeRunnerForClass(fTestClass);
      }
      return fRunner;
    }
  }
}
origin: org.infinitest/continuous-testing-toolkit

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  if (enclosing.equals(testClass))
    return new AllDefaultPossibilitiesExceptAnnotationRunnerBuilder(true).runnerForClass(testClass);
  if (isStatic(testClass.getModifiers()))
    return new AllDefaultPossibilitiesBuilder(true).runnerForClass(testClass);
  return new BlockJUnit4InnerClassRunner(enclosing, testClass);
}
origin: david-schuler/javalanche

private static Class<? extends Runner> getRunWithRunner(Class<?> clazz,
    boolean useSuite) {
  RunWith runWithAnnotation = clazz.getAnnotation(RunWith.class);
  if (runWithAnnotation == null) {
    AllDefaultPossibilitiesBuilder builder = new AllDefaultPossibilitiesBuilder(
        useSuite);
    try {
      return builder.runnerForClass(clazz).getClass();
    } catch (Throwable e) {
      throw new RuntimeException(e);
    }
    // return BlockJUnit4ClassRunner.class;
  }
  Class<? extends Runner> runner = runWithAnnotation.value();
  if (!runnerImplementsFilterable(runner))
    return BlockJUnit4ClassRunner.class;
  return runner;
}
origin: google/j2objc

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  List<RunnerBuilder> builders = Arrays.asList(
      ignoredBuilder(),
      annotatedBuilder(),
      suiteMethodBuilder(),
      junit3Builder(),
      junit4Builder());
  for (RunnerBuilder each : builders) {
    Runner runner = each.safeRunnerForClass(testClass);
    if (runner != null) {
      return runner;
    }
  }
  return null;
}
origin: google/j2objc

/**
 * Call this when the default builder is good enough. Left in for compatibility with JUnit 4.4.
 *
 * @param klass the root of the suite
 * @param suiteClasses the classes in the suite
 */
protected Suite(Class<?> klass, Class<?>[] suiteClasses) throws InitializationError {
  this(new AllDefaultPossibilitiesBuilder(true), klass, suiteClasses);
}
origin: camunda/camunda-bpm-platform

  @Override
  public Runner getRunner() {
    synchronized (fRunnerLock) {
      if (fRunner == null) {
        fRunner = new AllDefaultPossibilitiesBuilder(fCanUseSuiteMethod).safeRunnerForClass(fTestClass);
      }
      return fRunner;
    }
  }
}
origin: david-schuler/javalanche

} else {
  logger.debug("Using AllDefaultPossibilitiesBuilder to get Runner");
  r = new AllDefaultPossibilitiesBuilder(true)
      .runnerForClass(forName);
  r = new Suite(forName, new AllDefaultPossibilitiesBuilder(
      true));
origin: camunda/camunda-bpm-platform

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  List<RunnerBuilder> builders = Arrays.asList(
      ignoredBuilder(),
      annotatedBuilder(),
      suiteMethodBuilder(),
      junit3Builder(),
      junit4Builder());
  for (RunnerBuilder each : builders) {
    Runner runner = each.safeRunnerForClass(testClass);
    if (runner != null) {
      return runner;
    }
  }
  return null;
}
origin: google/j2objc

/**
 * Create a <code>Request</code> that, when processed, will run all the tests
 * in a set of classes.
 *
 * @param computer Helps construct Runners from classes
 * @param classes the classes containing the tests
 * @return a <code>Request</code> that will cause all tests in the classes to be run
 */
public static Request classes(Computer computer, Class<?>... classes) {
  try {
    AllDefaultPossibilitiesBuilder builder = new AllDefaultPossibilitiesBuilder(true);
    Runner suite = computer.getSuite(builder, classes);
    return runner(suite);
  } catch (InitializationError e) {
    throw new RuntimeException(
        "Bug in saff's brain: Suite constructor, called as above, should always complete");
  }
}
origin: com.oracle/truffle-tck

  @Override
  public Runner getRunner() {
    synchronized (fRunnerLock) {
      if (fRunner == null) {
        fRunner = new AllDefaultPossibilitiesBuilder(fCanUseSuiteMethod).safeRunnerForClass(fTestClass);
      }
      return fRunner;
    }
  }
}
origin: org.junit/com.springsource.org.junit

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  List<RunnerBuilder> builders = Arrays.asList(
      ignoredBuilder(),
      annotatedBuilder(),
      suiteMethodBuilder(),
      junit3Builder(),
      junit4Builder());
  for (RunnerBuilder each : builders) {
    Runner runner = each.safeRunnerForClass(testClass);
    if (runner != null) {
      return runner;
    }
  }
  return null;
}
origin: junit-team/junit4

/**
 * Create a <code>Request</code> that, when processed, will run all the tests
 * in a set of classes.
 *
 * @param computer Helps construct Runners from classes
 * @param classes the classes containing the tests
 * @return a <code>Request</code> that will cause all tests in the classes to be run
 */
public static Request classes(Computer computer, Class<?>... classes) {
  try {
    AllDefaultPossibilitiesBuilder builder = new AllDefaultPossibilitiesBuilder();
    Runner suite = computer.getSuite(builder, classes);
    return runner(suite);
  } catch (InitializationError e) {
    return runner(new ErrorReportingRunner(e, classes));
  }
}
origin: org.junit/com.springsource.org.junit

  @Override
  public Runner getRunner() {
    synchronized (fRunnerLock) {
      if (fRunner == null) {
        fRunner = new AllDefaultPossibilitiesBuilder(fCanUseSuiteMethod).safeRunnerForClass(fTestClass);
      }
      return fRunner;
    }
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  List<RunnerBuilder> builders = Arrays.asList(
      ignoredBuilder(),
      annotatedBuilder(),
      suiteMethodBuilder(),
      junit3Builder(),
      junit4Builder());
  for (RunnerBuilder each : builders) {
    Runner runner = each.safeRunnerForClass(testClass);
    if (runner != null) {
      return runner;
    }
  }
  return null;
}
origin: camunda/camunda-bpm-platform

/**
 * Call this when the default builder is good enough. Left in for compatibility with JUnit 4.4.
 *
 * @param klass the root of the suite
 * @param suiteClasses the classes in the suite
 */
protected Suite(Class<?> klass, Class<?>[] suiteClasses) throws InitializationError {
  this(new AllDefaultPossibilitiesBuilder(true), klass, suiteClasses);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.junit

  @Override
  public Runner getRunner() {
    if (runner == null) {
      synchronized (runnerLock) {
        if (runner == null) {
          runner = new AllDefaultPossibilitiesBuilder(canUseSuiteMethod).safeRunnerForClass(fTestClass);
        }
      }
    }
    return runner;
  }
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.junit

@Override
public Runner runnerForClass(Class<?> testClass) throws Throwable {
  List<RunnerBuilder> builders = Arrays.asList(
      ignoredBuilder(),
      annotatedBuilder(),
      suiteMethodBuilder(),
      junit3Builder(),
      junit4Builder());
  for (RunnerBuilder each : builders) {
    Runner runner = each.safeRunnerForClass(testClass);
    if (runner != null) {
      return runner;
    }
  }
  return null;
}
origin: hcoles/pitest

private static RunnerBuilder createRunnerBuilder() {
 return new AllDefaultPossibilitiesBuilder(true);
}
org.junit.internal.buildersAllDefaultPossibilitiesBuilder

Most used methods

  • <init>
  • annotatedBuilder
  • ignoredBuilder
  • junit3Builder
  • junit4Builder
  • suiteMethodBuilder
  • safeRunnerForClass
  • runnerForClass

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now