• Home
  • Raw
  • Download

Lines Matching refs:test

17 package android.test;
44 public static List<String> getTestCaseNames(Test test, boolean flatten) { in getTestCaseNames() argument
45 List<Test> tests = (List<Test>) getTests(test, flatten); in getTestCaseNames()
53 public static List<? extends Test> getTests(Test test, boolean flatten) { in getTests() argument
54 return getTests(test, flatten, new HashSet<Class<?>>()); in getTests()
57 private static List<? extends Test> getTests(Test test, boolean flatten, in getTests() argument
60 if (test != null) { in getTests()
68 if (test instanceof TestCase && in getTests()
69 ((TestCase)test).getName() == null) { in getTests()
70 workingTest = invokeSuiteMethodIfPossible(test.getClass(), in getTests()
74 workingTest = test; in getTests()
123 public static String getTestName(Test test) { in getTestName() argument
124 if (test instanceof TestCase) { in getTestName()
125 TestCase testCase = (TestCase) test; in getTestName()
127 } else if (test instanceof TestSuite) { in getTestName()
128 TestSuite testSuite = (TestSuite) test; in getTestName()
146 Test test = (Test) enumeration.nextElement(); in getTestAtIndex() local
148 return test; in getTestAtIndex()
158 Test test = invokeSuiteMethodIfPossible(testClass, in createTestSuite() local
160 if (test == null) { in createTestSuite()
163 } else if (TestCase.class.isAssignableFrom(test.getClass())) { in createTestSuite()
164 TestSuite testSuite = new TestSuite(test.getClass().getName()); in createTestSuite()
165 testSuite.addTest(test); in createTestSuite()
169 return (TestSuite) test; in createTestSuite()