Searched refs:testClass (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/test-runner/src/junit/runner/
H A DLoadingTestCollector.java24 Class testClass= classFromFile(classFileName);
25 return (testClass != null) && isTestClass(testClass);
42 boolean isTestClass(Class testClass) { argument
43 if (hasSuiteMethod(testClass))
45 if (Test.class.isAssignableFrom(testClass) &&
46 Modifier.isPublic(testClass.getModifiers()) &&
47 hasPublicConstructor(testClass))
52 boolean hasSuiteMethod(Class testClass) { argument
54 testClass
61 hasPublicConstructor(Class testClass) argument
[all...]
/frameworks/testing/support/src/android/support/test/internal/runner/junit3/
H A DAndroidJUnit3Builder.java44 public Runner runnerForClass(Class<?> testClass) throws Throwable { argument
45 if (isJUnit3Test(testClass)) {
47 return new JUnit38ClassRunner(new NoExecTestSuite(testClass));
49 return new JUnit38ClassRunner(new AndroidTestSuite(testClass, mBundle, mInstr));
55 boolean isJUnit3Test(Class<?> testClass) { argument
56 return junit.framework.TestCase.class.isAssignableFrom(testClass);
H A DNoExecTestSuite.java30 public NoExecTestSuite(Class<?> testClass) { argument
31 this(new TestSuite(testClass));
H A DAndroidSuiteBuilder.java45 public Runner runnerForClass(Class<?> testClass) throws Throwable { argument
46 if (hasSuiteMethod(testClass)) {
47 Test t = SuiteMethod.testFromSuiteMethod(testClass);
50 throw new IllegalArgumentException(testClass.getName() +
H A DAndroidTestSuite.java39 public AndroidTestSuite(Class<?> testClass, Bundle bundle, Instrumentation instr) { argument
40 this(new NonLeakyTestSuite(testClass), bundle, instr);
H A DNonLeakyTestSuite.java33 public NonLeakyTestSuite(Class<?> testClass) { argument
34 super(testClass);
/frameworks/base/test-runner/src/android/test/
H A DAndroidTestRunner.java50 Class testClass = loadTestClass(testClassName);
52 if (shouldRunSingleTestMethod(testMethodName, testClass)) {
53 TestCase testCase = buildSingleTestMethod(testClass, testMethodName);
55 mTestClassName = testClass.getSimpleName();
57 setTest(getTest(testClass), testClass);
65 private void setTest(Test test, Class<? extends Test> testClass) { argument
67 if (TestSuite.class.isAssignableFrom(testClass)) {
70 mTestClassName = testClass.getSimpleName();
94 private TestCase buildSingleTestMethod(Class testClass, Strin argument
110 newSingleTestMethod(Class testClass, String testMethodName, Constructor constructor, Object... args) argument
128 shouldRunSingleTestMethod(String testMethodName, Class<? extends Test> testClass) argument
[all...]
H A DTestCaseUtil.java95 private static Test invokeSuiteMethodIfPossible(Class testClass, argument
98 Method suiteMethod = testClass.getMethod(
107 && !seen.contains(testClass)) {
108 seen.add(testClass);
155 public static TestSuite createTestSuite(Class<? extends Test> testClass) argument
158 Test test = invokeSuiteMethodIfPossible(testClass,
161 return new TestSuite(testClass);
H A DInstrumentationCoreTestRunner.java149 private void printMemory(Class<? extends Test> testClass) {
159 Log.d(TAG, "Now executing : " + testClass.getName());
H A DInstrumentationTestRunner.java424 for (String testClass : testClasses) {
425 parseTestClass(testClass, testSuiteBuilder);
762 String testClass = test.getClass().getName();
765 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass);
769 if (testClass != null && !testClass.equals(mTestClass)) {
771 String.format("\n%s:", testClass));
772 mTestClass = testClass;
/frameworks/testing/support/src/android/support/test/internal/runner/junit4/
H A DAndroidJUnit4Builder.java44 public Runner runnerForClass(Class<?> testClass) throws Throwable { argument
46 return new NonExecutingJUnit4ClassRunner(testClass);
48 return new AndroidJUnit4ClassRunner(testClass, mInstrumentation, mBundle);
/frameworks/testing/support/src/android/support/test/internal/runner/listener/
H A DInstrumentationResultPrinter.java120 String testClass = description.getClassName();
123 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass);
127 if (testClass != null && !testClass.equals(mTestClass)) {
129 String.format("\n%s:", testClass));
130 mTestClass = testClass;
H A DSuiteAssignmentPrinter.java117 Class<?> testClass = desc.getTestClass();
118 if (testClass == null) {
121 if (testClass.isAnnotationPresent(SmallTest.class)) {
123 } else if (testClass.isAnnotationPresent(MediumTest.class)) {
125 } else if (testClass.isAnnotationPresent(LargeTest.class)) {
/frameworks/base/core/java/android/test/
H A DInstrumentationTestSuite.java59 public void addTestSuite(Class testClass) { argument
60 addTest(new InstrumentationTestSuite(testClass, mInstrumentation));
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java47 Class testClass = null;
53 testClass = getClass();
54 method = testClass.getMethod(fName, (Class[]) null);
90 testClass.isAnnotationPresent(BandwidthTest.class)) {
/frameworks/testing/support/src/android/support/test/internal/runner/
H A DTestRequestBuilder.java193 final Class<?> testClass = description.getTestClass();
196 } else if (testClass != null && testClass.isAnnotationPresent(getAnnotationClass())) {
223 final Class<?> testClass = description.getTestClass();
224 if ((testClass != null && testClass.isAnnotationPresent(mAnnotationClass))
256 final Class<?> testClass = description.getTestClass();
257 if (testClass != null) {
258 return testClass.getAnnotation(SdkSuppress.class);
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestRunner.java278 String testClass = test.getClass().getName();
281 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass);
285 if (testClass != null && !testClass.equals(mTestClass)) {
287 String.format("\n%s:", testClass));
288 mTestClass = testClass;
/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestGrouping.java162 for (Class<?> testClass : select(allClasses,
164 testClasses.add((Class<? extends TestCase>) testClass);

Completed in 744 milliseconds