1package org.junit.internal.requests;
2
3
4import org.junit.internal.builders.AllDefaultPossibilitiesBuilder;
5import org.junit.runner.Request;
6import org.junit.runner.Runner;
7
8public class ClassRequest extends Request {
9	private final Class<?> fTestClass;
10
11	private boolean fCanUseSuiteMethod;
12
13	public ClassRequest(Class<?> testClass, boolean canUseSuiteMethod) {
14		fTestClass= testClass;
15		fCanUseSuiteMethod= canUseSuiteMethod;
16	}
17
18	public ClassRequest(Class<?> testClass) {
19		this(testClass, true);
20	}
21
22	@Override
23	public Runner getRunner() {
24		return new AllDefaultPossibilitiesBuilder(fCanUseSuiteMethod).safeRunnerForClass(fTestClass);
25	}
26}