Interface and Description |
---|
com.google.common.truth.CustomSubjectBuilderFactory
When you switch your
Subject implementations from accepting a FailureStrategy to accepting a FailureMetadata , you'll switch their CustomSubjectBuilder to start using FailureMetadata , too, and so you'll switch to
creating it with CustomSubjectBuilder.Factory instead of CustomSubjectBuilderFactory . |
Class and Description |
---|
com.google.common.truth.SubjectFactory
When you switch your
Subject implementations from accepting a FailureStrategy to accepting a FailureMetadata , you'll switch their factories to
Subject.Factory instead of SubjectFactory . |
Field and Description |
---|
com.google.common.truth.Subject.failureStrategy
If you are calling
metadata.fail* directly, instead call Subject.failWithRawMessage(java.lang.String, java.lang.Object...) , Subject.failWithRawMessageAndCause(java.lang.String, java.lang.Throwable) , or Subject.failComparing(java.lang.String, java.lang.CharSequence, java.lang.CharSequence) . If
you are passing metadata to a Subject constructor, instead call Subject.check() .that(...) or check().about(...).that(...) . (You might need to
create the SubjectFactory that is the argument to about .) |
com.google.common.truth.Truth.THROW_ASSERTION_ERROR
If you are passing this to a
Subject constructor, instead call Truth.assertAbout(SubjectFactory) .that(...) , passing its associated SubjectFactory (which you might need to create). If you are calling fail on this
object directly, instead use Truth.assert_() .fail() , or throw new
AssertionError() directly. |
Constructor and Description |
---|
com.google.common.truth.ComparableSubject(FailureStrategy, T)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
com.google.common.truth.CustomSubjectBuilder(FailureStrategy)
When you switch from
CustomSubjectBuilderFactory to CustomSubjectBuilder.Factory , you'll switch to using the other constructor, which accepts
a FailureMetadata instead of a FailureStrategy . |
com.google.common.truth.DefaultSubject(FailureStrategy, Object)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
com.google.common.truth.IntegerSubject(FailureStrategy, Integer)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
com.google.common.truth.IterableSubject(FailureStrategy, Iterable<?>)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
com.google.common.truth.LongSubject(FailureStrategy, Long)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
com.google.common.truth.StringSubject(FailureStrategy, String)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
com.google.common.truth.Subject(FailureStrategy, T)
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
Copyright © 2017. All rights reserved.