Searched refs:ExpectFailure (Results 1 – 6 of 6) sorted by relevance
86 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()97 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()116 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()127 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()144 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()155 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()172 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()183 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()241 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()253 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()[all …]
73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS)) { in testMissingClass()327 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testFieldValueChanged()413 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClass()436 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassSwitchToAbstract()465 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassWithCtorSwitchToAbstract_PreviousApi()526 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingAbstractFromAClass()553 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingAbstractToAClass()565 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClass()594 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClassWithCtor_PreviousApi()609 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingStaticToInnerClass()[all …]
90 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testExpectFailure_DetectsNoFailures()104 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testExpectFailure_DetectsTooManyFailures()
73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testIgnoreExpectedFailures_TestStillFails()
198 protected static class ExpectFailure extends FailureGathererObserver { class in ApiPresenceCheckerTest202 ExpectFailure(FailureType expectedType) { in ExpectFailure() method in ApiPresenceCheckerTest.ExpectFailure
22 import static com.google.common.truth.ExpectFailure.expectFailureAbout;31 import com.google.common.truth.ExpectFailure;78 (ExpectFailure.SimpleSubjectBuilderCallback<EventLogsSubject<CustomEvent>, in eventOccurredWithin_eventDidNotOccur_fails()84 … ExpectFailure.SimpleSubjectBuilderCallback<EventLogsSubject<E>, EventLogs<E>> callback) { in expectFailure()