Uses of Class
com.google.common.truth.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).Fields in com.google.common.truth declared as StandardSubjectBuilderModifier and TypeFieldDescriptionprivate static final StandardSubjectBuilderTruth.ASSERTprivate static final StandardSubjectBuilderTruthJUnit.ASSUMEMethods in com.google.common.truth that return StandardSubjectBuilderModifier and TypeMethodDescriptionstatic StandardSubjectBuilderTruth.assert_()Begins a call chain with the fluent Truth API.static StandardSubjectBuilderTruth.assertWithMessage(String messageToPrepend) Begins an assertion that, if it fails, will prepend the given message to the failure message.static StandardSubjectBuilderTruth.assertWithMessage(String format, Object... args) Begins an assertion that, if it fails, will prepend the given message to the failure message.static final StandardSubjectBuilderTruthJUnit.assume()Begins a call chain with the fluent Truth API.(package private) final StandardSubjectBuilderSubject.check()Deprecated.Use the other overload, which requires you to supply more information to include in any failure messages.protected final StandardSubjectBuilderReturns a builder for creating a derived subject.(package private) final StandardSubjectBuilderSubject.checkNoNeedToDisplayBothValues(String format, Object... args) private StandardSubjectBuilderSubject.doCheck(FailureMetadata.OldAndNewValuesAreSimilar valuesAreSimilar, String format, Object[] args) static StandardSubjectBuilderStandardSubjectBuilder.forCustomFailureStrategy(FailureStrategy failureStrategy) 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()Returns a test verb that expects the chained assertion to fail, and makes the failure available viaExpectFailure.getFailure().final StandardSubjectBuilderStandardSubjectBuilder.withMessage(String messageToPrepend) Returns a new instance that will output the given message before the main failure message.final StandardSubjectBuilderStandardSubjectBuilder.withMessage(String format, 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)