Package com.google.common.truth
Class CustomSubjectBuilder
java.lang.Object
com.google.common.truth.CustomSubjectBuilder
In a fluent assertion chain, exposes one or more "custom"
that
methods, which accept a
value under test and return a Subject
.
(Note that the "custom" that
methods are not defined on CustomSubjectBuilder
itself, only on its subtypes, which are the types users actually interact with.)
For more information about the methods in this class, see this FAQ entry.
For people extending Truth
When you write a custom subject, see our doc on
extensions. It explains the cases in which CustomSubjectBuilder
is necessary.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CustomSubjectBuilder
(FailureMetadata metadata) Constructor for use by subclasses. -
Method Summary
-
Field Details
-
metadata
-
-
Constructor Details
-
CustomSubjectBuilder
Constructor for use by subclasses.
-
-
Method Details
-
metadata
-