public abstract class CustomSubjectBuilder extends Object
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.
When you write a custom subject, see our doc on
extensions. It explains the cases in which CustomSubjectBuilder
is necessary.
Modifier and Type | Class and Description |
---|---|
static interface |
CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder>
|
Modifier | Constructor and Description |
---|---|
protected |
CustomSubjectBuilder(FailureMetadata metadata)
Constructor for use by subclasses.
|
protected CustomSubjectBuilder(FailureMetadata metadata)
protected final FailureMetadata metadata()
Copyright © 2018. All rights reserved.