Package com.google.common.truth
Interface ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A>
-
- Enclosing class:
- ExpectFailure
public static interface ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A>
A "functional interface" forexpectFailureAbout()
to invoke and capture failures.Java 8+ users should pass a lambda to
.expectFailureAbout()
rather than directly implement this interface. Java 7+ users can define an@Rule ExpectFailure
instance instead, however if you prefer the.expectFailureAbout()
pattern you can use this interface to pass in an anonymous class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
invokeAssertion(SimpleSubjectBuilder<S,A> whenTesting)
-
-
-
Method Detail
-
invokeAssertion
void invokeAssertion(SimpleSubjectBuilder<S,A> whenTesting)
-
-