public static final class AssertionResult.Builder
extends java.lang.Object
AssertionResult
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AssertionResult |
build()
Builds the configured instance.
|
AssertionResult.Builder |
data(java.lang.String data)
Sets the value of
AssertionResult.getData() |
AssertionResult.Builder |
failed(java.lang.Boolean failed)
Sets the value of
AssertionResult.getFailed() |
public AssertionResult.Builder data(java.lang.String data)
AssertionResult.getData()
data
- The result of an assertion. This parameter is required.this
public AssertionResult.Builder failed(java.lang.Boolean failed)
AssertionResult.getFailed()
failed
- Whether or not the assertion failed.this
public AssertionResult build()
AssertionResult
java.lang.NullPointerException
- if any required attribute was not provided