Home
last modified time | relevance | path

Searched refs:testClass (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/test-runner/src/junit/runner/
DLoadingTestCollector.java25 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 …]
DBaseTestRunner.java84 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/
DAndroidTestRunner.java48 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 …]
DTestCaseUtil.java95 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()
DInstrumentationTestRunner.java406 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()
DInstrumentationCoreTestRunner.java149 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/
DInstrumentationTestSuite.java59 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/
DConnectivityManagerTestRunner.java51 Class<ConnectivityManagerMobileTest> testClass = ConnectivityManagerMobileTest.class; in getAllTests() local
53 suite.addTest(TestSuite.createTest(testClass, method)); in getAllTests()
/frameworks/base/test-runner/src/junit/textui/
DTestRunner.java56 static public void run(Class testClass) { in run() argument
57 run(new TestSuite(testClass)); in run()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestGrouping.java162 for (Class<?> testClass : select(allClasses, in selectTestClasses()
164 testClasses.add((Class<? extends TestCase>) testClass); in selectTestClasses()
/frameworks/base/tests/CoreTests/android/core/
DClassTest.java40 public void testClass() throws Exception { in testClass() method in ClassTest