Uses of Class
com.google.common.truth.StandardSubjectBuilder
Packages that use StandardSubjectBuilder
-
Uses of StandardSubjectBuilder in com.google.common.truth
Subclasses of StandardSubjectBuilder in com.google.common.truthModifier and TypeClassDescriptionfinal class
ATestRule
that batches up all failures encountered during a test, and reports them all together at the end (similar toErrorCollector
).Methods in com.google.common.truth that return StandardSubjectBuilderModifier and TypeMethodDescriptionstatic StandardSubjectBuilder
Truth.assert_()
Begins a call chain with the fluent Truth API.static StandardSubjectBuilder
Truth.assertWithMessage
(@Nullable String message) 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 final StandardSubjectBuilder
Returns a builder for creating a derived subject.static StandardSubjectBuilder
StandardSubjectBuilder.forCustomFailureStrategy
(FailureStrategy strategy) Returns a new instance that invokes the givenFailureStrategy
when a check fails.protected final StandardSubjectBuilder
Subject.ignoreCheck()
Begins a new call chain that ignores any failures.ExpectFailure.whenTesting()
Legacy method that returns a subject builder that expects the chained assertion to fail, and makes the failure available viaExpectFailure.getFailure()
.final StandardSubjectBuilder
StandardSubjectBuilder.withMessage
(@Nullable String message) Returns a new instance that will output the given message before the main failure message.final StandardSubjectBuilder
StandardSubjectBuilder.withMessage
(String format, @Nullable Object... args) Returns a new instance that will output the given message before the main failure message.Methods in com.google.common.truth with parameters of type StandardSubjectBuilderModifier and TypeMethodDescriptionvoid
ExpectFailure.StandardSubjectBuilderCallback.invokeAssertion
(StandardSubjectBuilder whenTesting)