Searched refs:newTestMethod (Results 1 – 4 of 4) sorted by relevance
147 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 …]
19 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()
38 public static Description newTestMethod(Annotation... annotations) { in newTestMethod() method in JUnitHelper39 return newTestMethod(TEST_METHOD_BEING_EXECUTED, annotations); in newTestMethod()42 public static Description newTestMethod(String methodName, Annotation... annotations) { in newTestMethod() method in JUnitHelper
220 rule.apply(statement, newTestMethod()).evaluate(); in runTestWithRule()224 private static Description newTestMethod() { in newTestMethod() method in ApplicationContextSingletonRuleTest