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 classATestRulethat 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 StandardSubjectBuilderTruth.assert_()Begins a call chain with the fluent Truth API.static StandardSubjectBuilderTruth.assertWithMessage(@Nullable String message) Begins an assertion that, if it fails, will prepend the given message to the failure message.static StandardSubjectBuilderTruth.assertWithMessage(String format, @Nullable Object... args) Begins an assertion that, if it fails, will prepend the given message to the failure message.static StandardSubjectBuilderTruthJUnit.assume()Begins a call chain with the fluent Truth API.protected final StandardSubjectBuilderReturns a builder for creating a derived subject.static StandardSubjectBuilderStandardSubjectBuilder.forCustomFailureStrategy(FailureStrategy strategy) Returns a new instance that invokes the givenFailureStrategywhen a check fails.protected final StandardSubjectBuilderSubject.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 StandardSubjectBuilderStandardSubjectBuilder.withMessage(@Nullable String message) Returns a new instance that will output the given message before the main failure message.final StandardSubjectBuilderStandardSubjectBuilder.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 TypeMethodDescriptionvoidExpectFailure.StandardSubjectBuilderCallback.invokeAssertion(StandardSubjectBuilder whenTesting)