Searched refs:TestCase (Results 26 - 50 of 179) sorted by relevance

12345678

/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestMethod.java19 import junit.framework.TestCase;
27 * Represents a test to be run. Can be constructed without instantiating the TestCase or even
34 private final Class<? extends TestCase> enclosingClass;
36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) {
40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) {
46 public TestMethod(TestCase testCase) {
67 public Class<? extends TestCase> getEnclosingClass() {
71 public TestCase createTest()
77 private TestCase instantiateTest(Class testCaseClass, String testName)
87 TestCase tes
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DLinkSocketTest.java21 import junit.framework.TestCase;
26 public class LinkSocketTest extends TestCase {
H A DWebAddressTest.java21 import junit.framework.TestCase;
23 public class WebAddressTest extends TestCase {
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DAsyncChannelTest.java23 import junit.framework.TestCase;
28 public class AsyncChannelTest extends TestCase {
H A DFastXmlSerializerTest.java19 import junit.framework.TestCase;
28 public class FastXmlSerializerTest extends TestCase {
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DThreadBitmapTest.java19 import junit.framework.TestCase;
23 public class ThreadBitmapTest extends TestCase {
H A DPathTest.java20 import junit.framework.TestCase;
23 public class PathTest extends TestCase {
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DSmokeTestSuiteBuilderTest.java19 import junit.framework.TestCase;
24 public class SmokeTestSuiteBuilderTest extends TestCase {
H A DTestGroupingTest.java21 import junit.framework.TestCase;
26 public class TestGroupingTest extends TestCase {
H A DAssignableFromTest.java19 import junit.framework.TestCase;
23 public class AssignableFromTest extends TestCase {
52 private TestMethod testMethodFor(Class<? extends TestCase> aClass)
58 private class Animal extends TestCase {
76 private class Pencil extends TestCase implements WritingInstrument {
81 private class Pen extends TestCase implements WritingInstrument {
H A DListTestCaseNames.java20 import junit.framework.TestCase;
33 if (test instanceof TestCase) {
34 testCaseNames.add(((TestCase) test).getName());
43 * Returns a list of test class and method names for each TestCase in suite.
49 if (test instanceof TestCase) {
51 String testName = ((TestCase) test).getName();
/frameworks/base/tests/CoreTests/android/core/
H A DMiscRegressionTest.java21 import junit.framework.TestCase;
23 public class MiscRegressionTest extends TestCase {
H A DJniLibTest.java21 import junit.framework.TestCase;
25 public class JniLibTest extends TestCase {
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DLineVerifierElem.java23 import junit.framework.TestCase;
58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found");
65 TestCase.fail("Multiple \"END:VCARD\" line found");
74 TestCase.fail("Multiple VERSION line + found");
82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line);
84 TestCase.fail("Property other than END came after END property: " + line);
91 TestCase.fail("Unexpected line: " + line);
102 TestCase.fail("Expected line(s) not found:" + buffer.toString());
H A DExportTestProvider.java32 import junit.framework.TestCase;
100 TestCase.assertTrue(uri != null);
101 TestCase.assertTrue(ContentResolver.SCHEME_CONTENT.equals(uri.getScheme()));
103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority));
104 TestCase.assertTrue((Data.CONTACT_ID + "=?").equals(selection));
105 TestCase.assertEquals(1, selectionArgs.length);
107 TestCase.assertTrue(id >= 0);
108 TestCase.assertTrue(id < mContactEntryList.size());
116 TestCase.assertTrue(VCardVerifier.CONTACTS_TEST_CONTENT_URI.equals(uri));
118 TestCase
[all...]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
H A DHasAnnotationTest.java20 import junit.framework.TestCase;
28 public class HasAnnotationTest extends TestCase {
44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName)
57 static class ClassWithAnnotation extends TestCase {
67 static class ClassWithoutAnnotation extends TestCase {
/frameworks/base/test-runner/tests/src/android/test/
H A DAndroidTestRunnerTest.java24 import junit.framework.TestCase;
37 public class AndroidTestRunnerTest extends TestCase {
53 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
63 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
107 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
108 for (TestCase testCase : testCases) {
123 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
124 for (TestCase testCase : testCases) {
142 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
144 for (TestCase testCas
[all...]
H A DTestCaseUtilTest.java20 import junit.framework.TestCase;
25 public class TestCaseUtilTest extends TestCase {
38 TestCase testCase = new OneTestTestCaseWithSuite();
65 public static class OneTestTestCase extends TestCase {
70 public static class OneTestTestCaseWithSuite extends TestCase {
72 TestCase testCase = new OneTestTestCase();
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLayoutTest.java24 import junit.framework.TestCase;
27 public class TextLayoutTest extends TestCase {
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DDateFormatTest.java21 import junit.framework.TestCase;
23 public class DateFormatTest extends TestCase {
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DDebugTest.java22 import junit.framework.TestCase;
25 public class DebugTest extends TestCase {
/frameworks/base/tools/layoutlib/bridge/tests/src/android/graphics/
H A DMatrix_DelegateTest.java19 import junit.framework.TestCase;
24 public class Matrix_DelegateTest extends TestCase {
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
H A DSmokeTestRunner.java25 import junit.framework.TestCase;
50 final TestCase setupTest = new ProcessErrorsTest() {
59 final TestCase postBootTest = new ProcessErrorsTest() {
69 final TestCase appTest = new ProcessErrorsTest() {
88 final TestCase asyncErrorTest = new ProcessErrorsTest() {
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DTestCaseCollector.java19 import junit.framework.TestCase;
34 private List<TestCase> mTestCases;
39 mTestCases = new ArrayList<TestCase>();
99 * @return a list of {@link TestCase}
101 public List<TestCase> getTestCases() {
110 TestCase testCase = (TestCase) clazz.newInstance();
/frameworks/base/core/tests/coretests/src/android/os/
H A DSystemPropertiesTest.java20 import junit.framework.TestCase;
25 public class SystemPropertiesTest extends TestCase {

Completed in 452 milliseconds

12345678