org.junit.internal.builders.IgnoredBuilder Java Examples

The following examples show how to use org.junit.internal.builders.IgnoredBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AndroidRunnerBuilder.java    From android-test with Apache License 2.0 6 votes vote down vote up
/**
 * Initialize.
 *
 * <p>Each class in the {@code customRunnerBuilderClasses} list must be a concrete public class
 * and must have a public no-argument constructor.
 *
 * @param suiteBuilder the top level {@link RunnerBuilder} to use to build nested classes.
 * @param runnerParams {@link AndroidRunnerParams} that stores common runner parameters
 * @param scanningPath true if being used to build {@link Runner} from classes found while
 *     scanning the path; requires extra checks to avoid unnecessary errors.
 * @param customRunnerBuilderClasses custom {@link RunnerBuilder} classes
 * @throws IllegalStateException if any of the custom {@link RunnerBuilder} classes cannot be
 *     instantiated.
 */
AndroidRunnerBuilder(
    RunnerBuilder suiteBuilder,
    AndroidRunnerParams runnerParams,
    boolean scanningPath,
    List<Class<? extends RunnerBuilder>> customRunnerBuilderClasses) {
  super(true);
  androidJUnit3Builder = new AndroidJUnit3Builder(runnerParams, scanningPath);
  androidJUnit4Builder = new AndroidJUnit4Builder(runnerParams, scanningPath);
  androidSuiteBuilder = new AndroidSuiteBuilder(runnerParams);
  androidAnnotatedBuilder =
      new AndroidAnnotatedBuilder(suiteBuilder == null ? this : suiteBuilder, runnerParams);
  ignoredBuilder = new IgnoredBuilder();

  customRunnerBuilders = instantiateRunnerBuilders(customRunnerBuilderClasses);
}
 
Example #2
Source File: RunnerBuilder.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
	return new IgnoredBuilder() {
		@Override
		public Runner runnerForClass(Class<?> testClass) {
			if (testClass.getAnnotation(Ignore.class) != null || testClass.getAnnotation(IgnoredBySmokeTest.class) != null)
				return new IgnoredClassRunner(testClass);
			return null;
		}
	};
}
 
Example #3
Source File: RunnerBuilder.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
	return new IgnoredBuilder() {
		@Override
		public Runner runnerForClass(Class<?> testClass) {
			if (testClass.getAnnotation(Ignore.class) != null || testClass.getAnnotation(IgnoredBySmokeTest.class) != null)
				return new IgnoredClassRunner(testClass);
			return null;
		}
	};
}
 
Example #4
Source File: AllExceptIgnoredTestRunnerBuilder.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
    return new IgnoredIgnoredBuilder();
}
 
Example #5
Source File: AllExceptIgnoredTestRunnerBuilder.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
    return new IgnoredIgnoredBuilder();
}
 
Example #6
Source File: AllExceptIgnoredTestRunnerBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
    return new IgnoredIgnoredBuilder();
}
 
Example #7
Source File: AllExceptIgnoredTestRunnerBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
    return new IgnoredIgnoredBuilder();
}
 
Example #8
Source File: AndroidRunnerBuilder.java    From android-test with Apache License 2.0 4 votes vote down vote up
@Override
protected IgnoredBuilder ignoredBuilder() {
  return ignoredBuilder;
}