Lines Matching refs:Test
21 import junit.framework.Test;
44 public static List<String> getTestCaseNames(Test test, boolean flatten) { in getTestCaseNames()
45 List<Test> tests = (List<Test>) getTests(test, flatten); in getTestCaseNames()
47 for (Test aTest : tests) { in getTestCaseNames()
53 public static List<? extends Test> getTests(Test test, boolean flatten) { in getTests()
57 private static List<? extends Test> getTests(Test test, boolean flatten, in getTests()
59 List<Test> testCases = Lists.newArrayList(); in getTests()
62 Test workingTest = null; in getTests()
81 Test childTest = (Test) enumeration.nextElement(); in getTests()
95 private static Test invokeSuiteMethodIfPossible(Class testClass, in invokeSuiteMethodIfPossible()
110 return (Test) suiteMethod.invoke(null, (Object[]) null); in invokeSuiteMethodIfPossible()
123 public static String getTestName(Test test) { in getTestName()
142 public static Test getTestAtIndex(TestSuite testSuite, int position) { in getTestAtIndex()
146 Test test = (Test) enumeration.nextElement(); in getTestAtIndex()
155 public static TestSuite createTestSuite(Class<? extends Test> testClass) in createTestSuite()
158 Test test = invokeSuiteMethodIfPossible(testClass, in createTestSuite()