/frameworks/base/test-runner/src/junit/runner/ |
D | LoadingTestCollector.java | 25 Class testClass= classFromFile(classFileName); in isTestClass() local 26 return (testClass != null) && isTestClass(testClass); in isTestClass() 43 boolean isTestClass(Class testClass) { in isTestClass() argument 44 if (hasSuiteMethod(testClass)) in isTestClass() 46 if (Test.class.isAssignableFrom(testClass) && in isTestClass() 47 Modifier.isPublic(testClass.getModifiers()) && in isTestClass() 48 hasPublicConstructor(testClass)) in isTestClass() 53 boolean hasSuiteMethod(Class testClass) { in hasSuiteMethod() argument 55 testClass.getMethod(BaseTestRunner.SUITE_METHODNAME, new Class[0]); in hasSuiteMethod() 62 boolean hasPublicConstructor(Class testClass) { in hasPublicConstructor() argument [all …]
|
D | BaseTestRunner.java | 84 Class testClass= null; in getTest() local 86 testClass= loadSuiteClass(suiteClassName); in getTest() 99 suiteMethod= testClass.getMethod(SUITE_METHODNAME, new Class[0]); in getTest() 103 return new TestSuite(testClass); in getTest()
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 48 Class testClass = loadTestClass(testClassName); in setTestClassName() local 50 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName() 51 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 53 mTestClassName = testClass.getSimpleName(); in setTestClassName() 55 setTest(getTest(testClass), testClass); in setTestClassName() local 63 private void setTest(Test test, Class<? extends Test> testClass) { in setTest() argument 65 if (TestSuite.class.isAssignableFrom(testClass)) { in setTest() 68 mTestClassName = testClass.getSimpleName(); in setTest() 92 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument 94 TestCase testCase = (TestCase) testClass.newInstance(); in buildSingleTestMethod() [all …]
|
D | TestCaseUtil.java | 95 private static Test invokeSuiteMethodIfPossible(Class testClass, in invokeSuiteMethodIfPossible() argument 98 Method suiteMethod = testClass.getMethod( in invokeSuiteMethodIfPossible() 107 && !seen.contains(testClass)) { in invokeSuiteMethodIfPossible() 108 seen.add(testClass); in invokeSuiteMethodIfPossible() 155 public static TestSuite createTestSuite(Class<? extends Test> testClass) in createTestSuite() argument 158 Test test = invokeSuiteMethodIfPossible(testClass, in createTestSuite() 161 return new TestSuite(testClass); in createTestSuite()
|
D | InstrumentationTestRunner.java | 406 for (String testClass : testClasses) { in parseTestClasses() 407 parseTestClass(testClass, testSuiteBuilder); in parseTestClasses() 744 String testClass = test.getClass().getName(); in startTest() local 747 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 751 if (testClass != null && !testClass.equals(mTestClass)) { in startTest() 753 String.format("\n%s:", testClass)); in startTest() 754 mTestClass = testClass; in startTest()
|
D | InstrumentationCoreTestRunner.java | 149 private void printMemory(Class<? extends Test> testClass) { in getAndroidTestRunner() 159 Log.d(TAG, "Now executing : " + testClass.getName()); in getAndroidTestRunner()
|
/frameworks/base/core/java/android/test/ |
D | InstrumentationTestSuite.java | 59 public void addTestSuite(Class testClass) { in addTestSuite() argument 60 addTest(new InstrumentationTestSuite(testClass, mInstrumentation)); in addTestSuite()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestRunner.java | 51 Class<ConnectivityManagerMobileTest> testClass = ConnectivityManagerMobileTest.class; in getAllTests() local 53 suite.addTest(TestSuite.createTest(testClass, method)); in getAllTests()
|
/frameworks/base/test-runner/src/junit/textui/ |
D | TestRunner.java | 56 static public void run(Class testClass) { in run() argument 57 run(new TestSuite(testClass)); in run()
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 162 for (Class<?> testClass : select(allClasses, in selectTestClasses() 164 testClasses.add((Class<? extends TestCase>) testClass); in selectTestClasses()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | ClassTest.java | 40 public void testClass() throws Exception { in testClass() method in ClassTest
|