Home
last modified time | relevance | path

Searched refs:newTestMethod (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAbstractSdkLevelSupportedRuleTest.java147 Description testMethod = newTestMethod(); in testPassesWhenDeviceLevelIsInRange()
164 Description testMethod = newTestMethod(); in testSkipsWhenDeviceLevelIsOutsideRange()
192 assertGetRequiredRange(expectedRequiredRange, rule, newTestMethod()); in assertGetRequiredRangeForUnannotatedTest()
300 assertGetRequiredRange(expectedRequiredRange, rule, newTestMethod(annotations)); in assertGetRequiredRangeForAnnotatedTest()
310 newTestMethod(ClassThatRequiresAtLeastR.class)); in testGetRequiredRange_annotatedTestClass_unannotatedTest()
314 newTestMethod(ClassThatRequiresAtLeastS.class)); in testGetRequiredRange_annotatedTestClass_unannotatedTest()
318 newTestMethod(ClassThatRequiresAtLeastS2.class)); in testGetRequiredRange_annotatedTestClass_unannotatedTest()
322 newTestMethod(ClassThatRequiresAtLeastT.class)); in testGetRequiredRange_annotatedTestClass_unannotatedTest()
326 newTestMethod(ClassThatRequiresAtLeastU.class)); in testGetRequiredRange_annotatedTestClass_unannotatedTest()
330 newTestMethod(ClassThatRequiresLessThanT.class)); in testGetRequiredRange_annotatedTestClass_unannotatedTest()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DPermissionsCheckerRuleTest.java19 import static android.car.test.JUnitHelper.newTestMethod;
64 Description testMethod = newTestMethod(); in testNoAnnotation()
75 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_onePermission()
86 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_onePermissionTestThrows()
100 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To", "Kill")); in testEnsureHasPermission_multiplePermissions()
111 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_permissionsAdoptedBefore()
DJUnitHelper.java38 public static Description newTestMethod(Annotation... annotations) { in newTestMethod() method in JUnitHelper
39 return newTestMethod(TEST_METHOD_BEING_EXECUTED, annotations); in newTestMethod()
42 public static Description newTestMethod(String methodName, Annotation... annotations) { in newTestMethod() method in JUnitHelper
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/common/
DApplicationContextSingletonRuleTest.java220 rule.apply(statement, newTestMethod()).evaluate(); in runTestWithRule()
224 private static Description newTestMethod() { in newTestMethod() method in ApplicationContextSingletonRuleTest