/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 24 import junit.framework.TestCase; 51 SortedSet<Class<? extends TestCase>> testCaseClasses; 53 public static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME 56 public static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME 62 public TestGrouping(Comparator<Class<? extends TestCase>> comparator) { in TestGrouping() 63 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); in TestGrouping() 72 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests() 80 protected List<Method> getTestMethods(Class<? extends TestCase> testCaseClass) { in getTestMethods() 85 SortedSet<Class<? extends TestCase>> getTestCaseClasses() { in getTestCaseClasses() 117 List<Class<? extends TestCase>> addedClasses = testCaseClassesInPackage(packageName); in addPackagesRecursive() [all …]
|
D | TestMethod.java | 19 import junit.framework.TestCase; 34 private final Class<? extends TestCase> enclosingClass; 36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() 40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() 46 public TestMethod(TestCase testCase) { in TestMethod() 67 public Class<? extends TestCase> getEnclosingClass() { in getEnclosingClass() 71 public TestCase createTest() in createTest() 77 private TestCase instantiateTest(Class testCaseClass, String testName) in instantiateTest() 87 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest() 93 return ((Constructor<? extends TestCase>) constructor) in instantiateTest()
|
D | TestSuiteBuilder.java | 29 import junit.framework.TestCase; 47 private List<TestCase> testCases; 86 for (TestCase testCase : (List<TestCase>) TestCaseUtil.getTests(testSuite, true)) { in addTestSuite() 186 for (TestCase testCase : testCases) { in build() 227 public static class FailedToCreateTests extends TestCase {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MockAccessibilityService.java | 30 import junit.framework.TestCase; 181 TestCase.assertEquals("addedCount has incorrect value", expectedEvent.getAddedCount(), in assertEqualsAccessiblityEvent() 183 TestCase.assertEquals("beforeText has incorrect value", expectedEvent.getBeforeText(), in assertEqualsAccessiblityEvent() 185 TestCase.assertEquals("checked has incorrect value", expectedEvent.isChecked(), in assertEqualsAccessiblityEvent() 187 TestCase.assertEquals("className has incorrect value", expectedEvent.getClassName(), in assertEqualsAccessiblityEvent() 189 TestCase.assertEquals("contentDescription has incorrect value", expectedEvent in assertEqualsAccessiblityEvent() 191 TestCase.assertEquals("currentItemIndex has incorrect value", expectedEvent in assertEqualsAccessiblityEvent() 193 TestCase.assertEquals("enabled has incorrect value", expectedEvent.isEnabled(), in assertEqualsAccessiblityEvent() 195 TestCase.assertEquals("eventType has incorrect value", expectedEvent.getEventType(), in assertEqualsAccessiblityEvent() 197 TestCase.assertEquals("fromIndex has incorrect value", expectedEvent.getFromIndex(), in assertEqualsAccessiblityEvent() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ExportTestProvider.java | 32 import junit.framework.TestCase; 100 TestCase.assertTrue(uri != null); in queryEntities() 101 TestCase.assertTrue(ContentResolver.SCHEME_CONTENT.equals(uri.getScheme())); in queryEntities() 103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority)); in queryEntities() 104 TestCase.assertTrue((Data.CONTACT_ID + "=?").equals(selection)); in queryEntities() 105 TestCase.assertEquals(1, selectionArgs.length); in queryEntities() 107 TestCase.assertTrue(id >= 0); in queryEntities() 108 TestCase.assertTrue(id < mContactEntryList.size()); in queryEntities() 116 TestCase.assertTrue(VCardVerifier.CONTACTS_TEST_CONTENT_URI.equals(uri)); 118 TestCase.assertNull(selection); [all …]
|
D | LineVerifierElem.java | 23 import junit.framework.TestCase; 58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify() 65 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify() 74 TestCase.fail("Multiple VERSION line + found"); in verify() 82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify() 84 TestCase.fail("Property other than END came after END property: " + line); in verify() 91 TestCase.fail("Unexpected line: " + line); in verify() 102 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
|
D | ImportTestProvider.java | 27 import junit.framework.TestCase; 62 TestCase.fail("There is no operation."); in applyBatch() 83 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_NAME)); in applyBatch() 84 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_TYPE)); in applyBatch() 88 TestCase.fail("Unregistered MimeType " + mimeType); in applyBatch() 118 TestCase.fail("ContentValues for MimeType " + mimeType in applyBatch() 130 TestCase.assertTrue(contentValuesCollection.remove(expectedContentValues)); in applyBatch() 145 TestCase.fail(builder.toString()); in applyBatch() 148 TestCase.fail("Unexpected Uri has come: " + uri); in applyBatch() 170 TestCase.fail(failMsg); in verify() [all …]
|
/frameworks/base/test-runner/tests/src/android/test/ |
D | AndroidTestRunnerTest.java | 24 import junit.framework.TestCase; 37 public class AndroidTestRunnerTest extends TestCase { 53 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testLoadNoTestCases() 63 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testSetTestSuiteWithOneTestCase() 107 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testRunTestWithAndroidTestCaseInSuite() 108 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite() 123 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testRunTestWithAndroidTestCaseInNestedSuite() 124 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite() 142 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testSetTestClassWithTestSuiteProvider() 144 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider() [all …]
|
D | TestCaseUtilTest.java | 20 import junit.framework.TestCase; 25 public class TestCaseUtilTest extends TestCase { 38 TestCase testCase = new OneTestTestCaseWithSuite(); in testGetTestCaseNamesForTestCaseWithSuiteMethod() 65 public static class OneTestTestCase extends TestCase { 70 public static class OneTestTestCaseWithSuite extends TestCase { 72 TestCase testCase = new OneTestTestCase(); in suite()
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
D | AssignableFromTest.java | 19 import junit.framework.TestCase; 23 public class AssignableFromTest extends TestCase { 52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) in testMethodFor() 58 private class Animal extends TestCase { 76 private class Pencil extends TestCase implements WritingInstrument { 81 private class Pen extends TestCase implements WritingInstrument {
|
D | ListTestCaseNames.java | 20 import junit.framework.TestCase; 33 if (test instanceof TestCase) { in getTestCaseNames() 34 testCaseNames.add(((TestCase) test).getName()); in getTestCaseNames() 49 if (test instanceof TestCase) { in getTestNames() 51 String testName = ((TestCase) test).getName(); in getTestNames()
|
D | UnitTestSuiteBuilderTest.java | 24 import junit.framework.TestCase; 32 public class UnitTestSuiteBuilderTest extends TestCase { 105 TestCase testCase = (TestCase) test; in testName()
|
D | InstrumentationTestSuiteBuilderTest.java | 25 import junit.framework.TestCase; 34 public class InstrumentationTestSuiteBuilderTest extends TestCase { 112 TestCase testCase = (TestCase) test; in testName()
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/ |
D | HasClassAnnotationTest.java | 20 import junit.framework.TestCase; 24 public class HasClassAnnotationTest extends TestCase { 37 Class<? extends TestCase> aClass, in classHasAnnotation() 46 static class SmokeTestExample extends TestCase { 52 static class NonSmokeTestExample extends TestCase {
|
D | HasAnnotationTest.java | 20 import junit.framework.TestCase; 28 public class HasAnnotationTest extends TestCase { 44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) in hasExampleAnnotation() 57 static class ClassWithAnnotation extends TestCase { 67 static class ClassWithoutAnnotation extends TestCase {
|
D | HasMethodAnnotationTest.java | 20 import junit.framework.TestCase; 26 public class HasMethodAnnotationTest extends TestCase { 38 private boolean methodHasAnnotation(Class<? extends TestCase> aClass, in methodHasAnnotation() 47 static class AnnotatedMethodExample extends TestCase {
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 26 import junit.framework.TestCase; 47 private List<TestCase> mTestCases; 60 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 73 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); in setTest() 101 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() 117 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() 120 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod() 137 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod() 170 public List<TestCase> getTestCases() { in getTestCases() 194 for (TestCase testCase : mTestCases) { in runTest()
|
D | TestCaseUtil.java | 22 import junit.framework.TestCase; 69 if (test instanceof TestCase && in getTests() 70 ((TestCase)test).getName() == null) { in getTests() 125 if (test instanceof TestCase) { in getTestName() 126 TestCase testCase = (TestCase) test; in getTestName() 164 } else if (TestCase.class.isAssignableFrom(test.getClass())) { in createTestSuite()
|
D | InstrumentationCoreTestRunner.java | 26 import junit.framework.TestCase; 112 if (test instanceof TestCase) { in getAndroidTestRunner() 113 cleanup((TestCase)test); in getAndroidTestRunner() 164 private void cleanup(TestCase test) { in getAndroidTestRunner() 167 while (clazz != TestCase.class) { in getAndroidTestRunner()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | TestCaseCollector.java | 19 import junit.framework.TestCase; 34 private List<TestCase> mTestCases; 39 mTestCases = new ArrayList<TestCase>(); in TestCaseCollector() 101 public List<TestCase> getTestCases() { in getTestCases() 110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod()
|
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
D | SmokeTestRunner.java | 25 import junit.framework.TestCase; 50 final TestCase setupTest = new ProcessErrorsTest() { in getAllTests() 59 final TestCase postBootTest = new ProcessErrorsTest() { in getAllTests() 69 final TestCase appTest = new ProcessErrorsTest() { in getAllTests() 88 final TestCase asyncErrorTest = new ProcessErrorsTest() { in getAllTests()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardTestUtilsTests.java | 25 import junit.framework.TestCase; 50 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtPropertyNodeVerification() 71 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtContentValueVerification() 94 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtLineVerification()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | LogTest.java | 20 import junit.framework.TestCase; 29 public class LogTest extends TestCase { 135 public static class PerformanceTest extends TestCase implements PerformanceTestCase {
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/constructor/ |
D | PublicConstructorTest.java | 19 import junit.framework.TestCase; 24 public class PublicConstructorTest extends TestCase {
|
D | ProtectedConstructorTest.java | 19 import junit.framework.TestCase; 24 public class ProtectedConstructorTest extends TestCase {
|