Home
last modified time | relevance | path

Searched refs:TestCase (Results 1 – 25 of 230) sorted by relevance

12345678910

/aosp14/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestGrouping.java22 import junit.framework.TestCase;
49 private final SortedSet<Class<? extends TestCase>> testCaseClasses;
70 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests()
139 List<Class<? extends TestCase>> testClasses = new ArrayList<Class<? extends TestCase>>(); in selectTestClasses()
142 testClasses.add((Class<? extends TestCase>) testClass); in selectTestClasses()
164 public int compare(Class<? extends TestCase> class1, in compare()
165 Class<? extends TestCase> class2) { in compare()
181 public int compare(Class<? extends TestCase> class1, in compare()
182 Class<? extends TestCase> class2) { in compare()
191 return TestCase.class.isAssignableFrom((Class<?>) aClass) in apply()
[all …]
H A DTestMethod.java19 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()
H A DTestSuiteBuilder.java28 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 {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/
H A DPackageManagerExtComponentEnabledTest.kt61 internal data class TestCase(
91 TestCase(
96 TestCase(
101 TestCase(
106 TestCase(
112 TestCase(
121 TestCase(
126 TestCase(
131 TestCase(
136 TestCase(
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DChooserActivityWorkProfileTest.java123 new TestCase( in tests()
138 new TestCase( in tests()
145 new TestCase( in tests()
152 new TestCase( in tests()
167 new TestCase( in tests()
174 new TestCase( in tests()
181 new TestCase( in tests()
188 new TestCase( in tests()
195 new TestCase( in tests()
202 new TestCase( in tests()
[all …]
H A DResolverActivityWorkProfileTest.java116 new TestCase( in tests()
123 new TestCase( in tests()
130 new TestCase( in tests()
137 new TestCase( in tests()
144 new TestCase( in tests()
151 new TestCase( in tests()
158 new TestCase( in tests()
165 new TestCase( in tests()
173 new TestCase( in tests()
180 new TestCase( in tests()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/
H A DWifiViewModelIconParameterizedTest.kt203 TestCase(
209 TestCase(
214 TestCase(
219 TestCase(
226 TestCase(
232 TestCase(
237 TestCase(
242 TestCase(
249 TestCase(
262 TestCase(
[all …]
/aosp14/frameworks/base/test-runner/tests/src/android/test/
H A DAndroidTestRunnerTest.java23 import junit.framework.TestCase;
36 public class AndroidTestRunnerTest extends TestCase {
107 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite()
123 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite()
143 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider()
155 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuite()
166 for (TestCase testCase : testCases) { in testRunSingleTestMethod()
230 public static class OneTestTestCase extends TestCase {
235 public static class TwoTestTestCase extends TestCase {
269 if (test instanceof TestCase) { in startTest()
[all …]
H A DTestCaseUtilTest.java22 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
H A DFloatingRotationButtonPositionCalculatorTest.kt30 internal class TestCase(
69 TestCase(
80 TestCase(
91 TestCase(
102 TestCase(
113 TestCase(
124 TestCase(
135 TestCase(
148 TestCase(
159 TestCase(
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/model/
H A DSignalIconModelParameterizedTest.kt31 internal class SignalIconModelParameterizedTest(private val testCase: TestCase) : SysuiTestCase() {
54 internal data class TestCase(
79 private fun testData(): Collection<TestCase> =
81 TestCase(
88 TestCase(
95 TestCase(
102 TestCase(
109 TestCase(
/aosp14/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DAssignableFromTest.java19 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 {
H A DTestPredicatesTest.java20 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 {
H A DListTestCaseNames.java20 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()
H A DUnitTestSuiteBuilderTest.java24 import junit.framework.TestCase;
32 public class UnitTestSuiteBuilderTest extends TestCase {
105 TestCase testCase = (TestCase) test; in testName()
/aosp14/frameworks/base/test-runner/src/android/test/
H A DAndroidTestRunner.java24 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()
H A DTestCaseUtil.java21 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()
/aosp14/frameworks/base/cmds/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>(); in TestCaseCollector()
101 public List<TestCase> getTestCases() { in getTestCases()
110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
H A DEllipseOverlapDetectorTest.kt31 class EllipseOverlapDetectorTest(val testCase: TestCase) : SysuiTestCase() {
51 data class TestCase( dataClass
62 fun data(): List<TestCase> =
119 ): List<EllipseOverlapDetectorTest.TestCase> {
122 EllipseOverlapDetectorTest.TestCase(x, y, minor, major, expected)
133 ): List<EllipseOverlapDetectorTest.TestCase> {
135 outerYs.map { y -> EllipseOverlapDetectorTest.TestCase(x, y, minor, major, expected) }
H A DNormalizedTouchDataTest.kt14 class NormalizedTouchDataTest(val testCase: TestCase) : SysuiTestCase() {
24 data class TestCase(val x: Int, val y: Int, val expected: Boolean) dataClass
29 fun data(): List<TestCase> =
73 ): List<NormalizedTouchDataTest.TestCase> {
74 return xs.flatMap { x -> ys.map { y -> NormalizedTouchDataTest.TestCase(x, y, expected) } }
87 ): List<NormalizedTouchDataTest.TestCase> {
H A DBoundingBoxOverlapDetectorTest.kt30 class BoundingBoxOverlapDetectorTest(val testCase: TestCase) : SysuiTestCase() {
41 data class TestCase(val x: Int, val y: Int, val expected: Boolean) dataClass
46 fun data(): List<TestCase> =
93 ): List<BoundingBoxOverlapDetectorTest.TestCase> {
95 ys.map { y -> BoundingBoxOverlapDetectorTest.TestCase(x, y, expected) }
109 ): List<BoundingBoxOverlapDetectorTest.TestCase> {
/aosp14/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
H A DSmokeTestRunner.java25 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()
/aosp14/frameworks/base/test-base/src/junit/framework/
H A DTestSuite.java62 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) {
/aosp14/frameworks/base/tests/ApkVerityTest/src/com/android/apkverity/
H A DBaseInstallMultiple.java23 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()
/aosp14/frameworks/base/tests/BinaryTransparencyHostTest/src/android/transparency/test/
H A DBaseInstallMultiple.java23 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()

12345678910