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