Package com.google.common.truth
Interface Subject.Factory<SubjectT extends Subject,ActualT>
-
- Enclosing class:
- Subject
public static interface Subject.Factory<SubjectT extends Subject,ActualT>
In a fluent assertion chain, the argument to the common overload ofabout
, the method that specifies what kind ofSubject
to create.For more information about the fluent chain, see this FAQ entry.
For people extending Truth
When you write a custom subject, see our doc on extensions. It explains where
Subject.Factory
fits into the process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubjectT
createSubject(FailureMetadata metadata, @Nullable ActualT actual)
Creates a newSubject
.
-
-
-
Method Detail
-
createSubject
SubjectT createSubject(FailureMetadata metadata, @Nullable ActualT actual)
Creates a newSubject
.
-
-