org.junit.internal.requests.ClassRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit Show documentation
Show all versions of junit Show documentation
JUnit is a regression testing framework. It is used by the developer who implements unit tests in Java.
package org.junit.internal.requests;
import org.junit.internal.builders.AllDefaultPossibilitiesBuilder;
import org.junit.runner.Request;
import org.junit.runner.Runner;
public class ClassRequest extends Request {
private final Class fTestClass;
private boolean fCanUseSuiteMethod;
public ClassRequest(Class testClass, boolean canUseSuiteMethod) {
fTestClass= testClass;
fCanUseSuiteMethod= canUseSuiteMethod;
}
public ClassRequest(Class testClass) {
this(testClass, true);
}
@Override
public Runner getRunner() {
return new AllDefaultPossibilitiesBuilder(fCanUseSuiteMethod).safeRunnerForClass(fTestClass);
}
}