Home | History | Annotate | Download | only in test

Lines Matching refs:testCase

25 import junit.framework.TestCase;
38 private List<TestCase> mTestCases;
51 TestCase testCase = buildSingleTestMethod(testClass, testMethodName);
52 mTestCases = Lists.newArrayList(testCase);
64 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true);
92 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) {
94 TestCase testCase = (TestCase) testClass.newInstance();
95 testCase.setName(testMethodName);
96 return testCase;
108 return testMethodName != null && TestCase.class.isAssignableFrom(testClass);
141 public List<TestCase> getTestCases() {
165 for (TestCase testCase : mTestCases) {
166 setContextIfAndroidTestCase(testCase, mContext, testContext);
167 setInstrumentationIfInstrumentationTestCase(testCase, mInstrumentation);
168 setPerformanceWriterIfPerformanceCollectorTestCase(testCase, mPerfWriter);
169 testCase.run(mTestResult);