Lines Matching refs:test

17 package android.test;
60 public void setTest(Test test) {
61 setTest(test, test.getClass());
64 private void setTest(Test test, Class<? extends Test> testClass) {
65 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true);
67 mTestClassName = TestCaseUtil.getTestName(test);
88 runFailed("Could not find test class. Class: " + testClassName);
116 runFailed("Could not access test class. Class: " + testClass.getName());
118 runFailed("Could not instantiate test class. Class: " + testClass.getName());
139 runFailed("Could not instantiate test suite provider. Class: " + clazz.getName());
141 runFailed("Illegal access of test suite provider. Class: " + clazz.getName());
143 runFailed("Invocation exception test suite provider. Class: " + clazz.getName());
145 runFailed("No such method on test suite provider. Class: " + clazz.getName());
194 private void setContextIfAndroidTestCase(Test test, Context context, Context testContext) {
195 if (AndroidTestCase.class.isAssignableFrom(test.getClass())) {
196 ((AndroidTestCase) test).setContext(context);
197 ((AndroidTestCase) test).setTestContext(testContext);
206 Test test, Instrumentation instrumentation) {
207 if (InstrumentationTestCase.class.isAssignableFrom(test.getClass())) {
208 ((InstrumentationTestCase) test).injectInstrumentation(instrumentation);
213 Test test, PerformanceResultsWriter writer) {
214 if (PerformanceCollectorTestCase.class.isAssignableFrom(test.getClass())) {
215 ((PerformanceCollectorTestCase) test).setPerformanceResultsWriter(writer);
250 public void testFailed(int status, Test test, Throwable t) {