Package com.google.common.truth
Class CustomSubjectBuilder
- java.lang.Object
-
- com.google.common.truth.CustomSubjectBuilder
-
public abstract class CustomSubjectBuilder extends java.lang.ObjectIn a fluent assertion chain, exposes one or more "custom"thatmethods, which accept a value under test and return aSubject.(Note that the "custom"
thatmethods are not defined onCustomSubjectBuilderitself, 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
CustomSubjectBuilderis necessary.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder>
-
Field Summary
Fields Modifier and Type Field Description private FailureMetadatametadata
-
Constructor Summary
Constructors Modifier Constructor Description protectedCustomSubjectBuilder(FailureMetadata metadata)Constructor for use by subclasses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FailureMetadatametadata()
-
-
-
Field Detail
-
metadata
private final FailureMetadata metadata
-
-
Constructor Detail
-
CustomSubjectBuilder
protected CustomSubjectBuilder(FailureMetadata metadata)
Constructor for use by subclasses.
-
-
Method Detail
-
metadata
protected final FailureMetadata metadata()
-
-