Approval.ApprovalBuilder¶
- public static final class ApprovalBuilder<T>¶
A builder class for approvals. This is used to conveniently build new approvals for a specific type with custom reporters, converters, etc.
Parameters: - <T> – the type that will be approved by the the resulting approval object
Methods¶
build¶
withConveter¶
- public ApprovalBuilder<T> withConveter(Converter<T> converterToBeUsed)¶
Set the converter that will be used when building new approvals with this builder.
Parameters: - converterToBeUsed – the converter that will be used from the approval that will be built
Returns: the same builder for chaining
See also: Converter
withReporter¶
- public ApprovalBuilder<T> withReporter(Reporter reporterToBeUsed)¶
Set the reporter that will be used when building new approvals with this builder.
Parameters: - reporterToBeUsed – the reporter that will be used from the approval that will be built
Returns: the same builder for chaninig
See also: Reporter