static StandardSubjectBuilder |
Truth.assert_() |
Begins a call chain with the fluent Truth API.
|
static StandardSubjectBuilder |
Truth.assertWithMessage(@Nullable String messageToPrepend) |
Begins an assertion that, if it fails, will prepend the given message to the failure message.
|
static StandardSubjectBuilder |
Truth.assertWithMessage(String format,
@Nullable Object... args) |
Begins an assertion that, if it fails, will prepend the given message to the failure message.
|
static StandardSubjectBuilder |
TruthJUnit.assume() |
Begins a call chain with the fluent Truth API.
|
protected StandardSubjectBuilder |
Subject.check(String format,
@Nullable Object... args) |
Returns a builder for creating a derived subject.
|
static StandardSubjectBuilder |
StandardSubjectBuilder.forCustomFailureStrategy(FailureStrategy failureStrategy) |
Returns a new instance that invokes the given FailureStrategy when a check fails.
|
protected StandardSubjectBuilder |
Subject.ignoreCheck() |
Begins a new call chain that ignores any failures.
|
StandardSubjectBuilder |
ExpectFailure.whenTesting() |
Legacy method that returns a subject builder that expects the chained assertion to fail, and
makes the failure available via ExpectFailure.getFailure() .
|
StandardSubjectBuilder |
StandardSubjectBuilder.withMessage(@Nullable String messageToPrepend) |
Returns a new instance that will output the given message before the main failure message.
|
StandardSubjectBuilder |
StandardSubjectBuilder.withMessage(String format,
@Nullable Object... args) |
Returns a new instance that will output the given message before the main failure message.
|