Home
last modified time | relevance | path

Searched refs:expectFailure (Results 1 – 8 of 8) sorted by relevance

/external/mockito/src/test/java/org/mockitoutil/
DSafeJUnitRule.java54 …public void expectFailure(final Class<? extends Throwable> expected, final String expectedMessage)…
55 this.expectFailure(new FailureAssert() {
65 public void expectFailure(final Class<? extends Throwable> expected) {
66 this.expectFailure(new FailureAssert() {
80 public void expectFailure(FailureAssert failureAssert) {
DSafeJUnitRuleTest.java45 rule.expectFailure(AssertionError.class, "x"); in rule_threw_exception()
57 rule.expectFailure(AssertionError.class, "x"); in expected_exception_but_no_exception()
76 rule.expectFailure(AssertionError.class, "FOO"); in expected_exception_message_did_not_match()
93 rule.expectFailure(AssertionError.class, "x"); in expected_exception_type_did_not_match()
110 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in expected_exception_assert_did_not_match()
/external/mockito/src/test/java/org/mockitousage/junitrule/
DStrictJUnitRuleTest.java52 rule.expectFailure(UnnecessaryStubbingException.class); in fails_when_unused_stubbings()
61 rule.expectFailure(AssertionError.class, "x"); in test_failure_trumps_unused_stubbings()
74 rule.expectFailure(PotentialStubbingProblem.class); in why_do_return_syntax_is_useful()
83 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in fails_fast_when_stubbing_invoked_with_different_argument()
137 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in unused_stubs_with_multiple_mocks()
163 rule.expectFailure(UnfinishedVerificationException.class); in rule_validates_mockito_usage()
DStubbingWarningsJUnitRuleTest.java30 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in no_unused_stubs_reported_on_failure()
45 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in stubbing_arg_mismatch_on_failure()
64 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in no_stubbing_arg_mismatch_when_no_mismatch_on_fail()
94 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in multiple_stubbing_arg_mismatch_on_failure()
122 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in reports_only_mismatching_stubs()
146 rule.expectFailure(new SafeJUnitRule.FailureAssert() { in no_mismatch_when_stub_was_used()
/external/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp23 static void expectFailure(StringRef JSONDatabase, StringRef Explanation) { in expectFailure() function
31 expectFailure("", "Empty database"); in TEST()
32 expectFailure("{", "Invalid JSON"); in TEST()
33 expectFailure("[[]]", "Array instead of object"); in TEST()
34 expectFailure("[{\"a\":[]}]", "Array instead of value"); in TEST()
35 expectFailure("[{\"a\":\"b\"}]", "Unknown key"); in TEST()
36 expectFailure("[{[]:\"\"}]", "Incorrectly typed entry"); in TEST()
37 expectFailure("[{}]", "Empty entry"); in TEST()
38 expectFailure("[{\"directory\":\"\",\"command\":\"\"}]", "Missing file"); in TEST()
39 expectFailure("[{\"directory\":\"\",\"file\":\"\"}]", "Missing command or arguments"); in TEST()
[all …]
/external/mockito/src/test/java/org/mockito/internal/junit/
DJUnitRuleTest.java31 rule.expectFailure(RuntimeException.class, "foo"); in rethrows_exception()
38 rule.expectFailure(UnfinishedStubbingException.class); in detects_invalid_mockito_usage_on_success()
48 rule.expectFailure(RuntimeException.class, "foo"); in does_not_check_invalid_mockito_usage_on_failure()
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubjectTest.java81 AssertionError expected = expectFailure(whenTesting -> whenTesting.that(spanned).hasNoSpans()); in hasNoSpans_failure()
112 expectFailure(whenTesting -> whenTesting.that(null).hasItalicSpanBetween(0, 5)); in italicSpan_null()
177 expectFailure( in boldItalicSpan_onlyItalic()
292 expectFailure( in alignmentSpan_wrongAlignment()
352 expectFailure( in foregroundColorSpan_wrongColor()
407 expectFailure( in backgroundColorSpan_wrongColor()
463 expectFailure( in typefaceSpan_wrongFamily()
516 expectFailure( in absoluteSizeSpan_wrongSize()
573 expectFailure( in relativeSizeSpan_wrongSize()
629 expectFailure( in rubySpan_wrongText()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp27 static void expectFailure(StringRef JSONDatabase, StringRef Explanation) { in expectFailure() function
36 expectFailure("", "Empty database"); in TEST()
37 expectFailure("{", "Invalid JSON"); in TEST()
38 expectFailure("[[]]", "Array instead of object"); in TEST()
39 expectFailure("[{\"a\":[]}]", "Array instead of value"); in TEST()
40 expectFailure("[{\"a\":\"b\"}]", "Unknown key"); in TEST()
41 expectFailure("[{[]:\"\"}]", "Incorrectly typed entry"); in TEST()
42 expectFailure("[{}]", "Empty entry"); in TEST()
43 expectFailure("[{\"directory\":\"\",\"command\":\"\"}]", "Missing file"); in TEST()
44 expectFailure("[{\"directory\":\"\",\"file\":\"\"}]", "Missing command or arguments"); in TEST()
[all …]