1/**
2 *
3 */
4package org.junit.internal.builders;
5
6import org.junit.internal.runners.JUnit38ClassRunner;
7import org.junit.runner.Runner;
8import org.junit.runners.model.RunnerBuilder;
9
10public class JUnit3Builder extends RunnerBuilder {
11	@Override
12	public Runner runnerForClass(Class<?> testClass) throws Throwable {
13		if (isPre4Test(testClass))
14			return new JUnit38ClassRunner(testClass);
15		return null;
16	}
17
18	boolean isPre4Test(Class<?> testClass) {
19		return junit.framework.TestCase.class.isAssignableFrom(testClass);
20	}
21}