/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 22 import junit.framework.TestCase; 49 private final SortedSet<Class<? extends TestCase>> testCaseClasses; 51 static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME 54 static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME 59 TestGrouping(Comparator<Class<? extends TestCase>> comparator, ClassLoader classLoader) { in TestGrouping() 60 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); in TestGrouping() 70 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests() 78 private List<Method> getTestMethods(Class<? extends TestCase> testCaseClass) { in getTestMethods() 110 List<Class<? extends TestCase>> addedClasses = testCaseClassesInPackage(packageName); in addPackagesRecursive() 131 private List<Class<? extends TestCase>> testCaseClassesInPackage(String packageName) { in testCaseClassesInPackage() [all …]
|
D | TestMethod.java | 19 import junit.framework.TestCase; 38 private final Class<? extends TestCase> enclosingClass; 40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() 44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() 50 public TestMethod(TestCase testCase) { in TestMethod() 71 public Class<? extends TestCase> getEnclosingClass() { in getEnclosingClass() 75 public TestCase createTest() in createTest() 81 private TestCase instantiateTest(Class testCaseClass, String testName) in instantiateTest() 91 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest() 97 return ((Constructor<? extends TestCase>) constructor) in instantiateTest()
|
D | TestSuiteBuilder.java | 28 import junit.framework.TestCase; 49 private List<TestCase> testCases; 88 for (TestCase testCase : (List<TestCase>) TestCaseUtil.getTests(testSuite, true)) { in addTestSuite() 189 for (TestCase testCase : testCases) { in build() 235 public static class FailedToCreateTests extends TestCase {
|
/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 | 23 import junit.framework.TestCase; 36 public class AndroidTestRunnerTest extends TestCase { 52 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testLoadNoTestCases() 62 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testSetTestSuiteWithOneTestCase() 106 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testRunTestWithAndroidTestCaseInSuite() 107 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite() 122 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testRunTestWithAndroidTestCaseInNestedSuite() 123 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite() 141 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testSetTestClassWithTestSuiteProvider() 143 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider() [all …]
|
D | TestCaseUtilTest.java | 22 import junit.framework.TestCase; 27 public class TestCaseUtilTest extends TestCase { 48 TestCase testCase = new OneTestTestCaseWithSuite(); in testGetTests_ForTestCaseWithSuiteMethod() 77 public static class OneTestTestCase extends TestCase { 82 public static class OneTestTestCaseWithSuite extends TestCase { 84 TestCase testCase = new OneTestTestCase(); in suite()
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | topk_v2.mod.py | 18 TestCase = collections.namedtuple("TestCase", [ variable 24 TestCase( 32 TestCase( 40 TestCase( 48 TestCase( 56 TestCase( 64 TestCase(
|
D | slice.mod.py | 18 TestCase = collections.namedtuple("TestCase", [ variable 24 TestCase( 33 TestCase( 42 TestCase( 51 TestCase( 60 TestCase( 69 TestCase( 78 TestCase( 87 TestCase(
|
/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 | TestPredicatesTest.java | 20 import junit.framework.TestCase; 28 public class TestPredicatesTest 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 | 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()
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 24 import junit.framework.TestCase; 45 private List<TestCase> mTestCases; 57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 71 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); in setTest() 99 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() 115 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() 118 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod() 135 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod() 168 public List<TestCase> getTestCases() { in getTestCases() 192 for (TestCase testCase : mTestCases) { in runTest()
|
D | TestCaseUtil.java | 21 import junit.framework.TestCase; 58 if (test instanceof TestCase && in getTests() 59 ((TestCase)test).getName() == null) { in getTests() 114 if (test instanceof TestCase) { in getTestName() 115 TestCase testCase = (TestCase) test; in getTestName()
|
/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/base/test-base/src/junit/framework/ |
D | TestSuite.java | 62 if (test instanceof TestCase) in createTest() 63 ((TestCase) test).setName(name); in createTest() 94 return new TestCase("warning") { in warning() 161 public TestSuite(Class<? extends TestCase> theClass, String name) { 183 if (TestCase.class.isAssignableFrom(each)) 184 return new TestSuite(each.asSubclass(TestCase.class)); 193 public TestSuite(Class<? extends TestCase>[] classes, String name) { 208 public void addTestSuite(Class<? extends TestCase> testClass) {
|
/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/tests/ApkVerityTest/src/com/android/apkverity/ |
D | BaseInstallMultiple.java | 23 import junit.framework.TestCase; 92 TestCase.assertTrue(result, result.startsWith("Success")); in run() 125 TestCase.assertTrue(result, result.startsWith("Success")); in run() 135 TestCase.assertTrue(result, result.contains("Success")); in run() 137 TestCase.assertFalse(result, result.contains("Success")); in run()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | LogTest.java | 24 import junit.framework.TestCase; 28 public class LogTest extends TestCase { 134 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 {
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/smoke/ |
D | NonSmokeTest.java | 19 import junit.framework.TestCase; 21 public class NonSmokeTest extends TestCase {
|