Interface and Description |
---|
com.google.common.truth.DelegatedVerbFactory
This class is being renamed to
CustomSubjectBuilderFactory . |
com.google.common.truth.ExpectFailure.AssertionCallback
Implement
ExpectFailure.StandardSubjectBuilderCallback , which is identical except that
its parameter is a StandardSubjectBuilder , the new name of TestVerb . |
com.google.common.truth.ExpectFailure.DelegatedAssertionCallback
Implement
ExpectFailure.SimpleSubjectBuilderCallback , which is identical except that its
parameter is of SimpleSubjectBuilder , the new name of AbstractVerb.DelegatedVerb . |
Class and Description |
---|
com.google.common.truth.AbstractDelegatedVerb
This class is being renamed to
CustomSubjectBuilder . |
com.google.common.truth.AbstractVerb
Instead of subclassing
AbstractVerb , subclass CustomSubjectBuilder .
CustomSubjectBuilder is the new way of defining custom that() methods, and it
doesn't require you to write boilerplate to store and propagate the failure message. |
com.google.common.truth.AbstractVerb.DelegatedVerb
This class is being renamed to
SimpleSubjectBuilder . |
com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
To prepend a message, use
StandardSubjectBuilder.withMessage(java.lang.String) . If you are
using MessagePrependingFailureStrategy to store and propagate the failure message
as part of subclassing AbstractVerb or TestVerb , you will no longer need it
when you migrate off those classes, as described in their deprecation text. |
com.google.common.truth.Expect.ExpectationGatherer
To provide your own failure handling, use
StandardSubjectBuilder.forCustomFailureStrategy(new AbstractFailureStrategy() { ... })
instead of Expect.create(new ExpectationGatherer() { ... }) . Or, if you're testing
that assertions on a custom Subject fail (using ExpectationGatherer to
capture the failures), use ExpectFailure . |
com.google.common.truth.FailureContext
If you are using this class to store and propagate the failure message as part of
subclassing
AbstractVerb or TestVerb , you will no longer need it when you
migrate away from those classes, as described in their deprecation text. |
com.google.common.truth.TestVerb
Instead of subclassing
TestVerb , subclass CustomSubjectBuilder .
CustomSubjectBuilder is the new way of defining custom that() methods, and it
doesn't require you to write boilerplate to store and propagate the failure message. |
Copyright © 2017. All rights reserved.