From cda816aba610f274d2e73b8ebc3613d6b1066c87 Mon Sep 17 00:00:00 2001 From: Chris Povirk Date: Fri, 12 Jul 2024 17:50:53 -0400 Subject: [PATCH] Release 1.4.4 javadoc pushed to gh-pages. --- api/1.4.4/allclasses-index.html | 410 ++ api/1.4.4/allpackages-index.html | 75 + .../common/truth/BigDecimalSubject.html | 263 ++ .../google/common/truth/BooleanSubject.html | 186 + .../com/google/common/truth/ClassSubject.html | 175 + .../common/truth/ComparableSubject.html | 307 ++ .../truth/Correspondence.BinaryPredicate.html | 161 + .../truth/Correspondence.DiffFormatter.html | 160 + .../google/common/truth/Correspondence.html | 626 +++ .../truth/CustomSubjectBuilder.Factory.html | 160 + .../common/truth/CustomSubjectBuilder.html | 204 + ...oubleSubject.TolerantDoubleComparison.html | 213 + .../google/common/truth/DoubleSubject.html | 488 ++ api/1.4.4/com/google/common/truth/Expect.html | 233 + ...tFailure.SimpleSubjectBuilderCallback.html | 154 + ...ailure.StandardSubjectBuilderCallback.html | 154 + .../google/common/truth/ExpectFailure.html | 319 ++ api/1.4.4/com/google/common/truth/Fact.html | 224 + .../google/common/truth/FailureMetadata.html | 133 + .../google/common/truth/FailureStrategy.html | 192 + .../FloatSubject.TolerantFloatComparison.html | 213 + .../com/google/common/truth/FloatSubject.html | 486 ++ .../common/truth/GuavaOptionalSubject.html | 209 + .../google/common/truth/IntStreamSubject.html | 543 +++ ...egerSubject.TolerantIntegerComparison.html | 217 + .../google/common/truth/IntegerSubject.html | 285 ++ .../IterableSubject.UsingCorrespondence.html | 598 +++ .../google/common/truth/IterableSubject.html | 816 ++++ .../common/truth/LongStreamSubject.html | 543 +++ .../LongSubject.TolerantLongComparison.html | 217 + .../com/google/common/truth/LongSubject.html | 349 ++ .../truth/MapSubject.UsingCorrespondence.html | 272 ++ .../com/google/common/truth/MapSubject.html | 509 ++ .../MultimapSubject.UsingCorrespondence.html | 287 ++ .../google/common/truth/MultimapSubject.html | 504 ++ .../google/common/truth/MultisetSubject.html | 182 + .../common/truth/ObjectArraySubject.html | 215 + .../common/truth/OptionalDoubleSubject.html | 231 + .../common/truth/OptionalIntSubject.html | 227 + .../common/truth/OptionalLongSubject.html | 227 + .../google/common/truth/OptionalSubject.html | 233 + .../com/google/common/truth/Ordered.html | 156 + .../com/google/common/truth/PathSubject.html | 183 + .../truth/PrimitiveBooleanArraySubject.html | 215 + .../truth/PrimitiveByteArraySubject.html | 215 + .../truth/PrimitiveCharArraySubject.html | 215 + ...bleArraySubject.DoubleArrayAsIterable.html | 213 + .../truth/PrimitiveDoubleArraySubject.html | 368 ++ ...loatArraySubject.FloatArrayAsIterable.html | 213 + .../truth/PrimitiveFloatArraySubject.html | 364 ++ .../truth/PrimitiveIntArraySubject.html | 215 + .../truth/PrimitiveLongArraySubject.html | 215 + .../truth/PrimitiveShortArraySubject.html | 215 + .../common/truth/SimpleSubjectBuilder.html | 158 + .../common/truth/StandardSubjectBuilder.html | 682 +++ .../google/common/truth/StreamSubject.html | 624 +++ ...bject.CaseInsensitiveStringComparison.html | 209 + .../google/common/truth/StringSubject.html | 470 ++ .../google/common/truth/Subject.Factory.html | 161 + .../com/google/common/truth/Subject.html | 643 +++ .../com/google/common/truth/TableSubject.html | 338 ++ .../google/common/truth/ThrowableSubject.html | 242 + api/1.4.4/com/google/common/truth/Truth.html | 702 +++ api/1.4.4/com/google/common/truth/Truth8.html | 262 ++ .../common/truth/TruthFailureSubject.html | 248 + .../com/google/common/truth/TruthJUnit.html | 176 + .../truth/class-use/BigDecimalSubject.html | 89 + .../truth/class-use/BooleanSubject.html | 89 + .../common/truth/class-use/ClassSubject.html | 89 + .../truth/class-use/ComparableSubject.html | 125 + .../Correspondence.BinaryPredicate.html | 91 + .../Correspondence.DiffFormatter.html | 99 + .../truth/class-use/Correspondence.html | 144 + .../CustomSubjectBuilder.Factory.html | 113 + .../truth/class-use/CustomSubjectBuilder.html | 124 + ...oubleSubject.TolerantDoubleComparison.html | 95 + .../common/truth/class-use/DoubleSubject.html | 89 + .../google/common/truth/class-use/Expect.html | 88 + ...tFailure.SimpleSubjectBuilderCallback.html | 90 + ...ailure.StandardSubjectBuilderCallback.html | 88 + .../common/truth/class-use/ExpectFailure.html | 58 + .../google/common/truth/class-use/Fact.html | 119 + .../truth/class-use/FailureMetadata.html | 204 + .../truth/class-use/FailureStrategy.html | 88 + .../FloatSubject.TolerantFloatComparison.html | 95 + .../common/truth/class-use/FloatSubject.html | 89 + .../truth/class-use/GuavaOptionalSubject.html | 89 + .../truth/class-use/IntStreamSubject.html | 107 + ...egerSubject.TolerantIntegerComparison.html | 95 + .../truth/class-use/IntegerSubject.html | 110 + .../IterableSubject.UsingCorrespondence.html | 127 + .../truth/class-use/IterableSubject.html | 153 + .../truth/class-use/LongStreamSubject.html | 107 + .../LongSubject.TolerantLongComparison.html | 95 + .../common/truth/class-use/LongSubject.html | 89 + .../MapSubject.UsingCorrespondence.html | 94 + .../common/truth/class-use/MapSubject.html | 110 + .../MultimapSubject.UsingCorrespondence.html | 89 + .../truth/class-use/MultimapSubject.html | 110 + .../truth/class-use/MultisetSubject.html | 89 + .../truth/class-use/ObjectArraySubject.html | 89 + .../class-use/OptionalDoubleSubject.html | 107 + .../truth/class-use/OptionalIntSubject.html | 107 + .../truth/class-use/OptionalLongSubject.html | 107 + .../truth/class-use/OptionalSubject.html | 107 + .../common/truth/class-use/Ordered.html | 432 ++ .../common/truth/class-use/PathSubject.html | 107 + .../PrimitiveBooleanArraySubject.html | 89 + .../class-use/PrimitiveByteArraySubject.html | 89 + .../class-use/PrimitiveCharArraySubject.html | 89 + ...bleArraySubject.DoubleArrayAsIterable.html | 93 + .../PrimitiveDoubleArraySubject.html | 89 + ...loatArraySubject.FloatArrayAsIterable.html | 93 + .../class-use/PrimitiveFloatArraySubject.html | 89 + .../class-use/PrimitiveIntArraySubject.html | 89 + .../class-use/PrimitiveLongArraySubject.html | 89 + .../class-use/PrimitiveShortArraySubject.html | 89 + .../truth/class-use/SimpleSubjectBuilder.html | 106 + .../class-use/StandardSubjectBuilder.html | 158 + .../common/truth/class-use/StreamSubject.html | 107 + ...bject.CaseInsensitiveStringComparison.html | 88 + .../common/truth/class-use/StringSubject.html | 106 + .../truth/class-use/Subject.Factory.html | 209 + .../common/truth/class-use/Subject.html | 375 ++ .../common/truth/class-use/TableSubject.html | 89 + .../truth/class-use/ThrowableSubject.html | 108 + .../google/common/truth/class-use/Truth.html | 58 + .../google/common/truth/class-use/Truth8.html | 58 + .../truth/class-use/TruthFailureSubject.html | 100 + .../common/truth/class-use/TruthJUnit.html | 58 + .../truth/extensions/proto/FieldScope.html | 369 ++ .../truth/extensions/proto/FieldScopes.html | 576 +++ .../IterableOfProtosFluentAssertion.html | 1090 +++++ .../proto/IterableOfProtosSubject.html | 1225 +++++ .../IterableOfProtosUsingCorrespondence.html | 447 ++ .../extensions/proto/LiteProtoSubject.html | 365 ++ .../extensions/proto/LiteProtoTruth.html | 171 + .../MapWithProtoValuesFluentAssertion.html | 1173 +++++ .../proto/MapWithProtoValuesSubject.html | 1103 +++++ ...ultimapWithProtoValuesFluentAssertion.html | 1186 +++++ .../proto/MultimapWithProtoValuesSubject.html | 1126 +++++ .../proto/ProtoFluentAssertion.html | 1118 +++++ .../truth/extensions/proto/ProtoSubject.html | 1155 +++++ .../extensions/proto/ProtoSubjectBuilder.html | 205 + .../truth/extensions/proto/ProtoTruth.html | 242 + .../proto/class-use/FieldScope.html | 316 ++ .../proto/class-use/FieldScopes.html | 58 + .../IterableOfProtosFluentAssertion.html | 519 ++ .../class-use/IterableOfProtosSubject.html | 97 + .../IterableOfProtosUsingCorrespondence.html | 106 + .../proto/class-use/LiteProtoSubject.html | 114 + .../proto/class-use/LiteProtoTruth.html | 58 + .../MapWithProtoValuesFluentAssertion.html | 519 ++ .../class-use/MapWithProtoValuesSubject.html | 91 + ...ultimapWithProtoValuesFluentAssertion.html | 519 ++ .../MultimapWithProtoValuesSubject.html | 91 + .../proto/class-use/ProtoFluentAssertion.html | 519 ++ .../proto/class-use/ProtoSubject.html | 91 + .../proto/class-use/ProtoSubjectBuilder.html | 89 + .../proto/class-use/ProtoTruth.html | 58 + .../extensions/proto/package-summary.html | 165 + .../truth/extensions/proto/package-tree.html | 117 + .../truth/extensions/proto/package-use.html | 131 + .../re2j/Re2jSubjects.Re2jStringSubject.html | 309 ++ .../truth/extensions/re2j/Re2jSubjects.html | 171 + .../Re2jSubjects.Re2jStringSubject.html | 86 + .../re2j/class-use/Re2jSubjects.html | 58 + .../extensions/re2j/package-summary.html | 100 + .../truth/extensions/re2j/package-tree.html | 77 + .../truth/extensions/re2j/package-use.html | 82 + .../google/common/truth/package-summary.html | 381 ++ .../com/google/common/truth/package-tree.html | 158 + .../com/google/common/truth/package-use.html | 425 ++ api/1.4.4/deprecated-list.html | 320 ++ api/1.4.4/element-list | 3 + api/1.4.4/help-doc.html | 199 + api/1.4.4/index-all.html | 4190 +++++++++++++++++ api/1.4.4/index.html | 88 + api/1.4.4/legal/ADDITIONAL_LICENSE_INFO | 37 + api/1.4.4/legal/ASSEMBLY_EXCEPTION | 27 + api/1.4.4/legal/LICENSE | 347 ++ api/1.4.4/legal/jquery.md | 72 + api/1.4.4/legal/jqueryUI.md | 49 + api/1.4.4/member-search-index.js | 1 + api/1.4.4/module-search-index.js | 1 + api/1.4.4/overview-summary.html | 25 + api/1.4.4/overview-tree.html | 192 + api/1.4.4/package-search-index.js | 1 + api/1.4.4/resource-files/copy.svg | 33 + api/1.4.4/resource-files/glass.png | Bin 0 -> 499 bytes api/1.4.4/resource-files/jquery-ui.min.css | 6 + api/1.4.4/resource-files/link.svg | 31 + api/1.4.4/resource-files/stylesheet.css | 1275 +++++ api/1.4.4/resource-files/x.png | Bin 0 -> 394 bytes api/1.4.4/script-files/jquery-3.6.1.min.js | 2 + api/1.4.4/script-files/jquery-ui.min.js | 6 + api/1.4.4/script-files/script.js | 236 + api/1.4.4/script-files/search-page.js | 284 ++ api/1.4.4/script-files/search.js | 485 ++ api/1.4.4/search.html | 73 + api/1.4.4/serialized-form.html | 90 + api/1.4.4/tag-search-index.js | 1 + api/1.4.4/type-search-index.js | 1 + 203 files changed, 52137 insertions(+) create mode 100644 api/1.4.4/allclasses-index.html create mode 100644 api/1.4.4/allpackages-index.html create mode 100644 api/1.4.4/com/google/common/truth/BigDecimalSubject.html create mode 100644 api/1.4.4/com/google/common/truth/BooleanSubject.html create mode 100644 api/1.4.4/com/google/common/truth/ClassSubject.html create mode 100644 api/1.4.4/com/google/common/truth/ComparableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/Correspondence.BinaryPredicate.html create mode 100644 api/1.4.4/com/google/common/truth/Correspondence.DiffFormatter.html create mode 100644 api/1.4.4/com/google/common/truth/Correspondence.html create mode 100644 api/1.4.4/com/google/common/truth/CustomSubjectBuilder.Factory.html create mode 100644 api/1.4.4/com/google/common/truth/CustomSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/DoubleSubject.TolerantDoubleComparison.html create mode 100644 api/1.4.4/com/google/common/truth/DoubleSubject.html create mode 100644 api/1.4.4/com/google/common/truth/Expect.html create mode 100644 api/1.4.4/com/google/common/truth/ExpectFailure.SimpleSubjectBuilderCallback.html create mode 100644 api/1.4.4/com/google/common/truth/ExpectFailure.StandardSubjectBuilderCallback.html create mode 100644 api/1.4.4/com/google/common/truth/ExpectFailure.html create mode 100644 api/1.4.4/com/google/common/truth/Fact.html create mode 100644 api/1.4.4/com/google/common/truth/FailureMetadata.html create mode 100644 api/1.4.4/com/google/common/truth/FailureStrategy.html create mode 100644 api/1.4.4/com/google/common/truth/FloatSubject.TolerantFloatComparison.html create mode 100644 api/1.4.4/com/google/common/truth/FloatSubject.html create mode 100644 api/1.4.4/com/google/common/truth/GuavaOptionalSubject.html create mode 100644 api/1.4.4/com/google/common/truth/IntStreamSubject.html create mode 100644 api/1.4.4/com/google/common/truth/IntegerSubject.TolerantIntegerComparison.html create mode 100644 api/1.4.4/com/google/common/truth/IntegerSubject.html create mode 100644 api/1.4.4/com/google/common/truth/IterableSubject.UsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/IterableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/LongStreamSubject.html create mode 100644 api/1.4.4/com/google/common/truth/LongSubject.TolerantLongComparison.html create mode 100644 api/1.4.4/com/google/common/truth/LongSubject.html create mode 100644 api/1.4.4/com/google/common/truth/MapSubject.UsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/MapSubject.html create mode 100644 api/1.4.4/com/google/common/truth/MultimapSubject.UsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/MultimapSubject.html create mode 100644 api/1.4.4/com/google/common/truth/MultisetSubject.html create mode 100644 api/1.4.4/com/google/common/truth/ObjectArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/OptionalDoubleSubject.html create mode 100644 api/1.4.4/com/google/common/truth/OptionalIntSubject.html create mode 100644 api/1.4.4/com/google/common/truth/OptionalLongSubject.html create mode 100644 api/1.4.4/com/google/common/truth/OptionalSubject.html create mode 100644 api/1.4.4/com/google/common/truth/Ordered.html create mode 100644 api/1.4.4/com/google/common/truth/PathSubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveBooleanArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveByteArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveCharArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.FloatArrayAsIterable.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveIntArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveLongArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/PrimitiveShortArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/SimpleSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/StandardSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/StreamSubject.html create mode 100644 api/1.4.4/com/google/common/truth/StringSubject.CaseInsensitiveStringComparison.html create mode 100644 api/1.4.4/com/google/common/truth/StringSubject.html create mode 100644 api/1.4.4/com/google/common/truth/Subject.Factory.html create mode 100644 api/1.4.4/com/google/common/truth/Subject.html create mode 100644 api/1.4.4/com/google/common/truth/TableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/ThrowableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/Truth.html create mode 100644 api/1.4.4/com/google/common/truth/Truth8.html create mode 100644 api/1.4.4/com/google/common/truth/TruthFailureSubject.html create mode 100644 api/1.4.4/com/google/common/truth/TruthJUnit.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/BigDecimalSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/BooleanSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ClassSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ComparableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Correspondence.BinaryPredicate.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Correspondence.DiffFormatter.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Correspondence.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.Factory.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/DoubleSubject.TolerantDoubleComparison.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/DoubleSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Expect.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ExpectFailure.SimpleSubjectBuilderCallback.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ExpectFailure.StandardSubjectBuilderCallback.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ExpectFailure.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Fact.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/FailureMetadata.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/FailureStrategy.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/FloatSubject.TolerantFloatComparison.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/FloatSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/GuavaOptionalSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/IntStreamSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/IntegerSubject.TolerantIntegerComparison.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/IntegerSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/IterableSubject.UsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/IterableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/LongStreamSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/LongSubject.TolerantLongComparison.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/LongSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/MapSubject.UsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/MapSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/MultimapSubject.UsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/MultimapSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/MultisetSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ObjectArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/OptionalDoubleSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/OptionalIntSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/OptionalLongSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/OptionalSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Ordered.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PathSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveBooleanArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveByteArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveCharArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.FloatArrayAsIterable.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveIntArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveLongArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/PrimitiveShortArraySubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/SimpleSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/StandardSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/StreamSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/StringSubject.CaseInsensitiveStringComparison.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/StringSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Subject.Factory.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Subject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/TableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/ThrowableSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Truth.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/Truth8.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/TruthFailureSubject.html create mode 100644 api/1.4.4/com/google/common/truth/class-use/TruthJUnit.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/FieldScope.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/FieldScopes.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosUsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoTruth.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/ProtoFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/ProtoTruth.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScope.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScopes.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosUsingCorrespondence.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoTruth.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoFluentAssertion.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubjectBuilder.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoTruth.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/package-summary.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/package-tree.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/proto/package-use.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.Re2jStringSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.Re2jStringSubject.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/package-summary.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/package-tree.html create mode 100644 api/1.4.4/com/google/common/truth/extensions/re2j/package-use.html create mode 100644 api/1.4.4/com/google/common/truth/package-summary.html create mode 100644 api/1.4.4/com/google/common/truth/package-tree.html create mode 100644 api/1.4.4/com/google/common/truth/package-use.html create mode 100644 api/1.4.4/deprecated-list.html create mode 100644 api/1.4.4/element-list create mode 100644 api/1.4.4/help-doc.html create mode 100644 api/1.4.4/index-all.html create mode 100644 api/1.4.4/index.html create mode 100644 api/1.4.4/legal/ADDITIONAL_LICENSE_INFO create mode 100644 api/1.4.4/legal/ASSEMBLY_EXCEPTION create mode 100644 api/1.4.4/legal/LICENSE create mode 100644 api/1.4.4/legal/jquery.md create mode 100644 api/1.4.4/legal/jqueryUI.md create mode 100644 api/1.4.4/member-search-index.js create mode 100644 api/1.4.4/module-search-index.js create mode 100644 api/1.4.4/overview-summary.html create mode 100644 api/1.4.4/overview-tree.html create mode 100644 api/1.4.4/package-search-index.js create mode 100644 api/1.4.4/resource-files/copy.svg create mode 100644 api/1.4.4/resource-files/glass.png create mode 100644 api/1.4.4/resource-files/jquery-ui.min.css create mode 100644 api/1.4.4/resource-files/link.svg create mode 100644 api/1.4.4/resource-files/stylesheet.css create mode 100644 api/1.4.4/resource-files/x.png create mode 100644 api/1.4.4/script-files/jquery-3.6.1.min.js create mode 100644 api/1.4.4/script-files/jquery-ui.min.js create mode 100644 api/1.4.4/script-files/script.js create mode 100644 api/1.4.4/script-files/search-page.js create mode 100644 api/1.4.4/script-files/search.js create mode 100644 api/1.4.4/search.html create mode 100644 api/1.4.4/serialized-form.html create mode 100644 api/1.4.4/tag-search-index.js create mode 100644 api/1.4.4/type-search-index.js diff --git a/api/1.4.4/allclasses-index.html b/api/1.4.4/allclasses-index.html new file mode 100644 index 000000000..eae9e19c8 --- /dev/null +++ b/api/1.4.4/allclasses-index.html @@ -0,0 +1,410 @@ + + + + +All Classes and Interfaces (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

All Classes and Interfaces

+
+
+
+
+
+
Class
+
Description
+ +
+
Propositions for BigDecimal typed subjects.
+
+ +
+
Propositions for boolean subjects.
+
+ +
+
Propositions for Class subjects.
+
+ +
+
Propositions for Comparable typed subjects.
+
+ +
+
Determines whether an instance of type A corresponds in some way to an instance of type + E for the purposes of a test assertion.
+
+ +
+
A functional interface for a binary predicate, to be used to test whether a pair of objects of + types A and E satisfy some condition.
+
+ +
+
A functional interface to be used format the diff between a pair of objects of types A + and E.
+
+ +
+
In a fluent assertion chain, exposes one or more "custom" that methods, which accept a + value under test and return a Subject.
+
+ +
+
In a fluent assertion chain, the argument to the "custom" overload of about, the method that specifies + what kind of Subject to create.
+
+ +
+
Propositions for Double subjects.
+
+ +
+
A partially specified check about an approximate relationship to a double subject using + a tolerance.
+
+ +
+
A TestRule that batches up all failures encountered during a test, and reports them all + together at the end (similar to ErrorCollector).
+
+ +
+
A utility for testing that assertions against a custom Subject fail when they should, + plus a utility to assert about parts of the resulting failure messages.
+
+ +
+
A "functional interface" for expectFailureAbout() to invoke and + capture failures.
+
+ +
+
A "functional interface" for expectFailure() to invoke and capture + failures.
+
+ +
+
A string key-value pair in a failure message, such as "expected: abc" or "but was: xyz."
+
+ +
+
An opaque, immutable object containing state from the previous calls in the fluent assertion + chain.
+
+ +
+
Defines what to do when a check fails.
+
+ +
+
An immutable, abstract representation of a set of specific field paths.
+
+ +
+
Factory class for FieldScope instances.
+
+ +
+
Propositions for Float subjects.
+
+ +
+
A partially specified check about an approximate relationship to a float subject using + a tolerance.
+
+ +
+
Propositions for Guava Optional subjects.
+
+ +
+
Propositions for Integer subjects.
+
+ +
+
A partially specified check about an approximate relationship to a int subject using a + tolerance.
+
+ +
+
Propositions for IntStream subjects.
+
+ +
+
Fluent API to perform detailed, customizable comparison of iterables of protocol buffers.
+
+ +
+
Truth subject for the iterables of protocol buffers.
+
+ +
+
Comparison methods, which enforce the rules set in prior calls to IterableOfProtosFluentAssertion.
+
+ +
+
Propositions for Iterable subjects.
+
+ +
+
A partially specified check in which the actual elements (normally the elements of the Iterable under test) are compared to expected elements using a Correspondence.
+
+ +
+
Truth subjects for the Lite version of Protocol Buffers.
+
+ +
+
A set of static methods to begin a Truth assertion chain for the lite version of protocol + buffers.
+
+ +
+
Propositions for LongStream subjects.
+
+ +
+
Propositions for long subjects.
+
+ +
+
A partially specified check about an approximate relationship to a long subject using a + tolerance.
+
+ +
+
Propositions for Map subjects.
+
+ +
+
Fluent API to perform detailed, customizable comparison of maps containing protocol buffers as + values.
+
+ +
+
Truth subject for maps with protocol buffers for values.
+
+ +
+
Propositions for Multimap subjects.
+
+ +
+
Fluent API to perform detailed, customizable comparison of Multimaps containing protocol + buffers as values.
+
+ +
+
Truth subject for Multimaps with protocol buffers for values.
+
+ +
+
Propositions for Multiset subjects.
+
+ +
+
A Subject for Object[] and more generically T[].
+
+ +
+
Propositions for Java 8 OptionalDouble subjects.
+
+ +
+
Propositions for Java 8 OptionalInt subjects.
+
+ +
+
Propositions for Java 8 OptionalLong subjects.
+
+ +
+
Propositions for Java 8 Optional subjects.
+
+ +
+
Returned by calls like IterableSubject.containsExactly(java.lang.Object...), Ordered lets the caller + additionally check that the expected elements were present in the order they were passed to the + previous calls.
+
+ +
+
Assertions for Path instances.
+
+ +
+
A Subject for boolean[].
+
+ +
+
A Subject for byte[].
+
+ +
+
A Subject for char[].
+
+ +
+
A Subject for double[].
+
+ +
+
A partially specified check for doing assertions on the array similar to the assertions + supported for Iterable subjects, in which the elements of the array under test are + compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality() and PrimitiveDoubleArraySubject.usingTolerance(double).
+
+ +
+
A Subject for float[].
+
+ +
+
A partially specified check for doing assertions on the array similar to the assertions + supported for Iterable subjects, in which the elements of the array under test are + compared to expected elements using either exact or tolerant float equality: see PrimitiveFloatArraySubject.usingExactEquality() and PrimitiveFloatArraySubject.usingTolerance(double).
+
+ +
+
A Subject for int[].
+
+ +
+
A Subject for long[].
+
+ +
+
A Subject for short[].
+
+ +
+
Fluent API to perform detailed, customizable comparison of Protocol buffers.
+
+ +
+
Truth subject for the full version of Protocol Buffers.
+
+ +
+
CustomSubjectBuilder which aggregates all Proto-related Subject classes into a single place.
+
+ +
+
A set of static methods to begin a Truth assertion chain for protocol buffers.
+
+ +
+
Truth subjects for re2j regular expressions.
+
+ +
+
Subject for String subjects which you can use to assert things about Pattern regexes.
+
+ +
+
In a fluent assertion chain, exposes the most common that method, which accepts a value + under test and returns a Subject.
+
+ +
+
In a fluent assertion chain, an object with which you can do any of the following: + + + Set an optional message with StandardSubjectBuilder.withMessage(java.lang.String).
+
+ +
+
Propositions for Stream subjects.
+
+ +
+
Propositions for string subjects.
+
+ +
+
An object that lets you perform checks on the value under test.
+
+ +
+
In a fluent assertion chain, the argument to the common overload of about, the method that specifies what kind of + Subject to create.
+
+ +
+
Propositions for Table subjects.
+
+ +
+
Propositions for Throwable subjects.
+
+ +
+
The primary entry point for Truth, a library for fluent test + assertions.
+
+ +
Deprecated. +
Instead of this class's methods, use the identical methods declared in the main + Truth class.
+
+ +
+
Subject for AssertionError objects thrown by Truth.
+
+ +
+
Provides a way to use Truth to perform JUnit "assumptions." An assumption is a check that, if + false, aborts (skips) the test.
+
+
+
+
+
+ + + diff --git a/api/1.4.4/allpackages-index.html b/api/1.4.4/allpackages-index.html new file mode 100644 index 000000000..45365e9d9 --- /dev/null +++ b/api/1.4.4/allpackages-index.html @@ -0,0 +1,75 @@ + + + + +All Packages (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
Package Summary
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+ +
 
+
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/BigDecimalSubject.html b/api/1.4.4/com/google/common/truth/BigDecimalSubject.html new file mode 100644 index 000000000..417be9fe6 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/BigDecimalSubject.html @@ -0,0 +1,263 @@ + + + + +BigDecimalSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BigDecimalSubject

+
+ +
+
+
+
public final class BigDecimalSubject +extends ComparableSubject<BigDecimal>
+
Propositions for BigDecimal typed subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEqualToIgnoringScale

      +
      +
      public void isEqualToIgnoringScale(BigDecimal expected)
      +
      Fails if the subject's value is not equal to the value of the given BigDecimal. (i.e., + fails if actual.comparesTo(expected) != 0). + +

      Note: The scale of the BigDecimal is ignored. If you want to compare the values and + the scales, use isEqualTo(Object).

      +
      +
      +
    • +
    • +
      +

      isEqualToIgnoringScale

      +
      +
      public void isEqualToIgnoringScale(String expected)
      +
      Fails if the subject's value is not equal to the value of the BigDecimal created from + the expected string (i.e., fails if actual.comparesTo(new BigDecimal(expected)) != 0). + +

      Note: The scale of the BigDecimal is ignored. If you want to compare the values and + the scales, use isEqualTo(Object).

      +
      +
      +
    • +
    • +
      +

      isEqualToIgnoringScale

      +
      +
      public void isEqualToIgnoringScale(long expected)
      +
      Fails if the subject's value is not equal to the value of the BigDecimal created from + the expected long (i.e., fails if actual.comparesTo(new BigDecimal(expected)) != + 0). + +

      Note: The scale of the BigDecimal is ignored. If you want to compare the values and + the scales, use isEqualTo(Object).

      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      Fails if the subject's value and scale is not equal to the given BigDecimal. + +

      Note: If you only want to compare the values of the BigDecimals and not their scales, + use isEqualToIgnoringScale(BigDecimal) instead.

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      public void isEquivalentAccordingToCompareTo(@Nullable BigDecimal expected)
      +
      Fails if the subject is not equivalent to the given value according to Comparable.compareTo(T), (i.e., fails if a.comparesTo(b) != 0). This method behaves + identically to (the more clearly named) isEqualToIgnoringScale(BigDecimal). + +

      Note: Do not use this method for checking object equality. Instead, use isEqualTo(Object).

      +
      +
      Overrides:
      +
      isEquivalentAccordingToCompareTo in class ComparableSubject<BigDecimal>
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/BooleanSubject.html b/api/1.4.4/com/google/common/truth/BooleanSubject.html new file mode 100644 index 000000000..04d3da006 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/BooleanSubject.html @@ -0,0 +1,186 @@ + + + + +BooleanSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BooleanSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.BooleanSubject
+
+
+
+
+
+
public final class BooleanSubject +extends Subject
+
Propositions for boolean subjects.
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isTrue

      +
      +
      public void isTrue()
      +
      Fails if the subject is false or null.
      +
      +
      +
    • +
    • +
      +

      isFalse

      +
      +
      public void isFalse()
      +
      Fails if the subject is true or null.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ClassSubject.html b/api/1.4.4/com/google/common/truth/ClassSubject.html new file mode 100644 index 000000000..75ed16d77 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ClassSubject.html @@ -0,0 +1,175 @@ + + + + +ClassSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ClassSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.ClassSubject
+
+
+
+
+
+
@GwtIncompatible("reflection") +public final class ClassSubject +extends Subject
+
Propositions for Class subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isAssignableTo

      +
      +
      public void isAssignableTo(Class<?> clazz)
      +
      Fails if this class or interface is not the same as or a subclass or subinterface of, the given + class or interface.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ComparableSubject.html b/api/1.4.4/com/google/common/truth/ComparableSubject.html new file mode 100644 index 000000000..c0f0db63d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ComparableSubject.html @@ -0,0 +1,307 @@ + + + + +ComparableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ComparableSubject<T extends Comparable<?>>

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.ComparableSubject<T>
+
+
+
+
+
+
Type Parameters:
+
T - the type of the object being tested by this ComparableSubject
+
+
+
Direct Known Subclasses:
+
BigDecimalSubject, DoubleSubject, FloatSubject, IntegerSubject, LongSubject, StringSubject
+
+
+
public abstract class ComparableSubject<T extends Comparable<?>> +extends Subject
+
Propositions for Comparable typed subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ComparableSubject

      +
      +
      protected ComparableSubject(FailureMetadata metadata, + @Nullable T actual)
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isIn

      +
      +
      public final void isIn(Range<T> range)
      +
      Checks that the subject is in range.
      +
      +
      +
    • +
    • +
      +

      isNotIn

      +
      +
      public final void isNotIn(Range<T> range)
      +
      Checks that the subject is not in range.
      +
      +
      +
    • +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      public void isEquivalentAccordingToCompareTo(@Nullable T expected)
      +
      Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0). + +

      Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object).

      +
      +
      +
    • +
    • +
      +

      isGreaterThan

      +
      +
      public final void isGreaterThan(@Nullable T other)
      +
      Checks that the subject is greater than other. + +

      To check that the subject is greater than or equal to other, use isAtLeast(T).

      +
      +
      +
    • +
    • +
      +

      isLessThan

      +
      +
      public final void isLessThan(@Nullable T other)
      +
      Checks that the subject is less than other. + +

      To check that the subject is less than or equal to other, use isAtMost(T).

      +
      +
      +
    • +
    • +
      +

      isAtMost

      +
      +
      public final void isAtMost(@Nullable T other)
      +
      Checks that the subject is less than or equal to other. + +

      To check that the subject is strictly less than other, use isLessThan(T).

      +
      +
      +
    • +
    • +
      +

      isAtLeast

      +
      +
      public final void isAtLeast(@Nullable T other)
      +
      Checks that the subject is greater than or equal to other. + +

      To check that the subject is strictly greater than other, use isGreaterThan(T).

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Correspondence.BinaryPredicate.html b/api/1.4.4/com/google/common/truth/Correspondence.BinaryPredicate.html new file mode 100644 index 000000000..4dd2d193c --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Correspondence.BinaryPredicate.html @@ -0,0 +1,161 @@ + + + + +Correspondence.BinaryPredicate (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Correspondence.BinaryPredicate<A extends @Nullable Object,E extends @Nullable Object>

+
+
+
+
+
Enclosing class:
+
Correspondence<A extends @Nullable Object,E extends @Nullable Object>
+
+
+
public static interface Correspondence.BinaryPredicate<A extends @Nullable Object,E extends @Nullable Object>
+
A functional interface for a binary predicate, to be used to test whether a pair of objects of + types A and E satisfy some condition. + +

This interface will normally be implemented using a lambda or a method reference, and the + resulting object will normally be passed directly to Correspondence.from(com.google.common.truth.Correspondence.BinaryPredicate<A, E>, java.lang.String). As a result, + you should almost never see BinaryPredicate used as the type of a field or variable, or + a return type.

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    boolean
    +
    apply(A actual, + E expected)
    +
    +
    Returns whether or not the actual and expected values satisfy the condition defined by this + predicate.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      apply

      +
      +
      boolean apply(A actual, + E expected)
      +
      Returns whether or not the actual and expected values satisfy the condition defined by this + predicate.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Correspondence.DiffFormatter.html b/api/1.4.4/com/google/common/truth/Correspondence.DiffFormatter.html new file mode 100644 index 000000000..27aed6f6d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Correspondence.DiffFormatter.html @@ -0,0 +1,160 @@ + + + + +Correspondence.DiffFormatter (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Correspondence.DiffFormatter<A extends @Nullable Object,E extends @Nullable Object>

+
+
+
+
+
Enclosing class:
+
Correspondence<A extends @Nullable Object,E extends @Nullable Object>
+
+
+
public static interface Correspondence.DiffFormatter<A extends @Nullable Object,E extends @Nullable Object>
+
A functional interface to be used format the diff between a pair of objects of types A + and E. + +

This interface will normally be implemented using a lambda or a method reference, and the + resulting object will normally be passed directly to Correspondence.formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>). As a result, you should almost never see + DiffFormatter used as the type of a field or variable, or a return type.

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    @Nullable String
    +
    formatDiff(A actual, + E expected)
    +
    +
    Returns a String describing the difference between the actual and + expected values, if possible, or null if not.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      formatDiff

      +
      +
      @Nullable String formatDiff(A actual, + E expected)
      +
      Returns a String describing the difference between the actual and + expected values, if possible, or null if not.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Correspondence.html b/api/1.4.4/com/google/common/truth/Correspondence.html new file mode 100644 index 000000000..84396bf84 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Correspondence.html @@ -0,0 +1,626 @@ + + + + +Correspondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Correspondence<A extends @Nullable Object,E extends @Nullable Object>

+
+
java.lang.Object +
com.google.common.truth.Correspondence<A,E>
+
+
+
+
+
public abstract class Correspondence<A extends @Nullable Object,E extends @Nullable Object> +extends Object
+
Determines whether an instance of type A corresponds in some way to an instance of type + E for the purposes of a test assertion. For example, the implementation returned by the + tolerance(double) factory method implements approximate equality between numeric values, + with values being said to correspond if the difference between them does not exceed the given + fixed tolerance. The instances of type A are typically actual values from a collection + returned by the code under test; the instances of type E are typically expected values + with which the actual values are compared by the test. + +

The correspondence is required to be consistent: for any given values actual and + expected, multiple invocations of compare(actual, expected) must consistently + return true or consistently return false (provided that neither value is + modified). Although A and E will often be the same types, they are not + required to be the same, and even if they are it is not required that the correspondence + should have any of the other properties of an equivalence relation (reflexivity, symmetry, or + transitivity). + +

Optionally, instances of this class can also provide functionality to format the difference + between values which do not correspond. This results in failure messages including formatted + diffs between expected and actual value, where possible. + +

The recommended approach for creating an instance of this class is to use one of the static + factory methods. The most general of these is from(com.google.common.truth.Correspondence.BinaryPredicate<A, E>, java.lang.String); the other methods are more + convenient in specific cases. The optional diff-formatting functionality can be added using + formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>). (Alternatively, you can subclass this class yourself, but that is + generally not recommended.) + +

Instances of this are typically used via IterableSubject.comparingElementsUsing(com.google.common.truth.Correspondence<? super A, ? super E>), + MapSubject.comparingValuesUsing(com.google.common.truth.Correspondence<? super A, ? super E>), or MultimapSubject.comparingValuesUsing(com.google.common.truth.Correspondence<? super A, ? super E>).

+
+
Author:
+
Pete Gillin
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      from

      +
      +
      public static <A extends @Nullable Object, +E extends @Nullable Object> +Correspondence<A,E> from(Correspondence.BinaryPredicate<A,E> predicate, + String description)
      +
      Constructs a Correspondence that compares actual and expected elements using the given + binary predicate. + +

      The correspondence does not support formatting of diffs (see formatDiff(A, E)). You can + add that behaviour by calling formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>). + +

      Note that, if the data you are asserting about contains nulls, your predicate may be invoked + with null arguments. If this causes it to throw a NullPointerException, then your test + will fail. (See compare(A, E) for more detail on how exceptions are handled.) + In particular, if your predicate is an instance method reference on the actual value (as in the + String::contains example below), your test will fail if it sees null actual values. + +

      Example using an instance method reference: + +

      
      + static final Correspondence<String, String> CONTAINS_SUBSTRING =
      +     Correspondence.from(String::contains, "contains");
      + 
      + +

      Example using a static method reference: + +

      
      + class MyRecordTestHelper {
      +   static final Correspondence<MyRecord, MyRecord> EQUIVALENCE =
      +       Correspondence.from(MyRecordTestHelper::recordsEquivalent, "is equivalent to");
      +   static boolean recordsEquivalent(MyRecord actual, MyRecord expected) {
      +     // code to check whether records should be considered equivalent for testing purposes
      +   }
      + }
      + 
      + +

      Example using a lambda: + +

      
      + static final Correspondence<Object, Class<?>> INSTANCE_OF =
      +     Correspondence.from((obj, clazz) -> clazz.isInstance(obj), "is an instance of");
      + 
      +
      +
      Parameters:
      +
      predicate - a Correspondence.BinaryPredicate taking an actual and expected value (in that order) + and returning whether the actual value corresponds to the expected value in some way
      +
      description - should fill the gap in a failure message of the form "not true that + <some actual element> is an element that <description> <some expected element>", e.g. + "contains", "is an instance of", or "is equivalent to"
      +
      +
      +
      +
    • +
    • +
      +

      transforming

      +
      +
      public static <A extends @Nullable Object, +E extends @Nullable Object> +Correspondence<A,E> transforming(Function<A,? extends E> actualTransform, + String description)
      +
      Constructs a Correspondence that compares elements by transforming the actual elements + using the given function and testing for equality with the expected elements. If the + transformed actual element (i.e. the output of the given function) is null, it will correspond + to a null expected element. + +

      The correspondence does not support formatting of diffs (see formatDiff(A, E)). You can + add that behaviour by calling formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>). + +

      Note that, if you the data you are asserting about contains null actual values, your + function may be invoked with a null argument. If this causes it to throw a NullPointerException, then your test will fail. (See compare(A, E) for more + detail on how exceptions are handled.) In particular, this applies if your function is an + instance method reference on the actual value (as in the example below). If you want a null + actual element to correspond to a null expected element, you must ensure that your function + transforms a null input to a null output. + +

      Example: + +

      
      + static final Correspondence<MyRecord, Integer> HAS_ID =
      +     Correspondence.transforming(MyRecord::getId, "has an ID of");
      + 
      + + This can be used as follows: + +
      
      + assertThat(myRecords).comparingElementsUsing(HAS_ID).containsExactly(123, 456, 789);
      + 
      +
      +
      Parameters:
      +
      actualTransform - a Function taking an actual value and returning a new value + which will be compared with an expected value to determine whether they correspond
      +
      description - should fill the gap in a failure message of the form "not true that + <some actual element> is an element that <description> <some expected element>", e.g. + "has an ID of"
      +
      +
      +
      +
    • +
    • +
      +

      transforming

      +
      +
      public static <A extends @Nullable Object, +E extends @Nullable Object> +Correspondence<A,E> transforming(Function<A,?> actualTransform, + Function<E,?> expectedTransform, + String description)
      +
      Constructs a Correspondence that compares elements by transforming the actual and the + expected elements using the given functions and testing the transformed values for equality. If + an actual element is transformed to null, it will correspond to an expected element that is + also transformed to null. + +

      The correspondence does not support formatting of diffs (see formatDiff(A, E)). You can + add that behaviour by calling formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>). + +

      Note that, if you the data you are asserting about contains null actual or expected values, + the appropriate function may be invoked with a null argument. If this causes it to throw a + NullPointerException, then your test will fail. (See compare(A, E) for + more detail on how exceptions are handled.) In particular, this applies if your function is an + instance method reference on the actual or expected value (as in the example below). If you + want a null actual element to correspond to a null expected element, you must ensure that your + functions both transform a null input to a null output. + +

      If you want to apply the same function to both the actual and expected elements, just + provide the same argument twice. + +

      Example: + +

      
      + static final Correspondence<MyRequest, MyResponse> SAME_IDS =
      +     Correspondence.transforming(MyRequest::getId, MyResponse::getId, "has the same ID as");
      + 
      + + This can be used as follows: + +
      
      + assertThat(myResponses).comparingElementsUsing(SAME_IDS).containsExactlyElementsIn(myRequests);
      + 
      +
      +
      Parameters:
      +
      actualTransform - a Function taking an actual value and returning a new value + which will be compared with a transformed expected value to determine whether they + correspond
      +
      expectedTransform - a Function taking an expected value and returning a new value + which will be compared with a transformed actual value
      +
      description - should fill the gap in a failure message of the form "not true that + <some actual element> is an element that <description> <some expected element>", e.g. + "has the same ID as"
      +
      +
      +
      +
    • +
    • +
      +

      tolerance

      +
      +
      public static Correspondence<Number,Number> tolerance(double tolerance)
      +
      Returns a Correspondence between Number instances that considers instances to + correspond (i.e. compare(Object, Object) returns true) if the + double values of each instance (i.e. the result of calling Number.doubleValue() on + them) are finite values within tolerance of each other. + +
        +
      • It does not consider instances to correspond if either value is infinite or NaN. +
      • The conversion to double may result in a loss of precision for some numeric types. +
      • The compare(Object, Object) method throws a NullPointerException if either Number instance is null. +
      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the double values of the + two Number instances, which must be a non-negative finite value, i.e. not Double.NaN, Double.POSITIVE_INFINITY, or negative, including -0.0
      +
      +
      +
      +
    • +
    • +
      +

      formattingDiffsUsing

      +
      +
      public Correspondence<A,E> formattingDiffsUsing(Correspondence.DiffFormatter<? super A,? super E> formatter)
      +
      Returns a new correspondence which is like this one, except that the given formatter may be + used to format the difference between a pair of elements that do not correspond. + +

      Note that, if you the data you are asserting about contains null actual or expected values, + the formatter may be invoked with a null argument. If this causes it to throw a NullPointerException, that will be taken to indicate that the values cannot be diffed. (See + formatDiff(A, E) for more detail on how exceptions are handled.) If you think + null values are likely, it is slightly cleaner to have the formatter return null in that case + instead of throwing. + +

      Example: + +

      
      + class MyRecordTestHelper {
      +   static final Correspondence<MyRecord, MyRecord> EQUIVALENCE =
      +       Correspondence.from(MyRecordTestHelper::recordsEquivalent, "is equivalent to")
      +           .formattingDiffsUsing(MyRecordTestHelper::formatRecordDiff);
      +   static boolean recordsEquivalent(MyRecord actual, MyRecord expected) {
      +     // code to check whether records should be considered equivalent for testing purposes
      +   }
      +   static String formatRecordDiff(MyRecord actual, MyRecord expected) {
      +     // code to format the diff between the records
      +   }
      + }
      + 
      +
      +
      +
    • +
    • +
      +

      compare

      +
      +
      public abstract boolean compare(A actual, + E expected)
      +
      Returns whether or not the actual value is said to correspond to the expected + value for the purposes of this test. + +

      Exception handling

      + +

      Throwing a RuntimeException from this method indicates that this Correspondence cannot compare the given values. Any assertion which encounters such an + exception during the course of evaluating its condition must not pass. However, an assertion is + not required to invoke this method for every pair of values in its input just in order to check + for exceptions, if it is able to evaluate its condition without doing so. + +

      Conventions for handling exceptions

      + +

      (N.B. This section is only really of interest when implementing assertion methods that call + compare(A, E), not to users making such assertions in their tests.) + +

      The only requirement on an assertion is that, if it encounters an exception from this + method, it must not pass. The simplest implementation choice is simply to allow the exception + to propagate. However, it is normally more helpful to catch the exception and instead fail with + a message which includes more information about the assertion in progress and the nature of the + failure. + +

      By convention, an assertion may catch and store the exception and continue evaluating the + condition as if the method had returned false instead of throwing. If the assertion's condition + does not hold with this alternative behaviour, it may choose to fail with a message that gives + details about how the condition does not hold, additionally mentioning that assertions were + encountered and giving details about one of the stored exceptions. (See the first example + below.) If the assertion's condition does hold with this alternative behaviour, the requirement + that the assertion must not pass still applies, so it should fail with a message giving details + about one of the stored exceptions. (See the second and third examples below.) + +

      This behaviour is only a convention and should only be implemented when it makes sense to do + so. In particular, in an assertion that has multiple stages, it may be better to only continue + evaluation to the end of the current stage, and fail citing a stored exception at the end of + the stage, rather than accumulating exceptions through the multiple stages. + +

      Examples of exception handling

      + +

      Suppose that we have the correspondence + +

      
      + static final Correspondence<String, String> CASE_INSENSITIVE_EQUALITY =
      +     Correspondence.from(String::equalsIgnoreCase, "equals ignoring case"
      + }
      + + whose compare method throws NullPointerException if the actual value is null. + The assertion + +
      
      + assertThat(asList(null, "xyz", "abc", "def"))
      +     .comparingElementsUsing(CASE_INSENSITIVE_EQUALITY)
      +     .containsExactly("ABC", "DEF", "GHI", "JKL");
      + 
      + + may fail saying that the actual iterable contains unexpected values null and + xyz and is missing values corresponding to GHI and JKL, which is what it would + do if the compare method returned false instead of throwing, and additionally mention + the exception. (This is more helpful than allowing the NullPointerException to + propagate to the caller, or than failing with only a description of the exception.) + +

      However, the assertions + +

      
      + assertThat(asList(null, "xyz", "abc", "def"))
      +     .comparingElementsUsing(CASE_INSENSITIVE_EQUALITY)
      +     .doesNotContain("MNO");
      + 
      + + and + +
      
      + assertThat(asList(null, "xyz", "abc", "def"))
      +     .comparingElementsUsing(CASE_INSENSITIVE_EQUALITY)
      +     .doesNotContain(null);
      + 
      + + must both fail citing the exception, even though they would pass if the compare method + returned false. (Note that, in the latter case at least, it is likely that the test author's + intention was not for the test to pass with these values.)
      +
      +
      +
    • +
    • +
      +

      formatDiff

      +
      +
      public @Nullable String formatDiff(A actual, + E expected)
      +
      Returns a String describing the difference between the actual and + expected values, if possible, or null if not. + +

      The implementation on the Correspondence base class always returns null. To + enable diffing, use formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>) (or override this method in a subclass, but + factory methods are recommended over subclassing). + +

      Assertions should only invoke this with parameters for which compare(A, E) returns + false. + +

      If this throws an exception, that implies that it is not possible to describe the diffs. An + assertion will normally only call this method if it has established that its condition does not + hold: good practice dictates that, if this method throws, the assertion should catch the + exception and continue to describe the original failure as if this method had returned null, + mentioning the failure from this method as additional information.

      +
      +
      +
    • +
    • +
      +

      toString

      +
      +
      public abstract String toString()
      +
      Returns a description of the correspondence, suitable to fill the gap in a failure message of + the form "<some actual element> is an element that ... <some expected element>". Note + that this is a fragment of a verb phrase which takes a singular subject. + +

      Example 1: For a Correspondence<String, Integer> that tests whether the actual + string parses to the expected integer, this would return "parses to" to result in a + failure message of the form "<some actual string> is an element that parses to <some + expected integer>". + +

      Example 2: For the Correspondence<Number, Number> returns by tolerance(double) this + returns "is a finite number within " + tolerance + " of" to result in a failure message + of the form "<some actual number> is an element that is a finite number within 0.0001 of + <some expected number>".

      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +public final boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported. If you meant to compare objects + using this Correspondence, use compare(A, E).
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public final int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported.
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/CustomSubjectBuilder.Factory.html b/api/1.4.4/com/google/common/truth/CustomSubjectBuilder.Factory.html new file mode 100644 index 000000000..f6800d7fc --- /dev/null +++ b/api/1.4.4/com/google/common/truth/CustomSubjectBuilder.Factory.html @@ -0,0 +1,160 @@ + + + + +CustomSubjectBuilder.Factory (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder>

+
+
+
+
+
Enclosing class:
+
CustomSubjectBuilder
+
+
+
public static interface CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder>
+
In a fluent assertion chain, the argument to the "custom" overload of about, the method that specifies + what kind of Subject to create. + +

For more information about the fluent chain, see this FAQ entry. + +

For people extending Truth

+ +

When you write a custom subject, see our doc on + extensions. It explains the cases in which CustomSubjectBuilder.Factory is + necessary.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/CustomSubjectBuilder.html b/api/1.4.4/com/google/common/truth/CustomSubjectBuilder.html new file mode 100644 index 000000000..d9cd8d8b4 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/CustomSubjectBuilder.html @@ -0,0 +1,204 @@ + + + + +CustomSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CustomSubjectBuilder

+
+
java.lang.Object +
com.google.common.truth.CustomSubjectBuilder
+
+
+
+
+
Direct Known Subclasses:
+
ProtoSubjectBuilder
+
+
+
public abstract class CustomSubjectBuilder +extends Object
+
In a fluent assertion chain, exposes one or more "custom" that methods, which accept a + value under test and return a Subject. + +

(Note that the "custom" that methods are not defined on CustomSubjectBuilder + itself, only on its subtypes, which are the types users actually interact with.) + +

For more information about the methods in this class, see this FAQ entry. + +

For people extending Truth

+ +

When you write a custom subject, see our doc on + extensions. It explains the cases in which CustomSubjectBuilder is necessary, and it + links to further instructions.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      CustomSubjectBuilder

      +
      +
      protected CustomSubjectBuilder(FailureMetadata metadata)
      +
      Constructor for use by subclasses.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/DoubleSubject.TolerantDoubleComparison.html b/api/1.4.4/com/google/common/truth/DoubleSubject.TolerantDoubleComparison.html new file mode 100644 index 000000000..d47b61cb4 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/DoubleSubject.TolerantDoubleComparison.html @@ -0,0 +1,213 @@ + + + + +DoubleSubject.TolerantDoubleComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DoubleSubject.TolerantDoubleComparison

+
+
java.lang.Object +
com.google.common.truth.DoubleSubject.TolerantDoubleComparison
+
+
+
+
+
Enclosing class:
+
DoubleSubject
+
+
+
public abstract static class DoubleSubject.TolerantDoubleComparison +extends Object
+
A partially specified check about an approximate relationship to a double subject using + a tolerance.
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    boolean
    +
    equals(@Nullable Object o)
    +
    +
    Deprecated. +
    Object.equals(Object) is not supported on TolerantDoubleComparison.
    +
    +
    +
    int
    + +
    +
    Deprecated. +
    Object.hashCode() is not supported on TolerantDoubleComparison
    +
    +
    +
    abstract void
    +
    of(double expectedDouble)
    +
    +
    Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      of

      +
      +
      public abstract void of(double expectedDouble)
      +
      Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was. The subject and + tolerance are specified earlier in the fluent call chain.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +public boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported on TolerantDoubleComparison. If + you meant to compare doubles, use of(double) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported on TolerantDoubleComparison
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/DoubleSubject.html b/api/1.4.4/com/google/common/truth/DoubleSubject.html new file mode 100644 index 000000000..9445a7d19 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/DoubleSubject.html @@ -0,0 +1,488 @@ + + + + +DoubleSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DoubleSubject

+
+ +
+
+
+
public final class DoubleSubject +extends ComparableSubject<Double>
+
Propositions for Double subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isWithin

      +
      +
      public DoubleSubject.TolerantDoubleComparison isWithin(double tolerance)
      +
      Prepares for a check that the subject is a finite number within the given tolerance of an + expected value that will be provided in the next call in the fluent chain. + +

      The check will fail if either the subject or the object is Double.POSITIVE_INFINITY, + Double.NEGATIVE_INFINITY, or Double.NaN. To check for those values, use isPositiveInfinity(), isNegativeInfinity(), isNaN(), or (with more generality) + isEqualTo(java.lang.Object). + +

      The check will pass if both values are zero, even if one is 0.0 and the other is + -0.0. Use #isEqualTo to assert that a value is exactly 0.0 or that it + is exactly -0.0. + +

      You can use a tolerance of 0.0 to assert the exact equality of finite doubles, but + often isEqualTo(java.lang.Object) is preferable (note the different behaviours around non-finite values + and -0.0). See the documentation on isEqualTo(java.lang.Object) for advice on when exact + equality assertions are appropriate.

      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the subject and object + allowed by the check, which must be a non-negative finite value, i.e. not Double.NaN, Double.POSITIVE_INFINITY, or negative, including -0.0
      +
      +
      +
      +
    • +
    • +
      +

      isNotWithin

      +
      +
      public DoubleSubject.TolerantDoubleComparison isNotWithin(double tolerance)
      +
      Prepares for a check that the subject is a finite number not within the given tolerance of an + expected value that will be provided in the next call in the fluent chain. + +

      The check will fail if either the subject or the object is Double.POSITIVE_INFINITY, + Double.NEGATIVE_INFINITY, or Double.NaN. See isFinite(), isNotNaN(), or isNotEqualTo(java.lang.Object) for checks with other behaviours. + +

      The check will fail if both values are zero, even if one is 0.0 and the other is + -0.0. Use #isNotEqualTo for a test which fails for a value of exactly zero with + one sign but passes for zero with the opposite sign. + +

      You can use a tolerance of 0.0 to assert the exact non-equality of finite doubles, + but sometimes isNotEqualTo(java.lang.Object) is preferable (note the different behaviours around + non-finite values and -0.0).

      +
      +
      Parameters:
      +
      tolerance - an exclusive lower bound on the difference between the subject and object + allowed by the check, which must be a non-negative finite value, i.e. not + Double.NaN, Double.POSITIVE_INFINITY, or negative, including -0.0
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public final void isEqualTo(@Nullable Object other)
      +
      Asserts that the subject is exactly equal to the given value, with equality defined as by + Double#equals. This method is not recommended when the code under test is doing + any kind of arithmetic: use isWithin(double) with a suitable tolerance in that case. (Remember + that the exact result of floating point arithmetic is sensitive to apparently trivial changes + such as replacing (a + b) + c with a + (b + c), and that unless + strictfp is in force even the result of (a + b) + c is sensitive to the JVM's choice + of precision for the intermediate result.) This method is recommended when the code under test + is specified as either copying a value without modification from its input or returning a + well-defined literal or constant value. + +

      Note: The assertion isEqualTo(0.0) fails for an input of -0.0, and + vice versa. For an assertion that passes for either 0.0 or -0.0, use isZero().

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public final void isNotEqualTo(@Nullable Object other)
      +
      Asserts that the subject is not exactly equal to the given value, with equality defined as by + Double#equals. See isEqualTo(java.lang.Object) for advice on when exact equality is recommended. + Use isNotWithin(double) for an assertion with a tolerance. + +

      Note: The assertion isNotEqualTo(0.0) passes for -0.0, and vice + versa. For an assertion that fails for either 0.0 or -0.0, use isNonZero().

      +
      +
      Overrides:
      +
      isNotEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      @Deprecated +public final void isEquivalentAccordingToCompareTo(@Nullable Double other)
      +
      Deprecated. +
      Use isWithin(double) or isEqualTo(java.lang.Object) instead (see documentation for advice).
      +
      +
      Description copied from class: ComparableSubject
      +
      Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0). + +

      Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object).

      +
      +
      Overrides:
      +
      isEquivalentAccordingToCompareTo in class ComparableSubject<Double>
      +
      +
      +
      +
    • +
    • +
      +

      isZero

      +
      +
      public final void isZero()
      +
      Asserts that the subject is zero (i.e. it is either 0.0 or -0.0).
      +
      +
      +
    • +
    • +
      +

      isNonZero

      +
      +
      public final void isNonZero()
      +
      Asserts that the subject is a non-null value other than zero (i.e. it is not 0.0, + -0.0 or null).
      +
      +
      +
    • +
    • +
      +

      isPositiveInfinity

      +
      +
      public final void isPositiveInfinity()
      +
      Asserts that the subject is Double.POSITIVE_INFINITY.
      +
      +
      +
    • +
    • +
      +

      isNegativeInfinity

      +
      +
      public final void isNegativeInfinity()
      +
      Asserts that the subject is Double.NEGATIVE_INFINITY.
      +
      +
      +
    • +
    • +
      +

      isNaN

      +
      +
      public final void isNaN()
      +
      Asserts that the subject is Double.NaN.
      +
      +
      +
    • +
    • +
      +

      isFinite

      +
      +
      public final void isFinite()
      +
      Asserts that the subject is finite, i.e. not Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, or Double.NaN.
      +
      +
      +
    • +
    • +
      +

      isNotNaN

      +
      +
      public final void isNotNaN()
      +
      Asserts that the subject is a non-null value other than Double.NaN (but it may be + Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY).
      +
      +
      +
    • +
    • +
      +

      isGreaterThan

      +
      +
      public final void isGreaterThan(int other)
      +
      Checks that the subject is greater than other. + +

      To check that the subject is greater than or equal to other, use isAtLeast(int).

      +
      +
      +
    • +
    • +
      +

      isLessThan

      +
      +
      public final void isLessThan(int other)
      +
      Checks that the subject is less than other. + +

      To check that the subject is less than or equal to other, use isAtMost(int) .

      +
      +
      +
    • +
    • +
      +

      isAtMost

      +
      +
      public final void isAtMost(int other)
      +
      Checks that the subject is less than or equal to other. + +

      To check that the subject is strictly less than other, use isLessThan(int).

      +
      +
      +
    • +
    • +
      +

      isAtLeast

      +
      +
      public final void isAtLeast(int other)
      +
      Checks that the subject is greater than or equal to other. + +

      To check that the subject is strictly greater than other, use isGreaterThan(int).

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Expect.html b/api/1.4.4/com/google/common/truth/Expect.html new file mode 100644 index 000000000..ae2b1bcc2 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Expect.html @@ -0,0 +1,233 @@ + + + + +Expect (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Expect

+
+ +
+
+
+
All Implemented Interfaces:
+
TestRule
+
+
+
@GwtIncompatible("JUnit4") +public final class Expect +extends StandardSubjectBuilder +implements TestRule
+
A TestRule that batches up all failures encountered during a test, and reports them all + together at the end (similar to ErrorCollector). It is also useful for making assertions + from other threads or from within callbacks whose exceptions would be swallowed or logged, rather + than propagated out to fail the test. (AssertJ has a similar feature called "soft assertions"; however, soft + assertions are not safe for concurrent use.) + +

Usage: + +

+ @Rule public final Expect expect = Expect.create();
+
+ ...
+
+   expect.that(results).containsExactly(...);
+   expect.that(errors).isEmpty();
+ 
+ + If both of the assertions above fail, the test will fail with an exception that contains + information about both. + +

Expect may be used concurrently from multiple threads. However, multithreaded tests + still require care: + +

    +
  • Expect has no way of knowing when all your other test threads are done. It simply + checks for failures when the main thread finishes executing the test method. Thus, you must + ensure that any background threads complete their assertions before then, or your test may + ignore their results. +
  • Assertion failures are not the only exceptions that may occur in other threads. For maximum + safety, multithreaded tests should check for such exceptions regardless of whether they use + Expect. (Typically, this means calling get() on any Future returned + by a method like executor.submit(...). It might also include checking for + unexpected log messages + or reading metrics that count failures.) If your tests already check for exceptions from a + thread, then that will cover any exception from plain assertThat. +
+ +

To record failures for the purpose of testing that an assertion fails when it should, see + ExpectFailure. + +

For more on this class, see the documentation page.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      create

      +
      +
      public static Expect create()
      +
      Creates a new instance.
      +
      +
      +
    • +
    • +
      +

      hasFailures

      +
      +
      public boolean hasFailures()
      +
      +
      +
    • +
    • +
      +

      apply

      +
      +
      public Statement apply(Statement base, + Description description)
      +
      +
      Specified by:
      +
      apply in interface TestRule
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ExpectFailure.SimpleSubjectBuilderCallback.html b/api/1.4.4/com/google/common/truth/ExpectFailure.SimpleSubjectBuilderCallback.html new file mode 100644 index 000000000..4ec55d97f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ExpectFailure.SimpleSubjectBuilderCallback.html @@ -0,0 +1,154 @@ + + + + +ExpectFailure.SimpleSubjectBuilderCallback (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A>

+
+
+
+
+
Enclosing class:
+
ExpectFailure
+
+
+
public static interface ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A>
+
A "functional interface" for expectFailureAbout() to invoke and + capture failures. + +

Java 8+ users should pass a lambda to .expectFailureAbout() rather than directly + implement this interface. Java 7+ users can define an @Rule ExpectFailure instance + instead, however if you prefer the .expectFailureAbout() pattern you can use this + interface to pass in an anonymous class.

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
     
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ExpectFailure.StandardSubjectBuilderCallback.html b/api/1.4.4/com/google/common/truth/ExpectFailure.StandardSubjectBuilderCallback.html new file mode 100644 index 000000000..430991430 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ExpectFailure.StandardSubjectBuilderCallback.html @@ -0,0 +1,154 @@ + + + + +ExpectFailure.StandardSubjectBuilderCallback (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ExpectFailure.StandardSubjectBuilderCallback

+
+
+
+
+
Enclosing class:
+
ExpectFailure
+
+
+
public static interface ExpectFailure.StandardSubjectBuilderCallback
+
A "functional interface" for expectFailure() to invoke and capture + failures. + +

Java 8+ users should pass a lambda to .expectFailure() rather than directly + implement this interface. Java 7+ users can define an @Rule ExpectFailure instance + instead, however if you prefer the .expectFailure() pattern you can use this interface + to pass in an anonymous class.

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
     
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ExpectFailure.html b/api/1.4.4/com/google/common/truth/ExpectFailure.html new file mode 100644 index 000000000..2f8b6905d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ExpectFailure.html @@ -0,0 +1,319 @@ + + + + +ExpectFailure (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ExpectFailure

+
+
java.lang.Object +
com.google.common.truth.ExpectFailure
+
+
+
+
+
All Implemented Interfaces:
+
TestRule
+
+
+
public final class ExpectFailure +extends Object
+
A utility for testing that assertions against a custom Subject fail when they should, + plus a utility to assert about parts of the resulting failure messages. + +

Usage: + +


+   AssertionError failure =
+       expectFailure(whenTesting -> whenTesting.that(cancelButton).isVisible());
+   assertThat(failure).factKeys().containsExactly("expected to be visible");
+
+ ...
+
+ private static AssertionError expectFailure(
+     ExpectFailure.SimpleSubjectBuilderCallback<UiElementSubject, UiElement> assertionCallback) {
+   return ExpectFailure.expectFailureAbout(uiElements(), assertionCallback);
+ }
+ 
+ + Or, if you can't use lambdas: + +
+ @Rule public final ExpectFailure expectFailure = new ExpectFailure();
+
+ ...
+
+     expectFailure.whenTesting().about(uiElements()).that(cancelButton).isVisible();
+     assertThat(failure).factKeys().containsExactly("expected to be visible");
+ 
+ +

ExpectFailure is similar to JUnit's assertThrows (JUnit + 4, JUnit + 5). We recommend it over assertThrows when you're testing a Truth subject because it + also checks that the assertion you're testing uses the supplied FailureStrategy and calls + FailureStrategy.fail(java.lang.AssertionError) only once.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ExpectFailure

      +
      +
      public ExpectFailure()
      +
      Creates a new instance for use as a @Rule. See the class documentation for details, and + consider using the lambda version instead.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Fact.html b/api/1.4.4/com/google/common/truth/Fact.html new file mode 100644 index 000000000..3cfca8b31 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Fact.html @@ -0,0 +1,224 @@ + + + + +Fact (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Fact

+
+
java.lang.Object +
com.google.common.truth.Fact
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public final class Fact +extends Object +implements Serializable
+
A string key-value pair in a failure message, such as "expected: abc" or "but was: xyz." + +

Most Truth users will never interact with this type. It appears in the Truth API only as a + parameter to methods like Subject.failWithActual(Fact, Fact...), which are used only by + custom Subject implementations. + +

If you are writing a custom Subject, see our tips on writing failure messages.

+
+
See Also:
+
+ +
+
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static Fact
    +
    fact(String key, + @Nullable Object value)
    +
    +
    Creates a fact with the given key and value, which will be printed in a format like "key: + value." The value is converted to a string by calling String.valueOf on it.
    +
    +
    static Fact
    + +
    +
    Creates a fact with no value, which will be printed in the format "key" (with no colon or + value).
    +
    + + +
    +
    Returns a simple string representation for the fact.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      fact

      +
      +
      public static Fact fact(String key, + @Nullable Object value)
      +
      Creates a fact with the given key and value, which will be printed in a format like "key: + value." The value is converted to a string by calling String.valueOf on it.
      +
      +
      +
    • +
    • +
      +

      simpleFact

      +
      +
      public static Fact simpleFact(String key)
      +
      Creates a fact with no value, which will be printed in the format "key" (with no colon or + value). + +

      In most cases, prefer key-value facts, which give Truth more flexibility + in how to format the fact for display. simpleFact is useful primarily for: + +

        +
      • messages from no-arg assertions. For example, isNotEmpty() would generate the + fact "expected not to be empty" +
      • prose that is part of a larger message. For example, contains() sometimes + displays facts like "expected to contain: ..." "but did not" "though it did + contain: ..." +
      +
      +
      +
    • +
    • +
      +

      toString

      +
      +
      public String toString()
      +
      Returns a simple string representation for the fact. While this is used in the output of + TruthFailureSubject, it's not used in normal failure messages, which automatically align facts + horizontally and indent multiline values.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/FailureMetadata.html b/api/1.4.4/com/google/common/truth/FailureMetadata.html new file mode 100644 index 000000000..67e43e3d6 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/FailureMetadata.html @@ -0,0 +1,133 @@ + + + + +FailureMetadata (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FailureMetadata

+
+
java.lang.Object +
com.google.common.truth.FailureMetadata
+
+
+
+
+
public final class FailureMetadata +extends Object
+
An opaque, immutable object containing state from the previous calls in the fluent assertion + chain. It appears primarily as a parameter to Subject constructors (and Subject.Factory methods), which should pass it to the superclass constructor and not otherwise + use or store it. In particular, users should not attempt to call Subject constructors or + Subject.Factory methods directly. Instead, they should use the appropriate factory + method: + +
    +
  • If you're writing a test: Truth.assertAbout(Subject.Factory).that(...) +
  • If you're creating a derived subject from within another subject: + check(...).about(...).that(...) +
  • If you're testing your subject to verify that assertions fail when they should: ExpectFailure +
+ +

(One exception: Implementations of CustomSubjectBuilder do directly call constructors, + using their CustomSubjectBuilder.metadata() method to get an instance to pass to the + constructor.)

+
+
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/FailureStrategy.html b/api/1.4.4/com/google/common/truth/FailureStrategy.html new file mode 100644 index 000000000..1f18bd02c --- /dev/null +++ b/api/1.4.4/com/google/common/truth/FailureStrategy.html @@ -0,0 +1,192 @@ + + + + +FailureStrategy (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface FailureStrategy

+
+
+
+
+
public interface FailureStrategy
+
Defines what to do when a check fails. + +

This type does not appear directly in a fluent assertion chain, but you choose a + FailureStrategy by choosing which method to call at the beginning of the chain. + +

Built-in strategies include: + +

+ +

For more information about the fluent chain, see this + FAQ entry. + +

For people extending Truth

+ +

Custom FailureStrategy implementations are unusual. If you think you need one, + consider these alternatives: + +

    +
  • To test a custom subject, use ExpectFailure. +
  • To create subjects for other objects related to your actual value (for chained assertions), + use Subject.check(String, Object...), which preserves the existing + FailureStrategy and other context. +
  • To return a no-op subject after a previous assertion has failed (for chained assertions), + use Subject.ignoreCheck() +
+ +

When you really do need to create your own strategy, rather than expose your + FailureStrategy instance to users, expose a StandardSubjectBuilder instance using StandardSubjectBuilder.forCustomFailureStrategy(STRATEGY).

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Handles a failure.
    +
    +
    +
    +
    +
    +
  • +
+
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/FloatSubject.TolerantFloatComparison.html b/api/1.4.4/com/google/common/truth/FloatSubject.TolerantFloatComparison.html new file mode 100644 index 000000000..cd33e4964 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/FloatSubject.TolerantFloatComparison.html @@ -0,0 +1,213 @@ + + + + +FloatSubject.TolerantFloatComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FloatSubject.TolerantFloatComparison

+
+
java.lang.Object +
com.google.common.truth.FloatSubject.TolerantFloatComparison
+
+
+
+
+
Enclosing class:
+
FloatSubject
+
+
+
public abstract static class FloatSubject.TolerantFloatComparison +extends Object
+
A partially specified check about an approximate relationship to a float subject using + a tolerance.
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    boolean
    +
    equals(@Nullable Object o)
    +
    +
    Deprecated. +
    Object.equals(Object) is not supported on TolerantFloatComparison.
    +
    +
    +
    int
    + +
    +
    Deprecated. +
    Object.hashCode() is not supported on TolerantFloatComparison
    +
    +
    +
    abstract void
    +
    of(float expectedFloat)
    +
    +
    Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      of

      +
      +
      public abstract void of(float expectedFloat)
      +
      Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was. The subject and + tolerance are specified earlier in the fluent call chain.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +public boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported on TolerantFloatComparison. If you + meant to compare floats, use of(float) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported on TolerantFloatComparison
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/FloatSubject.html b/api/1.4.4/com/google/common/truth/FloatSubject.html new file mode 100644 index 000000000..0152ddb7f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/FloatSubject.html @@ -0,0 +1,486 @@ + + + + +FloatSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FloatSubject

+
+ +
+
+
+
public final class FloatSubject +extends ComparableSubject<Float>
+
Propositions for Float subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isWithin

      +
      +
      public FloatSubject.TolerantFloatComparison isWithin(float tolerance)
      +
      Prepares for a check that the subject is a finite number within the given tolerance of an + expected value that will be provided in the next call in the fluent chain. + +

      The check will fail if either the subject or the object is Float.POSITIVE_INFINITY, + Float.NEGATIVE_INFINITY, or Float.NaN. To check for those values, use isPositiveInfinity(), isNegativeInfinity(), isNaN(), or (with more generality) + isEqualTo(java.lang.Object). + +

      The check will pass if both values are zero, even if one is 0.0f and the other is + -0.0f. Use #isEqualTo to assert that a value is exactly 0.0f or that it + is exactly -0.0f. + +

      You can use a tolerance of 0.0f to assert the exact equality of finite floats, but + often isEqualTo(java.lang.Object) is preferable (note the different behaviours around non-finite values + and -0.0f). See the documentation on isEqualTo(java.lang.Object) for advice on when exact + equality assertions are appropriate.

      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the subject and object + allowed by the check, which must be a non-negative finite value, i.e. not Float.NaN, Float.POSITIVE_INFINITY, or negative, including -0.0f
      +
      +
      +
      +
    • +
    • +
      +

      isNotWithin

      +
      +
      public FloatSubject.TolerantFloatComparison isNotWithin(float tolerance)
      +
      Prepares for a check that the subject is a finite number not within the given tolerance of an + expected value that will be provided in the next call in the fluent chain. + +

      The check will fail if either the subject or the object is Float.POSITIVE_INFINITY, + Float.NEGATIVE_INFINITY, or Float.NaN. See isFinite(), isNotNaN(), or isNotEqualTo(java.lang.Object) for checks with other behaviours. + +

      The check will fail if both values are zero, even if one is 0.0f and the other is + -0.0f. Use #isNotEqualTo for a test which fails for a value of exactly zero + with one sign but passes for zero with the opposite sign. + +

      You can use a tolerance of 0.0f to assert the exact non-equality of finite floats, + but sometimes isNotEqualTo(java.lang.Object) is preferable (note the different behaviours around + non-finite values and -0.0f).

      +
      +
      Parameters:
      +
      tolerance - an exclusive lower bound on the difference between the subject and object + allowed by the check, which must be a non-negative finite value, i.e. not + Float.NaN, Float.POSITIVE_INFINITY, or negative, including -0.0f
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public final void isEqualTo(@Nullable Object other)
      +
      Asserts that the subject is exactly equal to the given value, with equality defined as by + Float#equals. This method is not recommended when the code under test is doing + any kind of arithmetic: use isWithin(float) with a suitable tolerance in that case. (Remember + that the exact result of floating point arithmetic is sensitive to apparently trivial changes + such as replacing (a + b) + c with a + (b + c), and that unless + strictfp is in force even the result of (a + b) + c is sensitive to the JVM's choice + of precision for the intermediate result.) This method is recommended when the code under test + is specified as either copying a value without modification from its input or returning a + well-defined literal or constant value. + +

      Note: The assertion isEqualTo(0.0f) fails for an input of -0.0f, and + vice versa. For an assertion that passes for either 0.0f or -0.0f, use isZero().

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public final void isNotEqualTo(@Nullable Object other)
      +
      Asserts that the subject is not exactly equal to the given value, with equality defined as by + Float#equals. See isEqualTo(java.lang.Object) for advice on when exact equality is recommended. + Use isNotWithin(float) for an assertion with a tolerance. + +

      Note: The assertion isNotEqualTo(0.0f) passes for -0.0f, and vice + versa. For an assertion that fails for either 0.0f or -0.0f, use isNonZero().

      +
      +
      Overrides:
      +
      isNotEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      @Deprecated +public final void isEquivalentAccordingToCompareTo(@Nullable Float other)
      +
      Deprecated. +
      Use isWithin(float) or isEqualTo(java.lang.Object) instead (see documentation for advice).
      +
      +
      Description copied from class: ComparableSubject
      +
      Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0). + +

      Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object).

      +
      +
      Overrides:
      +
      isEquivalentAccordingToCompareTo in class ComparableSubject<Float>
      +
      +
      +
      +
    • +
    • +
      +

      isZero

      +
      +
      public final void isZero()
      +
      Asserts that the subject is zero (i.e. it is either 0.0f or -0.0f).
      +
      +
      +
    • +
    • +
      +

      isNonZero

      +
      +
      public final void isNonZero()
      +
      Asserts that the subject is a non-null value other than zero (i.e. it is not 0.0f, + -0.0f or null).
      +
      +
      +
    • +
    • +
      +

      isPositiveInfinity

      +
      +
      public final void isPositiveInfinity()
      +
      Asserts that the subject is Float.POSITIVE_INFINITY.
      +
      +
      +
    • +
    • +
      +

      isNegativeInfinity

      +
      +
      public final void isNegativeInfinity()
      +
      Asserts that the subject is Float.NEGATIVE_INFINITY.
      +
      +
      +
    • +
    • +
      +

      isNaN

      +
      +
      public final void isNaN()
      +
      Asserts that the subject is Float.NaN.
      +
      +
      +
    • +
    • +
      +

      isFinite

      +
      +
      public final void isFinite()
      +
      Asserts that the subject is finite, i.e. not Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, or Float.NaN.
      +
      +
      +
    • +
    • +
      +

      isNotNaN

      +
      +
      public final void isNotNaN()
      +
      Asserts that the subject is a non-null value other than Float.NaN (but it may be Float.POSITIVE_INFINITY or Float.NEGATIVE_INFINITY).
      +
      +
      +
    • +
    • +
      +

      isGreaterThan

      +
      +
      public final void isGreaterThan(int other)
      +
      Checks that the subject is greater than other. + +

      To check that the subject is greater than or equal to other, use isAtLeast(int).

      +
      +
      +
    • +
    • +
      +

      isLessThan

      +
      +
      public final void isLessThan(int other)
      +
      Checks that the subject is less than other. + +

      To check that the subject is less than or equal to other, use isAtMost(int) .

      +
      +
      +
    • +
    • +
      +

      isAtMost

      +
      +
      public final void isAtMost(int other)
      +
      Checks that the subject is less than or equal to other. + +

      To check that the subject is strictly less than other, use isLessThan(int).

      +
      +
      +
    • +
    • +
      +

      isAtLeast

      +
      +
      public final void isAtLeast(int other)
      +
      Checks that the subject is greater than or equal to other. + +

      To check that the subject is strictly greater than other, use isGreaterThan(int).

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/GuavaOptionalSubject.html b/api/1.4.4/com/google/common/truth/GuavaOptionalSubject.html new file mode 100644 index 000000000..a878541f1 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/GuavaOptionalSubject.html @@ -0,0 +1,209 @@ + + + + +GuavaOptionalSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GuavaOptionalSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.GuavaOptionalSubject
+
+
+
+
+
+
public final class GuavaOptionalSubject +extends Subject
+
Propositions for Guava Optional subjects. + +

If you are looking for a java.util.Optional subject, see OptionalSubject.

+
+
Author:
+
Christian Gruber
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isPresent

      +
      +
      public void isPresent()
      +
      Fails if the Optional<T> is absent or the subject is null.
      +
      +
      +
    • +
    • +
      +

      isAbsent

      +
      +
      public void isAbsent()
      +
      Fails if the Optional<T> is present or the subject is null.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      +
      public void hasValue(@Nullable Object expected)
      +
      Fails if the Optional<T> does not have the given value or the subject is null. + +

      To make more complex assertions on the optional's value split your assertion in two: + +

      
      + assertThat(myOptional).isPresent();
      + assertThat(myOptional.get()).contains("foo");
      + 
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/IntStreamSubject.html b/api/1.4.4/com/google/common/truth/IntStreamSubject.html new file mode 100644 index 000000000..93a5f377d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/IntStreamSubject.html @@ -0,0 +1,543 @@ + + + + +IntStreamSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IntStreamSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.IntStreamSubject
+
+
+
+
+
+
public final class IntStreamSubject +extends Subject
+
Propositions for IntStream subjects. + +

Note: the wrapped stream will be drained immediately into a private collection to + provide more readable failure messages. You should not use this class if you intend to leave the + stream un-consumed or if the stream is very large or infinite. + +

If you intend to make multiple assertions on the same stream of data you should instead first + collect the contents of the stream into a collection, and then assert directly on that. + +

For very large or infinite streams you may want to first limit the + stream before asserting on it.

+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      intStreams

      +
      +
      @Deprecated +public static Subject.Factory<IntStreamSubject,IntStream> intStreams()
      +
      Deprecated. +
      Instead of about(intStreams()).that(...), use just that(...). + Similarly, instead of assertAbout(intStreams()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(intStreams()).that(stream)..... Now, you can perform assertions + like that without the about(...) call.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the subject is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public void isNotEmpty()
      +
      Fails if the subject is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public void hasSize(int expectedSize)
      +
      Fails if the subject does not have the given size. + +

      If you'd like to check that your stream contains more than Integer.MAX_VALUE + elements, use assertThat(stream.count()).isEqualTo(...).

      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(int element)
      +
      Fails if the subject does not contain the given element.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(int element)
      +
      Fails if the subject contains the given element.
      +
      +
      +
    • +
    • +
      +

      containsNoDuplicates

      +
      +
      public void containsNoDuplicates()
      +
      Fails if the subject contains duplicate elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyOf

      +
      +
      public void containsAnyOf(int first, + int second, + int... rest)
      +
      Fails if the subject does not contain at least one of the given elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public void containsAnyIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain at least one of the given elements.
      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeast(int first, + int second, + int... rest)
      +
      Fails if the subject does not contain all of the given elements. If an element appears more + than once in the given elements, then it must appear at least that number of times in the + actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastElementsIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain all of the given elements. If an element appears more + than once in the given elements, then it must appear at least that number of times in the + actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactly(int @Nullable ... varargs)
      +
      Fails if the subject does not contain exactly the given elements. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyElementsIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain exactly the given elements. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsNoneOf

      +
      +
      public void containsNoneOf(int first, + int second, + int... rest)
      +
      Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this + test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public void containsNoneIn(@Nullable Iterable<?> excluded)
      +
      Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this + test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder()
      +
      Fails if the subject is not strictly ordered, according to the natural ordering of its + elements. Strictly ordered means that each element in the stream is strictly greater + than the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder(Comparator<? super Integer> comparator)
      +
      Fails if the subject is not strictly ordered, according to the given comparator. Strictly + ordered means that each element in the stream is strictly greater than the element that + preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder()
      +
      Fails if the subject is not ordered, according to the natural ordering of its elements. Ordered + means that each element in the stream is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder(Comparator<? super Integer> comparator)
      +
      Fails if the subject is not ordered, according to the given comparator. Ordered means that each + element in the stream is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/IntegerSubject.TolerantIntegerComparison.html b/api/1.4.4/com/google/common/truth/IntegerSubject.TolerantIntegerComparison.html new file mode 100644 index 000000000..ac4e13307 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/IntegerSubject.TolerantIntegerComparison.html @@ -0,0 +1,217 @@ + + + + +IntegerSubject.TolerantIntegerComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IntegerSubject.TolerantIntegerComparison

+
+
java.lang.Object +
com.google.common.truth.IntegerSubject.TolerantIntegerComparison
+
+
+
+
+
Enclosing class:
+
IntegerSubject
+
+
+
public abstract static class IntegerSubject.TolerantIntegerComparison +extends Object
+
A partially specified check about an approximate relationship to a int subject using a + tolerance.
+
+
Since:
+
1.2
+
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    boolean
    +
    equals(@Nullable Object o)
    +
    +
    Deprecated. +
    Object.equals(Object) is not supported on TolerantIntegerComparison.
    +
    +
    +
    int
    + +
    +
    Deprecated. +
    Object.hashCode() is not supported on TolerantIntegerComparison
    +
    +
    +
    abstract void
    +
    of(int expectedInteger)
    +
    +
    Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      of

      +
      +
      public abstract void of(int expectedInteger)
      +
      Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was. The subject and + tolerance are specified earlier in the fluent call chain.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +public boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported on TolerantIntegerComparison. If + you meant to compare ints, use of(int) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported on TolerantIntegerComparison
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/IntegerSubject.html b/api/1.4.4/com/google/common/truth/IntegerSubject.html new file mode 100644 index 000000000..ef2bdeaed --- /dev/null +++ b/api/1.4.4/com/google/common/truth/IntegerSubject.html @@ -0,0 +1,285 @@ + + + + +IntegerSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IntegerSubject

+
+ +
+
+
+
public class IntegerSubject +extends ComparableSubject<Integer>
+
Propositions for Integer subjects.
+
+
Author:
+
David Saff, Christian Gruber (cgruber@israfil.net), Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      IntegerSubject

      +
      +
      protected IntegerSubject(FailureMetadata metadata, + @Nullable Integer actual)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isWithin

      +
      +
      public IntegerSubject.TolerantIntegerComparison isWithin(int tolerance)
      +
      Prepares for a check that the subject is a number within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the subject and object + allowed by the check, which must be a non-negative value.
      +
      Since:
      +
      1.2
      +
      +
      +
      +
    • +
    • +
      +

      isNotWithin

      +
      +
      public IntegerSubject.TolerantIntegerComparison isNotWithin(int tolerance)
      +
      Prepares for a check that the subject is a number not within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
      +
      +
      Parameters:
      +
      tolerance - an exclusive lower bound on the difference between the subject and object + allowed by the check, which must be a non-negative value.
      +
      Since:
      +
      1.2
      +
      +
      +
      +
    • +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      @Deprecated +public final void isEquivalentAccordingToCompareTo(@Nullable Integer other)
      +
      Deprecated. +
      Use Subject.isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality.
      +
      +
      Description copied from class: ComparableSubject
      +
      Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0). + +

      Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object).

      +
      +
      Overrides:
      +
      isEquivalentAccordingToCompareTo in class ComparableSubject<Integer>
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/IterableSubject.UsingCorrespondence.html b/api/1.4.4/com/google/common/truth/IterableSubject.UsingCorrespondence.html new file mode 100644 index 000000000..e80a4f875 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/IterableSubject.UsingCorrespondence.html @@ -0,0 +1,598 @@ + + + + +IterableSubject.UsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IterableSubject.UsingCorrespondence<A extends @Nullable Object,E extends @Nullable Object>

+
+
java.lang.Object +
com.google.common.truth.IterableSubject.UsingCorrespondence<A,E>
+
+
+
+
+
Direct Known Subclasses:
+
PrimitiveDoubleArraySubject.DoubleArrayAsIterable, PrimitiveFloatArraySubject.FloatArrayAsIterable
+
+
+
Enclosing class:
+
IterableSubject
+
+
+
public static class IterableSubject.UsingCorrespondence<A extends @Nullable Object,E extends @Nullable Object> +extends Object
+
A partially specified check in which the actual elements (normally the elements of the Iterable under test) are compared to expected elements using a Correspondence. The + expected elements are of type E. Call methods on this object to actually execute the + check.
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    contains(E expected)
    +
    +
    Checks that the subject contains at least one element that corresponds to the given expected + element.
    +
    +
    void
    +
    containsAnyIn(E[] expected)
    +
    +
    Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
    +
    +
    void
    +
    containsAnyIn(Iterable<? extends E> expected)
    +
    +
    Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
    +
    +
    final void
    +
    containsAnyOf(E first, + E second, + E @Nullable ... rest)
    +
    +
    Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
    +
    +
    final Ordered
    +
    containsAtLeast(E first, + E second, + E @Nullable ... rest)
    +
    +
    Checks that the subject contains elements that correspond to all the expected elements, i.e.
    +
    + + +
    +
    Checks that the subject contains elements that correspond to all the expected elements, i.e.
    +
    + +
    containsAtLeastElementsIn(Iterable<? extends E> expected)
    +
    +
    Checks that the subject contains elements that correspond to all the expected elements, i.e.
    +
    +
    final Ordered
    +
    containsExactly(@Nullable E @Nullable ... expected)
    +
    +
    Checks that subject contains exactly elements that correspond to the expected elements, i.e.
    +
    + +
    containsExactlyElementsIn(E @Nullable [] expected)
    +
    +
    Checks that subject contains exactly elements that correspond to the expected elements, i.e.
    +
    + +
    containsExactlyElementsIn(@Nullable Iterable<? extends E> expected)
    +
    +
    Checks that subject contains exactly elements that correspond to the expected elements, i.e.
    +
    +
    void
    +
    containsNoneIn(E[] excluded)
    +
    +
    Checks that the subject contains no elements that correspond to any of the given elements.
    +
    +
    void
    +
    containsNoneIn(Iterable<? extends E> excluded)
    +
    +
    Checks that the subject contains no elements that correspond to any of the given elements.
    +
    +
    final void
    +
    containsNoneOf(E firstExcluded, + E secondExcluded, + E @Nullable ... restOfExcluded)
    +
    +
    Checks that the subject contains no elements that correspond to any of the given elements.
    +
    + +
    displayingDiffsPairedBy(Function<? super A,?> actualKeyFunction, + Function<? super E,?> expectedKeyFunction)
    +
    +
    Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
    +
    + +
    displayingDiffsPairedBy(Function<? super E,?> keyFunction)
    +
    +
    Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
    +
    +
    void
    +
    doesNotContain(E excluded)
    +
    +
    Checks that none of the actual elements correspond to the given element.
    +
    +
    final boolean
    +
    equals(@Nullable Object o)
    +
    +
    Deprecated. +
    Object.equals(Object) is not supported on Truth subjects or intermediate + classes.
    +
    +
    +
    final int
    + +
    +
    Deprecated. +
    Object.hashCode() is not supported on Truth types.
    +
    +
    +
    final String
    + +
    +
    Deprecated. +
    Object.toString() is not supported on Truth subjects.
    +
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      equals

      +
      +
      @Deprecated +public final boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported on Truth subjects or intermediate + classes. If you are writing a test assertion (actual vs. expected), use methods liks + containsExactlyElementsIn(Iterable) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public final int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported on Truth types.
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      toString

      +
      +
      @Deprecated +public final String toString()
      +
      Deprecated. +
      Object.toString() is not supported on Truth subjects.
      +
      +
      +
      Overrides:
      +
      toString in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      displayingDiffsPairedBy

      +
      +
      public IterableSubject.UsingCorrespondence<A,E> displayingDiffsPairedBy(Function<? super E,?> keyFunction)
      +
      Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails. For example: + +
      
      + assertThat(actualRecords)
      +     .comparingElementsUsing(RECORD_CORRESPONDENCE)
      +     .displayingDiffsPairedBy(MyRecord::getId)
      +     .containsExactlyElementsIn(expectedRecords);
      + 
      + +

      Important: The {code keyFunction} function must be able to accept both the actual + and the unexpected elements, i.e. it must satisfy Function<? super A, ?> as well as + Function<? super E, ?>. If that constraint is not met then a subsequent method may + throw ClassCastException. Use the two-parameter overload if you need to specify + different key functions for the actual and expected elements. + +

      On assertions where it makes sense to do so, the elements are paired as follows: they are + keyed by keyFunction, and if an unexpected element and a missing element have the + same non-null key then they are paired up. (Elements with null keys are not paired.) The + failure message will show paired elements together, and a diff will be shown if the Correspondence.formatDiff(A, E) method returns non-null. + +

      The expected elements given in the assertion should be uniquely keyed by + keyFunction. If multiple missing elements have the same key then the pairing will be + skipped. + +

      Useful key functions will have the property that key equality is less strict than the + correspondence, i.e. given actual and expected values with keys + actualKey and expectedKey, if correspondence.compare(actual, expected) is + true then it is guaranteed that actualKey is equal to expectedKey, but there + are cases where actualKey is equal to expectedKey but + correspondence.compare(actual, expected) is false. + +

      If the apply method on the key function throws an exception then the element will + be treated as if it had a null key and not paired. (The first such exception will be noted in + the failure message.) + +

      Note that calling this method makes no difference to whether a test passes or fails, it + just improves the message if it fails.

      +
      +
      +
    • +
    • +
      +

      displayingDiffsPairedBy

      +
      +
      public IterableSubject.UsingCorrespondence<A,E> displayingDiffsPairedBy(Function<? super A,?> actualKeyFunction, + Function<? super E,?> expectedKeyFunction)
      +
      Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails. For example: + +
      
      + assertThat(actualFoos)
      +     .comparingElementsUsing(FOO_BAR_CORRESPONDENCE)
      +     .displayingDiffsPairedBy(Foo::getId, Bar::getFooId)
      +     .containsExactlyElementsIn(expectedBar);
      + 
      + +

      On assertions where it makes sense to do so, the elements are paired as follows: the + unexpected elements are keyed by actualKeyFunction, the missing elements are keyed by + expectedKeyFunction, and if an unexpected element and a missing element have the same + non-null key then they are paired up. (Elements with null keys are not paired.) The failure + message will show paired elements together, and a diff will be shown if the Correspondence.formatDiff(A, E) method returns non-null. + +

      The expected elements given in the assertion should be uniquely keyed by + expectedKeyFunction. If multiple missing elements have the same key then the pairing will be + skipped. + +

      Useful key functions will have the property that key equality is less strict than the + correspondence, i.e. given actual and expected values with keys + actualKey and expectedKey, if correspondence.compare(actual, expected) is + true then it is guaranteed that actualKey is equal to expectedKey, but there + are cases where actualKey is equal to expectedKey but + correspondence.compare(actual, expected) is false. + +

      If the apply method on either of the key functions throws an exception then the + element will be treated as if it had a null key and not paired. (The first such exception + will be noted in the failure message.) + +

      Note that calling this method makes no difference to whether a test passes or fails, it + just improves the message if it fails.

      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(E expected)
      +
      Checks that the subject contains at least one element that corresponds to the given expected + element.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(E excluded)
      +
      Checks that none of the actual elements correspond to the given element.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @SafeVarargs +@CanIgnoreReturnValue +public final Ordered containsExactly(@Nullable E @Nullable ... expected)
      +
      Checks that subject contains exactly elements that correspond to the expected elements, i.e. + that there is a 1:1 mapping between the actual elements and the expected elements where each + pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. + +

      To test that the iterable contains the elements corresponding to those in an array, prefer + containsExactlyElementsIn(Object[]). It makes clear that the given array is a list + of elements, not an element itself. This helps human readers and avoids a compiler warning.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyElementsIn(@Nullable Iterable<? extends E> expected)
      +
      Checks that subject contains exactly elements that correspond to the expected elements, i.e. + that there is a 1:1 mapping between the actual elements and the expected elements where each + pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyElementsIn(E @Nullable [] expected)
      +
      Checks that subject contains exactly elements that correspond to the expected elements, i.e. + that there is a 1:1 mapping between the actual elements and the expected elements where each + pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @SafeVarargs +@CanIgnoreReturnValue +public final Ordered containsAtLeast(E first, + E second, + E @Nullable ... rest)
      +
      Checks that the subject contains elements that correspond to all the expected elements, i.e. + that there is a 1:1 mapping between any subset of the actual elements and the expected + elements where each pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The elements must appear in the given order within the + subject, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastElementsIn(Iterable<? extends E> expected)
      +
      Checks that the subject contains elements that correspond to all the expected elements, i.e. + that there is a 1:1 mapping between any subset of the actual elements and the expected + elements where each pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The elements must appear in the given order within the + subject, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastElementsIn(E[] expected)
      +
      Checks that the subject contains elements that correspond to all the expected elements, i.e. + that there is a 1:1 mapping between any subset of the actual elements and the expected + elements where each pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The elements must appear in the given order within the + subject, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAnyOf

      +
      +
      @SafeVarargs +public final void containsAnyOf(E first, + E second, + E @Nullable ... rest)
      +
      Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public void containsAnyIn(Iterable<? extends E> expected)
      +
      Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public void containsAnyIn(E[] expected)
      +
      Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
      +
      +
      +
    • +
    • +
      +

      containsNoneOf

      +
      +
      @SafeVarargs +public final void containsNoneOf(E firstExcluded, + E secondExcluded, + E @Nullable ... restOfExcluded)
      +
      Checks that the subject contains no elements that correspond to any of the given elements. + (Duplicates are irrelevant to this test, which fails if any of the subject elements + correspond to any of the given elements.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public void containsNoneIn(Iterable<? extends E> excluded)
      +
      Checks that the subject contains no elements that correspond to any of the given elements. + (Duplicates are irrelevant to this test, which fails if any of the subject elements + correspond to any of the given elements.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public void containsNoneIn(E[] excluded)
      +
      Checks that the subject contains no elements that correspond to any of the given elements. + (Duplicates are irrelevant to this test, which fails if any of the subject elements + correspond to any of the given elements.)
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/IterableSubject.html b/api/1.4.4/com/google/common/truth/IterableSubject.html new file mode 100644 index 000000000..9327a8f6e --- /dev/null +++ b/api/1.4.4/com/google/common/truth/IterableSubject.html @@ -0,0 +1,816 @@ + + + + +IterableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IterableSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.IterableSubject
+
+
+
+
+
+
Direct Known Subclasses:
+
IterableOfProtosSubject, MultisetSubject
+
+
+
public class IterableSubject +extends Subject
+
Propositions for Iterable subjects. + +

Note: + +

    +
  • Assertions may iterate through the given Iterable more than once. If you have an + unusual implementation of Iterable which does not support multiple iterations + (sometimes known as a "one-shot iterable"), you must copy your iterable into a collection + which does (e.g. ImmutableList.copyOf(iterable) or, if your iterable may contain + null, newArrayList(iterable)). If you don't, you may see surprising failures. +
  • Assertions may also require that the elements in the given Iterable implement + Object.hashCode() correctly. +
+
+
Author:
+
Kurt Alfred Kluever, Pete Gillin
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      IterableSubject

      +
      +
      protected IterableSubject(FailureMetadata metadata, + @Nullable Iterable<?> iterable)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      Description copied from class: Subject
      +
      Fails if the subject is not equal to the given object. For the purposes of this comparison, two + objects are equal if any of the following is true: + +
        +
      • they are equal according to Objects.equal(java.lang.Object, java.lang.Object) +
      • they are arrays and are considered equal by the appropriate Arrays.equals(long[], long[]) + overload +
      • they are boxed integer types (Byte, Short, Character, + Integer, or Long) and they are numerically equal when converted to Long. +
      • the actual value is a boxed floating-point type (Double or Float), the + expected value is an Integer, and the two are numerically equal when converted to + Double. (This allows assertThat(someDouble).isEqualTo(0) to pass.) +
      + +

      Note: This method does not test the Object.equals(java.lang.Object) implementation itself; it + assumes that method is functioning correctly according to its contract. Testing an + equals implementation requires a utility such as guava-testlib's EqualsTester. + +

      In some cases, this method might not even call equals. It may instead perform other + tests that will return the same result as long as equals is implemented according to + the contract for its type.

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the subject is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the subject is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public final void hasSize(int expectedSize)
      +
      Fails if the subject does not have the given size.
      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public final void contains(@Nullable Object element)
      +
      Checks (with a side-effect failure) that the subject contains the supplied item.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public final void doesNotContain(@Nullable Object element)
      +
      Checks (with a side-effect failure) that the subject does not contain the supplied item.
      +
      +
      +
    • +
    • +
      +

      containsNoDuplicates

      +
      +
      public final void containsNoDuplicates()
      +
      Checks that the subject does not contain duplicate elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyOf

      +
      +
      public final void containsAnyOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Checks that the subject contains at least one of the provided objects or fails.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public final void containsAnyIn(@Nullable Iterable<?> expected)
      +
      Checks that the subject contains at least one of the objects contained in the provided + collection or fails.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public final void containsAnyIn(@Nullable Object[] expected)
      +
      Checks that the subject contains at least one of the objects contained in the provided array or + fails.
      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeast(@Nullable Object firstExpected, + @Nullable Object secondExpected, + @Nullable Object @Nullable ... restOfExpected)
      +
      Checks that the actual iterable contains at least all the expected elements or fails. If an + element appears more than once in the expected elements to this call then it must appear at + least that number of times in the actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeastElementsIn(@Nullable Iterable<?> expectedIterable)
      +
      Checks that the actual iterable contains at least all the expected elements or fails. If an + element appears more than once in the expected elements then it must appear at least that + number of times in the actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeastElementsIn(@Nullable Object[] expected)
      +
      Checks that the actual iterable contains at least all the expected elements or fails. If an + element appears more than once in the expected elements then it must appear at least that + number of times in the actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactly(@Nullable Object @Nullable ... varargs)
      +
      Checks that a subject contains exactly the provided objects or fails. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. + +

      To test that the iterable contains the same elements as an array, prefer containsExactlyElementsIn(Object[]). It makes clear that the given array is a list of + elements, not an element itself. This helps human readers and avoids a compiler warning.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactlyElementsIn(@Nullable Iterable<?> expected)
      +
      Checks that a subject contains exactly the provided objects or fails. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + Iterable parameter asserts that the object must likewise be duplicated exactly 3 times in the + subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactlyElementsIn(@Nullable Object @Nullable [] expected)
      +
      Checks that a subject contains exactly the provided objects or fails. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the array + parameter asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsNoneOf

      +
      +
      public final void containsNoneOf(@Nullable Object firstExcluded, + @Nullable Object secondExcluded, + @Nullable Object @Nullable ... restOfExcluded)
      +
      Checks that an actual iterable contains none of the excluded objects or fails. (Duplicates are + irrelevant to this test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public final void containsNoneIn(@Nullable Iterable<?> excluded)
      +
      Checks that the actual iterable contains none of the elements contained in the excluded + iterable or fails. (Duplicates are irrelevant to this test, which fails if any of the actual + elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public final void containsNoneIn(@Nullable Object[] excluded)
      +
      Checks that the actual iterable contains none of the elements contained in the excluded array + or fails. (Duplicates are irrelevant to this test, which fails if any of the actual elements + equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder()
      +
      Fails if the iterable is not strictly ordered, according to the natural ordering of its + elements. Strictly ordered means that each element in the iterable is strictly greater + than the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public final void isInStrictOrder(Comparator<?> comparator)
      +
      Fails if the iterable is not strictly ordered, according to the given comparator. Strictly + ordered means that each element in the iterable is strictly greater than the element + that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder()
      +
      Fails if the iterable is not ordered, according to the natural ordering of its elements. + Ordered means that each element in the iterable is greater than or equal to the element that + preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public final void isInOrder(Comparator<?> comparator)
      +
      Fails if the iterable is not ordered, according to the given comparator. Ordered means that + each element in the iterable is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    • +
      +

      isNoneOf

      +
      +
      @Deprecated +public void isNoneOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Deprecated. + +
      +
      Description copied from class: Subject
      +
      Fails if the subject is equal to any of the given elements.
      +
      +
      Overrides:
      +
      isNoneOf in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotIn

      +
      +
      @Deprecated +public void isNotIn(@Nullable Iterable<?> iterable)
      +
      Deprecated. +
      You probably meant to call containsNoneIn(java.lang.Iterable<?>) instead.
      +
      +
      Description copied from class: Subject
      +
      Fails if the subject is equal to any element in the given iterable.
      +
      +
      Overrides:
      +
      isNotIn in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      comparingElementsUsing

      +
      +
      public <A extends @Nullable Object, +E extends @Nullable Object> +IterableSubject.UsingCorrespondence<A,E> comparingElementsUsing(Correspondence<? super A,? super E> correspondence)
      +
      Starts a method chain for a check in which the actual elements (i.e. the elements of the Iterable under test) are compared to expected elements using the given Correspondence. + The actual elements must be of type A, the expected elements must be of type E. + The check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualIterable).comparingElementsUsing(correspondence).contains(expected);
      + 
      + + where actualIterable is an Iterable<A> (or, more generally, an + Iterable<? extends A>), correspondence is a Correspondence<A, E>, and + expected is an E. + +

      Any of the methods on the returned object may throw ClassCastException if they + encounter an actual element that is not of type A.

      +
      +
      +
    • +
    • +
      +

      formattingDiffsUsing

      +
      +
      public <T extends @Nullable Object> +IterableSubject.UsingCorrespondence<T,T> formattingDiffsUsing(Correspondence.DiffFormatter<? super T,? super T> formatter)
      +
      Starts a method chain for a check in which failure messages may use the given Correspondence.DiffFormatter to describe the difference between an actual elements (i.e. an element of the + Iterable under test) and the element it is expected to be equal to, but isn't. The + actual and expected elements must be of type T. The check is actually executed by + continuing the method chain. You may well want to use IterableSubject.UsingCorrespondence.displayingDiffsPairedBy(com.google.common.base.Function<? super E, ?>) to specify how the elements should be paired up + for diffing. For example: + +
      
      + assertThat(actualFoos)
      +     .formattingDiffsUsing(FooTestHelper::formatDiff)
      +     .displayingDiffsPairedBy(Foo::getId)
      +     .containsExactly(foo1, foo2, foo3);
      + 
      + + where actualFoos is an Iterable<Foo>, FooTestHelper.formatDiff is a + static method taking two Foo arguments and returning a String, + Foo.getId is a no-arg instance method returning some kind of ID, and foo1, {code + foo2}, and foo3 are Foo instances. + +

      Unlike when using comparingElementsUsing(com.google.common.truth.Correspondence<? super A, ? super E>), the elements are still compared using + object equality, so this method does not affect whether a test passes or fails. + +

      Any of the methods on the returned object may throw ClassCastException if they + encounter an actual element that is not of type T.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/LongStreamSubject.html b/api/1.4.4/com/google/common/truth/LongStreamSubject.html new file mode 100644 index 000000000..c29b20b81 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/LongStreamSubject.html @@ -0,0 +1,543 @@ + + + + +LongStreamSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LongStreamSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.LongStreamSubject
+
+
+
+
+
+
public final class LongStreamSubject +extends Subject
+
Propositions for LongStream subjects. + +

Note: the wrapped stream will be drained immediately into a private collection to + provide more readable failure messages. You should not use this class if you intend to leave the + stream un-consumed or if the stream is very large or infinite. + +

If you intend to make multiple assertions on the same stream of data you should instead first + collect the contents of the stream into a collection, and then assert directly on that. + +

For very large or infinite streams you may want to first limit the + stream before asserting on it.

+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      longStreams

      +
      + +
      Deprecated. +
      Instead of about(longStreams()).that(...), use just that(...). + Similarly, instead of assertAbout(longStreams()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(longStreams()).that(stream)..... Now, you can perform assertions + like that without the about(...) call.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the subject is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public void isNotEmpty()
      +
      Fails if the subject is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public void hasSize(int expectedSize)
      +
      Fails if the subject does not have the given size. + +

      If you'd like to check that your stream contains more than Integer.MAX_VALUE + elements, use assertThat(stream.count()).isEqualTo(...).

      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(long element)
      +
      Fails if the subject does not contain the given element.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(long element)
      +
      Fails if the subject contains the given element.
      +
      +
      +
    • +
    • +
      +

      containsNoDuplicates

      +
      +
      public void containsNoDuplicates()
      +
      Fails if the subject contains duplicate elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyOf

      +
      +
      public void containsAnyOf(long first, + long second, + long... rest)
      +
      Fails if the subject does not contain at least one of the given elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public void containsAnyIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain at least one of the given elements.
      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeast(long first, + long second, + long... rest)
      +
      Fails if the subject does not contain all of the given elements. If an element appears more + than once in the given elements, then it must appear at least that number of times in the + actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastElementsIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain all of the given elements. If an element appears more + than once in the given elements, then it must appear at least that number of times in the + actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactly(long @Nullable ... varargs)
      +
      Fails if the subject does not contain exactly the given elements. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyElementsIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain exactly the given elements. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsNoneOf

      +
      +
      public void containsNoneOf(long first, + long second, + long... rest)
      +
      Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this + test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public void containsNoneIn(@Nullable Iterable<?> excluded)
      +
      Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this + test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder()
      +
      Fails if the subject is not strictly ordered, according to the natural ordering of its + elements. Strictly ordered means that each element in the stream is strictly greater + than the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder(Comparator<? super Long> comparator)
      +
      Fails if the subject is not strictly ordered, according to the given comparator. Strictly + ordered means that each element in the stream is strictly greater than the element that + preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder()
      +
      Fails if the subject is not ordered, according to the natural ordering of its elements. Ordered + means that each element in the stream is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder(Comparator<? super Long> comparator)
      +
      Fails if the subject is not ordered, according to the given comparator. Ordered means that each + element in the stream is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/LongSubject.TolerantLongComparison.html b/api/1.4.4/com/google/common/truth/LongSubject.TolerantLongComparison.html new file mode 100644 index 000000000..48e9c149a --- /dev/null +++ b/api/1.4.4/com/google/common/truth/LongSubject.TolerantLongComparison.html @@ -0,0 +1,217 @@ + + + + +LongSubject.TolerantLongComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LongSubject.TolerantLongComparison

+
+
java.lang.Object +
com.google.common.truth.LongSubject.TolerantLongComparison
+
+
+
+
+
Enclosing class:
+
LongSubject
+
+
+
public abstract static class LongSubject.TolerantLongComparison +extends Object
+
A partially specified check about an approximate relationship to a long subject using a + tolerance.
+
+
Since:
+
1.2
+
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    boolean
    +
    equals(@Nullable Object o)
    +
    +
    Deprecated. +
    Object.equals(Object) is not supported on TolerantLongComparison.
    +
    +
    +
    int
    + +
    +
    Deprecated. +
    Object.hashCode() is not supported on TolerantLongComparison
    +
    +
    +
    abstract void
    +
    of(long expectedLong)
    +
    +
    Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      of

      +
      +
      public abstract void of(long expectedLong)
      +
      Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was. The subject and + tolerance are specified earlier in the fluent call chain.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +public boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported on TolerantLongComparison. If you + meant to compare longs, use of(long) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported on TolerantLongComparison
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/LongSubject.html b/api/1.4.4/com/google/common/truth/LongSubject.html new file mode 100644 index 000000000..8f479421c --- /dev/null +++ b/api/1.4.4/com/google/common/truth/LongSubject.html @@ -0,0 +1,349 @@ + + + + +LongSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LongSubject

+
+ +
+
+
+
public class LongSubject +extends ComparableSubject<Long>
+
Propositions for long subjects.
+
+
Author:
+
David Saff, Christian Gruber (cgruber@israfil.net), Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      LongSubject

      +
      +
      protected LongSubject(FailureMetadata metadata, + @Nullable Long actual)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isWithin

      +
      +
      public LongSubject.TolerantLongComparison isWithin(long tolerance)
      +
      Prepares for a check that the subject is a number within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the subject and object + allowed by the check, which must be a non-negative value.
      +
      Since:
      +
      1.2
      +
      +
      +
      +
    • +
    • +
      +

      isNotWithin

      +
      +
      public LongSubject.TolerantLongComparison isNotWithin(long tolerance)
      +
      Prepares for a check that the subject is a number not within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
      +
      +
      Parameters:
      +
      tolerance - an exclusive lower bound on the difference between the subject and object + allowed by the check, which must be a non-negative value.
      +
      Since:
      +
      1.2
      +
      +
      +
      +
    • +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      @Deprecated +public final void isEquivalentAccordingToCompareTo(@Nullable Long other)
      +
      Deprecated. +
      Use Subject.isEqualTo(java.lang.Object) instead. Long comparison is consistent with equality.
      +
      +
      Description copied from class: ComparableSubject
      +
      Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0). + +

      Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object).

      +
      +
      Overrides:
      +
      isEquivalentAccordingToCompareTo in class ComparableSubject<Long>
      +
      +
      +
      +
    • +
    • +
      +

      isGreaterThan

      +
      +
      public final void isGreaterThan(int other)
      +
      Checks that the subject is greater than other. + +

      To check that the subject is greater than or equal to other, use isAtLeast(int).

      +
      +
      +
    • +
    • +
      +

      isLessThan

      +
      +
      public final void isLessThan(int other)
      +
      Checks that the subject is less than other. + +

      To check that the subject is less than or equal to other, use isAtMost(int) .

      +
      +
      +
    • +
    • +
      +

      isAtMost

      +
      +
      public final void isAtMost(int other)
      +
      Checks that the subject is less than or equal to other. + +

      To check that the subject is strictly less than other, use isLessThan(int).

      +
      +
      +
    • +
    • +
      +

      isAtLeast

      +
      +
      public final void isAtLeast(int other)
      +
      Checks that the subject is greater than or equal to other. + +

      To check that the subject is strictly greater than other, use isGreaterThan(int).

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/MapSubject.UsingCorrespondence.html b/api/1.4.4/com/google/common/truth/MapSubject.UsingCorrespondence.html new file mode 100644 index 000000000..3fa2acfef --- /dev/null +++ b/api/1.4.4/com/google/common/truth/MapSubject.UsingCorrespondence.html @@ -0,0 +1,272 @@ + + + + +MapSubject.UsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MapSubject.UsingCorrespondence<A extends @Nullable Object,E extends @Nullable Object>

+
+
java.lang.Object +
com.google.common.truth.MapSubject.UsingCorrespondence<A,E>
+
+
+
+
+
Enclosing class:
+
MapSubject
+
+
+
public final class MapSubject.UsingCorrespondence<A extends @Nullable Object,E extends @Nullable Object> +extends Object
+
A partially specified check in which the actual values (i.e. the values of the Map + under test) are compared to expected values using a Correspondence. The expected values + are of type E. Call methods on this object to actually execute the check. + +

Note that keys will always be compared with regular object equality (Object.equals(java.lang.Object)).

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    containsAtLeast(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
    +
    +
    Fails if the map does not contain at least the given set of keys mapping to values that + correspond to the given values.
    +
    + +
    containsAtLeastEntriesIn(Map<?,? extends E> expectedMap)
    +
    +
    Fails if the map does not contain at least the keys in the given map, mapping to values that + correspond to the values of the given map.
    +
    +
    void
    +
    containsEntry(@Nullable Object expectedKey, + E expectedValue)
    +
    +
    Fails if the map does not contain an entry with the given key and a value that corresponds to + the given value.
    +
    + +
    containsExactly(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
    +
    +
    Fails if the map does not contain exactly the given set of keys mapping to values that + correspond to the given values.
    +
    + +
    containsExactlyEntriesIn(Map<?,? extends E> expectedMap)
    +
    +
    Fails if the map does not contain exactly the keys in the given map, mapping to values that + correspond to the values of the given map.
    +
    +
    void
    +
    doesNotContainEntry(@Nullable Object excludedKey, + E excludedValue)
    +
    +
    Fails if the map contains an entry with the given key and a value that corresponds to the + given value.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      containsEntry

      +
      +
      public void containsEntry(@Nullable Object expectedKey, + E expectedValue)
      +
      Fails if the map does not contain an entry with the given key and a value that corresponds to + the given value.
      +
      +
      +
    • +
    • +
      +

      doesNotContainEntry

      +
      +
      public void doesNotContainEntry(@Nullable Object excludedKey, + E excludedValue)
      +
      Fails if the map contains an entry with the given key and a value that corresponds to the + given value.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactly(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
      +
      Fails if the map does not contain exactly the given set of keys mapping to values that + correspond to the given values. + +

      The values must all be of type E, and a ClassCastException will be thrown + if any other type is encountered. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeast(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
      +
      Fails if the map does not contain at least the given set of keys mapping to values that + correspond to the given values. + +

      The values must all be of type E, and a ClassCastException will be thrown + if any other type is encountered. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      containsExactlyEntriesIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyEntriesIn(Map<?,? extends E> expectedMap)
      +
      Fails if the map does not contain exactly the keys in the given map, mapping to values that + correspond to the values of the given map.
      +
      +
      +
    • +
    • +
      +

      containsAtLeastEntriesIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastEntriesIn(Map<?,? extends E> expectedMap)
      +
      Fails if the map does not contain at least the keys in the given map, mapping to values that + correspond to the values of the given map.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/MapSubject.html b/api/1.4.4/com/google/common/truth/MapSubject.html new file mode 100644 index 000000000..c69110a6b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/MapSubject.html @@ -0,0 +1,509 @@ + + + + +MapSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MapSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.MapSubject
+
+
+
+
+
+
Direct Known Subclasses:
+
MapWithProtoValuesSubject
+
+
+
public class MapSubject +extends Subject
+
Propositions for Map subjects.
+
+
Author:
+
Christian Gruber, Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MapSubject

      +
      +
      protected MapSubject(FailureMetadata metadata, + @Nullable Map<?,?> map)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEqualTo

      +
      +
      public final void isEqualTo(@Nullable Object other)
      +
      Description copied from class: Subject
      +
      Fails if the subject is not equal to the given object. For the purposes of this comparison, two + objects are equal if any of the following is true: + +
        +
      • they are equal according to Objects.equal(java.lang.Object, java.lang.Object) +
      • they are arrays and are considered equal by the appropriate Arrays.equals(long[], long[]) + overload +
      • they are boxed integer types (Byte, Short, Character, + Integer, or Long) and they are numerically equal when converted to Long. +
      • the actual value is a boxed floating-point type (Double or Float), the + expected value is an Integer, and the two are numerically equal when converted to + Double. (This allows assertThat(someDouble).isEqualTo(0) to pass.) +
      + +

      Note: This method does not test the Object.equals(java.lang.Object) implementation itself; it + assumes that method is functioning correctly according to its contract. Testing an + equals implementation requires a utility such as guava-testlib's EqualsTester. + +

      In some cases, this method might not even call equals. It may instead perform other + tests that will return the same result as long as equals is implemented according to + the contract for its type.

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the map is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the map is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public final void hasSize(int expectedSize)
      +
      Fails if the map does not have the given size.
      +
      +
      +
    • +
    • +
      +

      containsKey

      +
      +
      public final void containsKey(@Nullable Object key)
      +
      Fails if the map does not contain the given key.
      +
      +
      +
    • +
    • +
      +

      doesNotContainKey

      +
      +
      public final void doesNotContainKey(@Nullable Object key)
      +
      Fails if the map contains the given key.
      +
      +
      +
    • +
    • +
      +

      containsEntry

      +
      +
      public final void containsEntry(@Nullable Object key, + @Nullable Object value)
      +
      Fails if the map does not contain the given entry.
      +
      +
      +
    • +
    • +
      +

      doesNotContainEntry

      +
      +
      public final void doesNotContainEntry(@Nullable Object key, + @Nullable Object value)
      +
      Fails if the map contains the given entry.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactly()
      +
      Fails if the map is not empty.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactly(@Nullable Object k0, + @Nullable Object v0, + @Nullable Object... rest)
      +
      Fails if the map does not contain exactly the given set of key/value pairs. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs! + +

      The arguments must not contain duplicate keys.

      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeast(@Nullable Object k0, + @Nullable Object v0, + @Nullable Object... rest)
      +
      +
      +
    • +
    • +
      +

      containsExactlyEntriesIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactlyEntriesIn(Map<?,?> expectedMap)
      +
      Fails if the map does not contain exactly the given set of entries in the given map.
      +
      +
      +
    • +
    • +
      +

      containsAtLeastEntriesIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeastEntriesIn(Map<?,?> expectedMap)
      +
      Fails if the map does not contain at least the given set of entries in the given map.
      +
      +
      +
    • +
    • +
      +

      comparingValuesUsing

      +
      +
      public final <A extends @Nullable Object, +E extends @Nullable Object> +MapSubject.UsingCorrespondence<A,E> comparingValuesUsing(Correspondence<? super A,? super E> correspondence)
      +
      Starts a method chain for a check in which the actual values (i.e. the values of the Map under test) are compared to expected values using the given Correspondence. The + actual values must be of type A, the expected values must be of type E. The + check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualMap)
      +   .comparingValuesUsing(correspondence)
      +   .containsEntry(expectedKey, expectedValue);
      + 
      + + where actualMap is a Map<?, A> (or, more generally, a Map<?, ? extends + A>), correspondence is a Correspondence<A, E>, and expectedValue is an + E. + +

      Note that keys will always be compared with regular object equality (Object.equals(java.lang.Object)). + +

      Any of the methods on the returned object may throw ClassCastException if they + encounter an actual value that is not of type A or an expected value that is not of + type E.

      +
      +
      +
    • +
    • +
      +

      formattingDiffsUsing

      +
      +
      public final <V extends @Nullable Object> +MapSubject.UsingCorrespondence<V,V> formattingDiffsUsing(Correspondence.DiffFormatter<? super V,? super V> formatter)
      +
      Starts a method chain for a check in which failure messages may use the given Correspondence.DiffFormatter to describe the difference between an actual value (i.e. a value in the Map under test) and the value it is expected to be equal to, but isn't. The actual and + expected values must be of type V. The check is actually executed by continuing the + method chain. For example: + +
      
      + assertThat(actualMap)
      +   .formattingDiffsUsing(FooTestHelper::formatDiff)
      +   .containsExactly(key1, foo1, key2, foo2, key3, foo3);
      + 
      + + where actualMap is a Map<?, Foo> (or, more generally, a Map<?, ? extends + Foo>), FooTestHelper.formatDiff is a static method taking two Foo arguments + and returning a String, and foo1, foo2, and foo3 are + Foo instances. + +

      Unlike when using comparingValuesUsing(com.google.common.truth.Correspondence<? super A, ? super E>), the values are still compared using object + equality, so this method does not affect whether a test passes or fails. + +

      Any of the methods on the returned object may throw ClassCastException if they + encounter a value that is not of type V.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/MultimapSubject.UsingCorrespondence.html b/api/1.4.4/com/google/common/truth/MultimapSubject.UsingCorrespondence.html new file mode 100644 index 000000000..5f4b79a3f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/MultimapSubject.UsingCorrespondence.html @@ -0,0 +1,287 @@ + + + + +MultimapSubject.UsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MultimapSubject.UsingCorrespondence<A extends @Nullable Object,E extends @Nullable Object>

+
+
java.lang.Object +
com.google.common.truth.MultimapSubject.UsingCorrespondence<A,E>
+
+
+
+
+
Enclosing class:
+
MultimapSubject
+
+
+
public final class MultimapSubject.UsingCorrespondence<A extends @Nullable Object,E extends @Nullable Object> +extends Object
+
A partially specified check in which the actual values (i.e. the values of the Multimap + under test) are compared to expected values using a Correspondence. The expected values + are of type E. Call methods on this object to actually execute the check. + +

Note that keys will always be compared with regular object equality (Object.equals(java.lang.Object)).

+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    containsAtLeast(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
    +
    +
    Fails if the multimap does not contain at least the given key/value pairs.
    +
    + +
    containsAtLeastEntriesIn(Multimap<?,? extends E> expectedMultimap)
    +
    +
    Fails if the map does not contain at least the keys in the given multimap, mapping to values + that correspond to the values of the given multimap.
    +
    +
    void
    +
    containsEntry(@Nullable Object expectedKey, + E expectedValue)
    +
    +
    Fails if the multimap does not contain an entry with the given key and a value that + corresponds to the given value.
    +
    + + +
    +
    Fails if the multimap is not empty.
    +
    + +
    containsExactly(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
    +
    +
    Fails if the multimap does not contain exactly the given set of key/value pairs.
    +
    + +
    containsExactlyEntriesIn(Multimap<?,? extends E> expectedMultimap)
    +
    +
    Fails if the map does not contain exactly the keys in the given multimap, mapping to values + that correspond to the values of the given multimap.
    +
    +
    void
    +
    doesNotContainEntry(@Nullable Object excludedKey, + E excludedValue)
    +
    +
    Fails if the multimap contains an entry with the given key and a value that corresponds to + the given value.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      containsEntry

      +
      +
      public void containsEntry(@Nullable Object expectedKey, + E expectedValue)
      +
      Fails if the multimap does not contain an entry with the given key and a value that + corresponds to the given value.
      +
      +
      +
    • +
    • +
      +

      doesNotContainEntry

      +
      +
      public void doesNotContainEntry(@Nullable Object excludedKey, + E excludedValue)
      +
      Fails if the multimap contains an entry with the given key and a value that corresponds to + the given value.
      +
      +
      +
    • +
    • +
      +

      containsExactlyEntriesIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyEntriesIn(Multimap<?,? extends E> expectedMultimap)
      +
      Fails if the map does not contain exactly the keys in the given multimap, mapping to values + that correspond to the values of the given multimap. + +

      A subsequent call to Ordered.inOrder() may be made if the caller wishes to verify + that the two Multimaps iterate fully in the same order. That is, their key sets iterate in + the same order, and the corresponding value collections for each key iterate in the same + order.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastEntriesIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastEntriesIn(Multimap<?,? extends E> expectedMultimap)
      +
      Fails if the map does not contain at least the keys in the given multimap, mapping to values + that correspond to the values of the given multimap. + +

      A subsequent call to Ordered.inOrder() may be made if the caller wishes to verify + that the two Multimaps iterate fully in the same order. That is, their key sets iterate in + the same order, and the corresponding value collections for each key iterate in the same + order.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactly(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
      +
      Fails if the multimap does not contain exactly the given set of key/value pairs. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactly()
      +
      Fails if the multimap is not empty.
      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeast(@Nullable Object k0, + @Nullable E v0, + @Nullable Object... rest)
      +
      Fails if the multimap does not contain at least the given key/value pairs. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/MultimapSubject.html b/api/1.4.4/com/google/common/truth/MultimapSubject.html new file mode 100644 index 000000000..5e6c58ccf --- /dev/null +++ b/api/1.4.4/com/google/common/truth/MultimapSubject.html @@ -0,0 +1,504 @@ + + + + +MultimapSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MultimapSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.MultimapSubject
+
+
+
+
+
+
Direct Known Subclasses:
+
MultimapWithProtoValuesSubject
+
+
+
public class MultimapSubject +extends Subject
+
Propositions for Multimap subjects.
+
+
Author:
+
Daniel Ploch, Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MultimapSubject

      +
      +
      protected MultimapSubject(FailureMetadata metadata, + @Nullable Multimap<?,?> multimap)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the multimap is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the multimap is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public final void hasSize(int expectedSize)
      +
      Fails if the multimap does not have the given size.
      +
      +
      +
    • +
    • +
      +

      containsKey

      +
      +
      public final void containsKey(@Nullable Object key)
      +
      Fails if the multimap does not contain the given key.
      +
      +
      +
    • +
    • +
      +

      doesNotContainKey

      +
      +
      public final void doesNotContainKey(@Nullable Object key)
      +
      Fails if the multimap contains the given key.
      +
      +
      +
    • +
    • +
      +

      containsEntry

      +
      +
      public final void containsEntry(@Nullable Object key, + @Nullable Object value)
      +
      Fails if the multimap does not contain the given entry.
      +
      +
      +
    • +
    • +
      +

      doesNotContainEntry

      +
      +
      public final void doesNotContainEntry(@Nullable Object key, + @Nullable Object value)
      +
      Fails if the multimap contains the given entry.
      +
      +
      +
    • +
    • +
      +

      valuesForKey

      +
      +
      public IterableSubject valuesForKey(@Nullable Object key)
      +
      Returns a context-aware Subject for making assertions about the values for the given + key within the Multimap. + +

      This method performs no checks on its own and cannot cause test failures. Subsequent + assertions must be chained onto this method call to test properties of the Multimap.

      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public final void isEqualTo(@Nullable Object other)
      +
      Description copied from class: Subject
      +
      Fails if the subject is not equal to the given object. For the purposes of this comparison, two + objects are equal if any of the following is true: + +
        +
      • they are equal according to Objects.equal(java.lang.Object, java.lang.Object) +
      • they are arrays and are considered equal by the appropriate Arrays.equals(long[], long[]) + overload +
      • they are boxed integer types (Byte, Short, Character, + Integer, or Long) and they are numerically equal when converted to Long. +
      • the actual value is a boxed floating-point type (Double or Float), the + expected value is an Integer, and the two are numerically equal when converted to + Double. (This allows assertThat(someDouble).isEqualTo(0) to pass.) +
      + +

      Note: This method does not test the Object.equals(java.lang.Object) implementation itself; it + assumes that method is functioning correctly according to its contract. Testing an + equals implementation requires a utility such as guava-testlib's EqualsTester. + +

      In some cases, this method might not even call equals. It may instead perform other + tests that will return the same result as long as equals is implemented according to + the contract for its type.

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      containsExactlyEntriesIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactlyEntriesIn(Multimap<?,?> expectedMultimap)
      +
      Fails if the Multimap does not contain precisely the same entries as the argument + Multimap. + +

      A subsequent call to Ordered.inOrder() may be made if the caller wishes to verify that + the two multimaps iterate fully in the same order. That is, their key sets iterate in the same + order, and the value collections for each key iterate in the same order.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastEntriesIn

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeastEntriesIn(Multimap<?,?> expectedMultimap)
      +
      Fails if the Multimap does not contain at least the entries in the argument Multimap. + +

      A subsequent call to Ordered.inOrder() may be made if the caller wishes to verify that + the entries are present in the same order as given. That is, the keys are present in the given + order in the key set, and the values for each key are present in the given order order in the + value collections.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactly()
      +
      Fails if the multimap is not empty.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsExactly(@Nullable Object k0, + @Nullable Object v0, + @Nullable Object... rest)
      +
      Fails if the multimap does not contain exactly the given set of key/value pairs. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public final Ordered containsAtLeast(@Nullable Object k0, + @Nullable Object v0, + @Nullable Object... rest)
      +
      Fails if the multimap does not contain at least the given key/value pairs. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      comparingValuesUsing

      +
      +
      public <A extends @Nullable Object, +E extends @Nullable Object> +MultimapSubject.UsingCorrespondence<A,E> comparingValuesUsing(Correspondence<? super A,? super E> correspondence)
      +
      Starts a method chain for a check in which the actual values (i.e. the values of the Multimap under test) are compared to expected values using the given Correspondence. + The actual values must be of type A, and the expected values must be of type E. + The check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualMultimap)
      +   .comparingValuesUsing(correspondence)
      +   .containsEntry(expectedKey, expectedValue);
      + 
      + + where actualMultimap is a Multimap<?, A> (or, more generally, a + Multimap<?, ? extends A>), correspondence is a Correspondence<A, E>, and + expectedValue is an E. + +

      Note that keys will always be compared with regular object equality (Object.equals(java.lang.Object)). + +

      Any of the methods on the returned object may throw ClassCastException if they + encounter an actual value that is not of type A.

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/MultisetSubject.html b/api/1.4.4/com/google/common/truth/MultisetSubject.html new file mode 100644 index 000000000..173421799 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/MultisetSubject.html @@ -0,0 +1,182 @@ + + + + +MultisetSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MultisetSubject

+
+ +
+
+
+
public final class MultisetSubject +extends IterableSubject
+
Propositions for Multiset subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasCount

      +
      +
      public final void hasCount(@Nullable Object element, + int expectedCount)
      +
      Fails if the element does not have the given count.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ObjectArraySubject.html b/api/1.4.4/com/google/common/truth/ObjectArraySubject.html new file mode 100644 index 000000000..1736fa020 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ObjectArraySubject.html @@ -0,0 +1,215 @@ + + + + +ObjectArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ObjectArraySubject<T extends @Nullable Object>

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.ObjectArraySubject<T>
+
+
+
+
+
+
public final class ObjectArraySubject<T extends @Nullable Object> +extends Subject
+
A Subject for Object[] and more generically T[].
+
+
Author:
+
Christian Gruber
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/OptionalDoubleSubject.html b/api/1.4.4/com/google/common/truth/OptionalDoubleSubject.html new file mode 100644 index 000000000..717d54a07 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/OptionalDoubleSubject.html @@ -0,0 +1,231 @@ + + + + +OptionalDoubleSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class OptionalDoubleSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.OptionalDoubleSubject
+
+
+
+
+
+
public final class OptionalDoubleSubject +extends Subject
+
Propositions for Java 8 OptionalDouble subjects.
+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Ben Douglass
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isPresent

      +
      +
      public void isPresent()
      +
      Fails if the OptionalDouble is empty or the subject is null.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the OptionalDouble is present or the subject is null.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      +
      public void hasValue(double expected)
      +
      Fails if the OptionalDouble does not have the given value or the subject is null. This + method is not recommended when the code under test is doing any kind of arithmetic, + since the exact result of floating point arithmetic is sensitive to apparently trivial changes. + More sophisticated comparisons can be done using assertThat(optional.getAsDouble())…. + This method is recommended when the code under test is specified as either copying a value + without modification from its input or returning a well-defined literal or constant value.
      +
      +
      +
    • +
    • +
      +

      optionalDoubles

      +
      + +
      Deprecated. +
      Instead of about(optionalDoubles()).that(...), use just that(...). + Similarly, instead of assertAbout(optionalDoubles()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(optionalDoubles()).that(optional)..... Now, you can perform + assertions like that without the about(...) call.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/OptionalIntSubject.html b/api/1.4.4/com/google/common/truth/OptionalIntSubject.html new file mode 100644 index 000000000..9aebd496d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/OptionalIntSubject.html @@ -0,0 +1,227 @@ + + + + +OptionalIntSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class OptionalIntSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.OptionalIntSubject
+
+
+
+
+
+
public final class OptionalIntSubject +extends Subject
+
Propositions for Java 8 OptionalInt subjects.
+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Ben Douglass
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isPresent

      +
      +
      public void isPresent()
      +
      Fails if the OptionalInt is empty or the subject is null.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the OptionalInt is present or the subject is null.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      +
      public void hasValue(int expected)
      +
      Fails if the OptionalInt does not have the given value or the subject is null. More + sophisticated comparisons can be done using assertThat(optional.getAsInt())….
      +
      +
      +
    • +
    • +
      +

      optionalInts

      +
      + +
      Deprecated. +
      Instead of about(optionalInts()).that(...), use just that(...). + Similarly, instead of assertAbout(optionalInts()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(optionalInts()).that(optional)..... Now, you can perform + assertions like that without the about(...) call.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/OptionalLongSubject.html b/api/1.4.4/com/google/common/truth/OptionalLongSubject.html new file mode 100644 index 000000000..08b02a639 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/OptionalLongSubject.html @@ -0,0 +1,227 @@ + + + + +OptionalLongSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class OptionalLongSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.OptionalLongSubject
+
+
+
+
+
+
public final class OptionalLongSubject +extends Subject
+
Propositions for Java 8 OptionalLong subjects.
+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Ben Douglass
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isPresent

      +
      +
      public void isPresent()
      +
      Fails if the OptionalLong is empty or the subject is null.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the OptionalLong is present or the subject is null.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      +
      public void hasValue(long expected)
      +
      Fails if the OptionalLong does not have the given value or the subject is null. More + sophisticated comparisons can be done using assertThat(optional.getAsLong())….
      +
      +
      +
    • +
    • +
      +

      optionalLongs

      +
      + +
      Deprecated. +
      Instead of about(optionalLongs()).that(...), use just that(...). + Similarly, instead of assertAbout(optionalLongs()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(optionalLongs()).that(optional)..... Now, you can perform + assertions like that without the about(...) call.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/OptionalSubject.html b/api/1.4.4/com/google/common/truth/OptionalSubject.html new file mode 100644 index 000000000..1f407b6d6 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/OptionalSubject.html @@ -0,0 +1,233 @@ + + + + +OptionalSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class OptionalSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.OptionalSubject
+
+
+
+
+
+
public final class OptionalSubject +extends Subject
+
Propositions for Java 8 Optional subjects.
+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Christian Gruber
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isPresent

      +
      +
      public void isPresent()
      +
      Fails if the Optional<T> is empty or the subject is null.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the Optional<T> is present or the subject is null.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      +
      public void hasValue(@Nullable Object expected)
      +
      Fails if the Optional<T> does not have the given value or the subject is null. + +

      To make more complex assertions on the optional's value split your assertion in two: + +

      
      + assertThat(myOptional).isPresent();
      + assertThat(myOptional.get()).contains("foo");
      + 
      +
      +
      +
    • +
    • +
      +

      optionals

      +
      +
      @Deprecated +public static Subject.Factory<OptionalSubject,Optional<?>> optionals()
      +
      Deprecated. +
      Instead of about(optionals()).that(...), use just that(...). + Similarly, instead of assertAbout(optionals()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(paths()).that(path)..... Now, you can perform assertions like + that without the about(...) call.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Ordered.html b/api/1.4.4/com/google/common/truth/Ordered.html new file mode 100644 index 000000000..f5f7282e8 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Ordered.html @@ -0,0 +1,156 @@ + + + + +Ordered (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Ordered

+
+
+
+
+
public interface Ordered
+
Returned by calls like IterableSubject.containsExactly(java.lang.Object...), Ordered lets the caller + additionally check that the expected elements were present in the order they were passed to the + previous calls. + +

+ assertThat(supportedCharsets).containsExactly("UTF-8", "US-ASCII"); // does not check order
+ assertThat(supportedCharsets).containsExactly("UTF-8", "US-ASCII").inOrder(); // does check order
+ 
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    An additional assertion, implemented by some containment subjects which allows for a further + constraint of orderedness.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      inOrder

      +
      +
      void inOrder()
      +
      An additional assertion, implemented by some containment subjects which allows for a further + constraint of orderedness.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PathSubject.html b/api/1.4.4/com/google/common/truth/PathSubject.html new file mode 100644 index 000000000..fcfca7feb --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PathSubject.html @@ -0,0 +1,183 @@ + + + + +PathSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PathSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PathSubject
+
+
+
+
+
+
@GwtIncompatible +@J2ObjCIncompatible +public final class PathSubject +extends Subject
+
Assertions for Path instances.
+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      paths

      +
      +
      @Deprecated +public static Subject.Factory<PathSubject,Path> paths()
      +
      Deprecated. +
      Instead of about(paths()).that(...), use just that(...). Similarly, + instead of assertAbout(paths()).that(...), use just assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(intStreams()).that(stream)..... Now, you can perform assertions + like that without the about(...) call.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveBooleanArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveBooleanArraySubject.html new file mode 100644 index 000000000..96ce12d04 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveBooleanArraySubject.html @@ -0,0 +1,215 @@ + + + + +PrimitiveBooleanArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveBooleanArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveBooleanArraySubject
+
+
+
+
+
+
public final class PrimitiveBooleanArraySubject +extends Subject
+
A Subject for boolean[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveByteArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveByteArraySubject.html new file mode 100644 index 000000000..af31c3896 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveByteArraySubject.html @@ -0,0 +1,215 @@ + + + + +PrimitiveByteArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveByteArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveByteArraySubject
+
+
+
+
+
+
public final class PrimitiveByteArraySubject +extends Subject
+
A Subject for byte[].
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveCharArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveCharArraySubject.html new file mode 100644 index 000000000..4ceb15812 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveCharArraySubject.html @@ -0,0 +1,215 @@ + + + + +PrimitiveCharArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveCharArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveCharArraySubject
+
+
+
+
+
+
public final class PrimitiveCharArraySubject +extends Subject
+
A Subject for char[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html b/api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html new file mode 100644 index 000000000..b305455a7 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html @@ -0,0 +1,213 @@ + + + + +PrimitiveDoubleArraySubject.DoubleArrayAsIterable (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveDoubleArraySubject.DoubleArrayAsIterable

+
+
java.lang.Object +
com.google.common.truth.IterableSubject.UsingCorrespondence<Double,Number> +
com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
+
+
+
+
+
+
Enclosing class:
+
PrimitiveDoubleArraySubject
+
+
+
public static final class PrimitiveDoubleArraySubject.DoubleArrayAsIterable +extends IterableSubject.UsingCorrespondence<Double,Number>
+
A partially specified check for doing assertions on the array similar to the assertions + supported for Iterable subjects, in which the elements of the array under test are + compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality() and PrimitiveDoubleArraySubject.usingTolerance(double). Call methods on this object to actually + execute the check. + +

In the exact equality case, the methods on this class which take Number arguments + only accept certain instances: again, see PrimitiveDoubleArraySubject.usingExactEquality() for details.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.html new file mode 100644 index 000000000..fd8fdc0bd --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveDoubleArraySubject.html @@ -0,0 +1,368 @@ + + + + +PrimitiveDoubleArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveDoubleArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveDoubleArraySubject
+
+
+
+
+
+
public final class PrimitiveDoubleArraySubject +extends Subject
+
A Subject for double[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      A check that the actual array and expected are arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(double[], double[]) and Double.equals(Object) define it (which is + different to the way that the == operator on primitive double defines it). This + method is not recommended when the code under test is doing any kind of arithmetic: use + usingTolerance(double) with a suitable tolerance in that case, e.g. + assertThat(actualArray).usingTolerance(1.0e-10).containsExactly(expectedArray).inOrder(). + (Remember that the exact result of floating point arithmetic is sensitive to apparently trivial + changes such as replacing (a + b) + c with a + (b + c), and that unless + strictfp is in force even the result of (a + b) + c is sensitive to the JVM's choice + of precision for the intermediate result.) This method is recommended when the code under test + is specified as either copying values without modification from its input or returning + well-defined literal or constant values. + +
      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public void isNotEqualTo(@Nullable Object expected)
      +
      A check that the actual array and expected are not arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(double[], double[]) and Double.equals(Object) define it (which is + different to the way that the == operator on primitive double defines it). See + isEqualTo(Object) for advice on when exact equality is recommended. + +
      +
      +
      Overrides:
      +
      isNotEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      usingTolerance

      +
      +
      public PrimitiveDoubleArraySubject.DoubleArrayAsIterable usingTolerance(double tolerance)
      +
      Starts a method chain for a check in which the actual values (i.e. the elements of the array + under test) are compared to expected elements using a Correspondence which considers + values to correspond if they are finite values within tolerance of each other. The + check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualDoubleArray).usingTolerance(1.0e-5).contains(3.14159);
      + 
      + +
        +
      • It does not consider values to correspond if either value is infinite or NaN. +
      • It considers -0.0 to be within any tolerance of 0.0. +
      • The expected values provided later in the chain will be Number instances which + will be converted to doubles, which may result in a loss of precision for some numeric + types. +
      • The subsequent methods in the chain may throw a NullPointerException if any + expected Number instance is null. +
      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the double values of the + actual and expected numbers, which must be a non-negative finite value, i.e. not Double.NaN, Double.POSITIVE_INFINITY, or negative, including -0.0
      +
      +
      +
      +
    • +
    • +
      +

      usingExactEquality

      +
      + +
      Starts a method chain for a check in which the actual values (i.e. the elements of the array + under test) are compared to expected elements using a Correspondence which considers + values to correspond if they are exactly equal, with equality defined by Double.equals(java.lang.Object). + This method is not recommended when the code under test is doing any kind of arithmetic: + use usingTolerance(double) with a suitable tolerance in that case. (Remember that the exact + result of floating point arithmetic is sensitive to apparently trivial changes such as + replacing (a + b) + c with a + (b + c), and that unless strictfp is in + force even the result of (a + b) + c is sensitive to the JVM's choice of precision for + the intermediate result.) This method is recommended when the code under test is specified as + either copying a value without modification from its input or returning a well-defined literal + or constant value. The check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualDoubleArray).usingExactEquality().contains(3.14159);
      + 
      + +

      For convenience, some subsequent methods accept expected values as Number instances. + These numbers must be either of type Double, Float, Integer, or Long, and if they are Long then their absolute values must not exceed 2^53 which is + just over 9e15. (This restriction ensures that the expected values have exact Double + representations: using exact equality makes no sense if they do not.) + +

      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.FloatArrayAsIterable.html b/api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.FloatArrayAsIterable.html new file mode 100644 index 000000000..4674658a4 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.FloatArrayAsIterable.html @@ -0,0 +1,213 @@ + + + + +PrimitiveFloatArraySubject.FloatArrayAsIterable (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveFloatArraySubject.FloatArrayAsIterable

+
+
java.lang.Object +
com.google.common.truth.IterableSubject.UsingCorrespondence<Float,Number> +
com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
+
+
+
+
+
+
Enclosing class:
+
PrimitiveFloatArraySubject
+
+
+
public static final class PrimitiveFloatArraySubject.FloatArrayAsIterable +extends IterableSubject.UsingCorrespondence<Float,Number>
+
A partially specified check for doing assertions on the array similar to the assertions + supported for Iterable subjects, in which the elements of the array under test are + compared to expected elements using either exact or tolerant float equality: see PrimitiveFloatArraySubject.usingExactEquality() and PrimitiveFloatArraySubject.usingTolerance(double). Call methods on this object to actually + execute the check. + +

In the exact equality case, the methods on this class which take Number arguments + only accept certain instances: again, see PrimitiveFloatArraySubject.usingExactEquality() for details.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.html new file mode 100644 index 000000000..c9ecb8e88 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveFloatArraySubject.html @@ -0,0 +1,364 @@ + + + + +PrimitiveFloatArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveFloatArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveFloatArraySubject
+
+
+
+
+
+
public final class PrimitiveFloatArraySubject +extends Subject
+
A Subject for float[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      A check that the actual array and expected are arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(float[], float[]) and Float.equals(Object) define it (which is different + to the way that the == operator on primitive float defines it). This method is + not recommended when the code under test is doing any kind of arithmetic: use usingTolerance(double) with a suitable tolerance in that case, e.g. + assertThat(actualArray).usingTolerance(1.0e-5).containsExactly(expectedArray).inOrder(). + (Remember that the exact result of floating point arithmetic is sensitive to apparently trivial + changes such as replacing (a + b) + c with a + (b + c), and that unless + strictfp is in force even the result of (a + b) + c is sensitive to the JVM's choice + of precision for the intermediate result.) This method is recommended when the code under test + is specified as either copying values without modification from its input or returning + well-defined literal or constant values. + +
      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public void isNotEqualTo(@Nullable Object expected)
      +
      A check that the actual array and expected are not arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(float[], float[]) and Float.equals(Object) define it (which is different + to the way that the == operator on primitive float defines it). See isEqualTo(Object) for advice on when exact equality is recommended. + +
      +
      +
      Overrides:
      +
      isNotEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      usingTolerance

      +
      +
      public PrimitiveFloatArraySubject.FloatArrayAsIterable usingTolerance(double tolerance)
      +
      Starts a method chain for a check in which the actual values (i.e. the elements of the array + under test) are compared to expected elements using a Correspondence which considers + values to correspond if they are finite values within tolerance of each other. The + check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualFloatArray).usingTolerance(1.0e-5f).contains(3.14159f);
      + 
      + +
        +
      • It does not consider values to correspond if either value is infinite or NaN. +
      • It considers -0.0f to be within any tolerance of 0.0f. +
      • The expected values provided later in the chain will be Number instances which + will be converted to floats, which may result in a loss of precision for some numeric + types. +
      • The subsequent methods in the chain may throw a NullPointerException if any + expected Number instance is null. +
      +
      +
      Parameters:
      +
      tolerance - an inclusive upper bound on the difference between the float values of the + actual and expected numbers, which must be a non-negative finite value, i.e. not Float.NaN, Float.POSITIVE_INFINITY, or negative, including -0.0f
      +
      +
      +
      +
    • +
    • +
      +

      usingExactEquality

      +
      + +
      Starts a method chain for a check in which the actual values (i.e. the elements of the array + under test) are compared to expected elements using a Correspondence which considers + values to correspond if they are exactly equal, with equality defined by Float.equals(java.lang.Object). + This method is not recommended when the code under test is doing any kind of arithmetic: + use usingTolerance(double) with a suitable tolerance in that case. (Remember that the exact + result of floating point arithmetic is sensitive to apparently trivial changes such as + replacing (a + b) + c with a + (b + c), and that unless strictfp is in + force even the result of (a + b) + c is sensitive to the JVM's choice of precision for + the intermediate result.) This method is recommended when the code under test is specified as + either copying a value without modification from its input or returning a well-defined literal + or constant value. The check is actually executed by continuing the method chain. For example: + +
      
      + assertThat(actualFloatArray).usingExactEquality().contains(3.14159f);
      + 
      + +

      For convenience, some subsequent methods accept expected values as Number instances. + These numbers must be either of type Float, Integer, or Long, and if + they are Integer or Long then their absolute values must not exceed 2^24 which + is 16,777,216. (This restriction ensures that the expected values have exact Float + representations: using exact equality makes no sense if they do not.) + +

      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveIntArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveIntArraySubject.html new file mode 100644 index 000000000..dc3cd9f4f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveIntArraySubject.html @@ -0,0 +1,215 @@ + + + + +PrimitiveIntArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveIntArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveIntArraySubject
+
+
+
+
+
+
public final class PrimitiveIntArraySubject +extends Subject
+
A Subject for int[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveLongArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveLongArraySubject.html new file mode 100644 index 000000000..d4f7f923f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveLongArraySubject.html @@ -0,0 +1,215 @@ + + + + +PrimitiveLongArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveLongArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveLongArraySubject
+
+
+
+
+
+
public final class PrimitiveLongArraySubject +extends Subject
+
A Subject for long[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/PrimitiveShortArraySubject.html b/api/1.4.4/com/google/common/truth/PrimitiveShortArraySubject.html new file mode 100644 index 000000000..0751b8632 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/PrimitiveShortArraySubject.html @@ -0,0 +1,215 @@ + + + + +PrimitiveShortArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrimitiveShortArraySubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.PrimitiveShortArraySubject
+
+
+
+
+
+
public final class PrimitiveShortArraySubject +extends Subject
+
A Subject for short[].
+
+
Author:
+
Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      asList

      +
      +
      public IterableSubject asList()
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public final void isEmpty()
      +
      Fails if the array is not empty (i.e. array.length > 0).
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public final void isNotEmpty()
      +
      Fails if the array is empty (i.e. array.length == 0).
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public final void hasLength(int length)
      +
      Fails if the array does not have the given length.
      +
      +
      Throws:
      +
      IllegalArgumentException - if length < 0
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/SimpleSubjectBuilder.html b/api/1.4.4/com/google/common/truth/SimpleSubjectBuilder.html new file mode 100644 index 000000000..bcf9a835b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/SimpleSubjectBuilder.html @@ -0,0 +1,158 @@ + + + + +SimpleSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SimpleSubjectBuilder<SubjectT extends Subject,ActualT>

+
+
java.lang.Object +
com.google.common.truth.SimpleSubjectBuilder<SubjectT,ActualT>
+
+
+
+
+
public final class SimpleSubjectBuilder<SubjectT extends Subject,ActualT> +extends Object
+
In a fluent assertion chain, exposes the most common that method, which accepts a value + under test and returns a Subject. + +

For more information about the methods in this class, see this FAQ entry. + +

For people extending Truth

+ +

You won't extend this type. When you write a custom subject, see our doc on extensions.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/StandardSubjectBuilder.html b/api/1.4.4/com/google/common/truth/StandardSubjectBuilder.html new file mode 100644 index 000000000..80ddfd8b8 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/StandardSubjectBuilder.html @@ -0,0 +1,682 @@ + + + + +StandardSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class StandardSubjectBuilder

+
+
java.lang.Object +
com.google.common.truth.StandardSubjectBuilder
+
+
+
+
+
Direct Known Subclasses:
+
Expect
+
+
+
public class StandardSubjectBuilder +extends Object
+
In a fluent assertion chain, an object with which you can do any of the following: + + + +

For more information about the methods in this class, see this FAQ entry. + +

For people extending Truth

+ +

You won't extend this type. When you write a custom subject, see our doc on extensions.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/StreamSubject.html b/api/1.4.4/com/google/common/truth/StreamSubject.html new file mode 100644 index 000000000..c96415e46 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/StreamSubject.html @@ -0,0 +1,624 @@ + + + + +StreamSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class StreamSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.StreamSubject
+
+
+
+
+
+
public final class StreamSubject +extends Subject
+
Propositions for Stream subjects. + +

Note: When you perform an assertion based on the contents of the stream, or when + any assertion fails, the wrapped stream will be drained immediately into a private + collection to provide more readable failure messages. This consumes the stream. Take care if you + intend to leave the stream un-consumed or if the stream is very large or infinite. + +

If you intend to make multiple assertions on the contents of the same stream, you should + instead first collect the contents of the stream into a collection and then assert directly on + that. + +

For very large or infinite streams you may want to first limit the + stream before asserting on it.

+
+
Since:
+
1.3.0 (previously part of truth-java8-extension)
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      streams

      +
      +
      @Deprecated +public static Subject.Factory<StreamSubject,Stream<?>> streams()
      +
      Deprecated. +
      Instead of about(streams()).that(...), use just that(...). + Similarly, instead of assertAbout(streams()).that(...), use just + assertThat(...).
      +
      +
      Obsolete factory instance. This factory was previously necessary for assertions like + assertWithMessage(...).about(streams()).that(stream)..... Now, you can perform assertions like + that without the about(...) call.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the subject is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public void isNotEmpty()
      +
      Fails if the subject is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public void hasSize(int expectedSize)
      +
      Fails if the subject does not have the given size. + +

      If you'd like to check that your stream contains more than Integer.MAX_VALUE + elements, use assertThat(stream.count()).isEqualTo(...).

      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(@Nullable Object element)
      +
      Fails if the subject does not contain the given element.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(@Nullable Object element)
      +
      Fails if the subject contains the given element.
      +
      +
      +
    • +
    • +
      +

      containsNoDuplicates

      +
      +
      public void containsNoDuplicates()
      +
      Fails if the subject contains duplicate elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyOf

      +
      +
      public void containsAnyOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Fails if the subject does not contain at least one of the given elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      public void containsAnyIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain at least one of the given elements.
      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeast(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Fails if the subject does not contain all of the given elements. If an element appears more + than once in the given elements, then it must appear at least that number of times in the + actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsAtLeastElementsIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain all of the given elements. If an element appears more + than once in the given elements, then it must appear at least that number of times in the + actual elements. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The expected elements must appear in the given order + within the actual elements, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactly(@Nullable Object @Nullable ... varargs)
      +
      Fails if the subject does not contain exactly the given elements. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +public Ordered containsExactlyElementsIn(@Nullable Iterable<?> expected)
      +
      Fails if the subject does not contain exactly the given elements. + +

      Multiplicity is respected. For example, an object duplicated exactly 3 times in the + parameters asserts that the object must likewise be duplicated exactly 3 times in the subject. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsNoneOf

      +
      +
      public void containsNoneOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this + test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      public void containsNoneIn(@Nullable Iterable<?> excluded)
      +
      Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this + test, which fails if any of the actual elements equal any of the excluded.)
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder()
      +
      Fails if the subject is not strictly ordered, according to the natural ordering of its + elements. Strictly ordered means that each element in the stream is strictly greater + than the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      public void isInStrictOrder(Comparator<?> comparator)
      +
      Fails if the subject is not strictly ordered, according to the given comparator. Strictly + ordered means that each element in the stream is strictly greater than the element that + preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder()
      +
      Fails if the subject is not ordered, according to the natural ordering of its elements. Ordered + means that each element in the stream is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      NullPointerException - if any element is null
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      public void isInOrder(Comparator<?> comparator)
      +
      Fails if the subject is not ordered, according to the given comparator. Ordered means that each + element in the stream is greater than or equal to the element that preceded it.
      +
      +
      Throws:
      +
      ClassCastException - if any pair of elements is not mutually Comparable
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      @Deprecated +public void isEqualTo(@Nullable Object expected)
      +
      Deprecated. +
      streamA.isEqualTo(streamB) always fails, except when passed the exact same + stream reference. If you really want to test object identity, you can eliminate this + deprecation warning by using Subject.isSameInstanceAs(java.lang.Object). If you instead want to test the + contents of the stream, use containsExactly(java.lang.Object...) or similar methods.
      +
      +
      Description copied from class: Subject
      +
      Fails if the subject is not equal to the given object. For the purposes of this comparison, two + objects are equal if any of the following is true: + +
        +
      • they are equal according to Objects.equal(java.lang.Object, java.lang.Object) +
      • they are arrays and are considered equal by the appropriate Arrays.equals(long[], long[]) + overload +
      • they are boxed integer types (Byte, Short, Character, + Integer, or Long) and they are numerically equal when converted to Long. +
      • the actual value is a boxed floating-point type (Double or Float), the + expected value is an Integer, and the two are numerically equal when converted to + Double. (This allows assertThat(someDouble).isEqualTo(0) to pass.) +
      + +

      Note: This method does not test the Object.equals(java.lang.Object) implementation itself; it + assumes that method is functioning correctly according to its contract. Testing an + equals implementation requires a utility such as guava-testlib's EqualsTester. + +

      In some cases, this method might not even call equals. It may instead perform other + tests that will return the same result as long as equals is implemented according to + the contract for its type.

      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      @Deprecated +public void isNotEqualTo(@Nullable Object unexpected)
      +
      Deprecated. +
      streamA.isNotEqualTo(streamB) always passes, except when passed the exact + same stream reference. If you really want to test object identity, you can eliminate this + deprecation warning by using Subject.isNotSameInstanceAs(java.lang.Object). If you instead want to test the + contents of the stream, collect both streams to lists and perform assertions like Subject.isNotEqualTo(java.lang.Object) on them. In some cases, you may be able to use StreamSubject assertions like doesNotContain(java.lang.Object).
      +
      +
      Description copied from class: Subject
      +
      Fails if the subject is equal to the given object. The meaning of equality is the same as for + the Subject.isEqualTo(java.lang.Object) method.
      +
      +
      Overrides:
      +
      isNotEqualTo in class Subject
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/StringSubject.CaseInsensitiveStringComparison.html b/api/1.4.4/com/google/common/truth/StringSubject.CaseInsensitiveStringComparison.html new file mode 100644 index 000000000..bcb3d5c45 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/StringSubject.CaseInsensitiveStringComparison.html @@ -0,0 +1,209 @@ + + + + +StringSubject.CaseInsensitiveStringComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class StringSubject.CaseInsensitiveStringComparison

+
+
java.lang.Object +
com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
+
+
+
+
+
Enclosing class:
+
StringSubject
+
+
+
public final class StringSubject.CaseInsensitiveStringComparison +extends Object
+
Case insensitive propositions for string subjects.
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    contains(@Nullable CharSequence expectedSequence)
    +
    +
    Fails if the string does not contain the given sequence (while ignoring case).
    +
    +
    void
    +
    doesNotContain(@Nullable CharSequence expectedSequence)
    +
    +
    Fails if the string contains the given sequence (while ignoring case).
    +
    +
    void
    +
    isEqualTo(@Nullable String expected)
    +
    +
    Fails if the subject is not equal to the given sequence (while ignoring case).
    +
    +
    void
    +
    isNotEqualTo(@Nullable String unexpected)
    +
    +
    Fails if the subject is equal to the given string (while ignoring case).
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable String expected)
      +
      Fails if the subject is not equal to the given sequence (while ignoring case). For the + purposes of this comparison, two strings are equal if any of the following is true: + + + +

      Example: "abc" is equal to "ABC", but not to "abcd".

      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public void isNotEqualTo(@Nullable String unexpected)
      +
      Fails if the subject is equal to the given string (while ignoring case). The meaning of + equality is the same as for the isEqualTo(java.lang.String) method.
      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(@Nullable CharSequence expectedSequence)
      +
      Fails if the string does not contain the given sequence (while ignoring case).
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(@Nullable CharSequence expectedSequence)
      +
      Fails if the string contains the given sequence (while ignoring case).
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/StringSubject.html b/api/1.4.4/com/google/common/truth/StringSubject.html new file mode 100644 index 000000000..75d26a46d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/StringSubject.html @@ -0,0 +1,470 @@ + + + + +StringSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class StringSubject

+
+ +
+
+
+
public class StringSubject +extends ComparableSubject<String>
+
Propositions for string subjects.
+
+
Author:
+
David Saff, Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      StringSubject

      +
      +
      protected StringSubject(FailureMetadata metadata, + @Nullable String string)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEquivalentAccordingToCompareTo

      +
      +
      @Deprecated +public final void isEquivalentAccordingToCompareTo(@Nullable String other)
      +
      Deprecated. +
      Use Subject.isEqualTo(java.lang.Object) instead. String comparison is consistent with equality.
      +
      +
      Description copied from class: ComparableSubject
      +
      Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0). + +

      Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object).

      +
      +
      Overrides:
      +
      isEquivalentAccordingToCompareTo in class ComparableSubject<String>
      +
      +
      +
      +
    • +
    • +
      +

      hasLength

      +
      +
      public void hasLength(int expectedLength)
      +
      Fails if the string does not have the given length.
      +
      +
      +
    • +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the string is not equal to the zero-length "empty string."
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public void isNotEmpty()
      +
      Fails if the string is equal to the zero-length "empty string."
      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(@Nullable CharSequence string)
      +
      Fails if the string does not contain the given sequence.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(@Nullable CharSequence string)
      +
      Fails if the string contains the given sequence.
      +
      +
      +
    • +
    • +
      +

      startsWith

      +
      +
      public void startsWith(@Nullable String string)
      +
      Fails if the string does not start with the given string.
      +
      +
      +
    • +
    • +
      +

      endsWith

      +
      +
      public void endsWith(@Nullable String string)
      +
      Fails if the string does not end with the given string.
      +
      +
      +
    • +
    • +
      +

      matches

      +
      +
      public void matches(@Nullable String regex)
      +
      Fails if the string does not match the given regex.
      +
      +
      +
    • +
    • +
      +

      matches

      +
      +
      @GwtIncompatible("java.util.regex.Pattern") +public void matches(@Nullable Pattern regex)
      +
      Fails if the string does not match the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotMatch

      +
      +
      public void doesNotMatch(@Nullable String regex)
      +
      Fails if the string matches the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotMatch

      +
      +
      @GwtIncompatible("java.util.regex.Pattern") +public void doesNotMatch(@Nullable Pattern regex)
      +
      Fails if the string matches the given regex.
      +
      +
      +
    • +
    • +
      +

      containsMatch

      +
      +
      @GwtIncompatible("java.util.regex.Pattern") +public void containsMatch(@Nullable Pattern regex)
      +
      Fails if the string does not contain a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      containsMatch

      +
      +
      public void containsMatch(@Nullable String regex)
      +
      Fails if the string does not contain a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotContainMatch

      +
      +
      @GwtIncompatible("java.util.regex.Pattern") +public void doesNotContainMatch(@Nullable Pattern regex)
      +
      Fails if the string contains a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotContainMatch

      +
      +
      public void doesNotContainMatch(@Nullable String regex)
      +
      Fails if the string contains a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      ignoringCase

      +
      + +
      Returns a StringSubject-like instance that will ignore the case of the characters. + +

      Character equality ignoring case is defined as follows: Characters must be equal either + after calling Character.toLowerCase(char) or after calling Character.toUpperCase(char). + Note that this is independent of any locale.

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Subject.Factory.html b/api/1.4.4/com/google/common/truth/Subject.Factory.html new file mode 100644 index 000000000..84d283bac --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Subject.Factory.html @@ -0,0 +1,161 @@ + + + + +Subject.Factory (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Subject.Factory<SubjectT extends Subject,ActualT>

+
+
+
+
+
Enclosing class:
+
Subject
+
+
+
public static interface Subject.Factory<SubjectT extends Subject,ActualT>
+
In a fluent assertion chain, the argument to the common overload of about, the method that specifies what kind of + Subject to create. + +

For more information about the fluent chain, see this FAQ entry. + +

For people extending Truth

+ +

When you write a custom subject, see our doc on + extensions. It explains where Subject.Factory fits into the process.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Subject.html b/api/1.4.4/com/google/common/truth/Subject.html new file mode 100644 index 000000000..1e741c996 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Subject.html @@ -0,0 +1,643 @@ + + + + +Subject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Subject

+
+
java.lang.Object +
com.google.common.truth.Subject
+
+
+
+
+
Direct Known Subclasses:
+
BooleanSubject, ClassSubject, ComparableSubject, GuavaOptionalSubject, IntStreamSubject, IterableSubject, LiteProtoSubject, LongStreamSubject, MapSubject, MultimapSubject, ObjectArraySubject, OptionalDoubleSubject, OptionalIntSubject, OptionalLongSubject, OptionalSubject, PathSubject, PrimitiveBooleanArraySubject, PrimitiveByteArraySubject, PrimitiveCharArraySubject, PrimitiveDoubleArraySubject, PrimitiveFloatArraySubject, PrimitiveIntArraySubject, PrimitiveLongArraySubject, PrimitiveShortArraySubject, Re2jSubjects.Re2jStringSubject, StreamSubject, TableSubject, ThrowableSubject
+
+
+
public class Subject +extends Object
+
An object that lets you perform checks on the value under test. For example, Subject + contains isEqualTo(Object) and isInstanceOf(Class), and StringSubject + contains startsWith(String). + +

To create a Subject instance, most users will call an assertThat method. For information about other ways to create an instance, see this FAQ entry. + +

For people extending Truth

+ +

For information about writing a custom Subject, see our doc on extensions.

+
+
Author:
+
David Saff, Christian Gruber
+
+
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Modifier
    +
    Constructor
    +
    Description
    +
    protected
    +
    Subject(FailureMetadata metadata, + @Nullable Object actual)
    +
    +
    Constructor for use by subclasses.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected String
    + +
    +
    Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message.
    +
    +
    protected final StandardSubjectBuilder
    +
    check(String format, + @Nullable Object... args)
    +
    +
    Returns a builder for creating a derived subject.
    +
    +
    final boolean
    +
    equals(@Nullable Object o)
    +
    +
    Deprecated. +
    Object.equals(Object) is not supported on Truth subjects.
    +
    +
    +
    protected final void
    +
    failWithActual(Fact first, + Fact... rest)
    +
    +
    Fails, reporting a message with the given facts, followed by an automatically added fact of the + form: + + + but was: actual value.
    +
    +
    protected final void
    +
    failWithActual(String key, + @Nullable Object value)
    +
    +
    Fails, reporting a message with two "facts": + + + key: value + but was: actual value.
    +
    +
    protected final void
    +
    failWithoutActual(Fact first, + Fact... rest)
    +
    +
    Fails, reporting a message with the given facts, without automatically adding the actual + value.
    +
    +
    final int
    + +
    +
    Deprecated. +
    Object.hashCode() is not supported on Truth subjects.
    +
    +
    +
    protected final StandardSubjectBuilder
    + +
    +
    Begins a new call chain that ignores any failures.
    +
    +
    void
    +
    isAnyOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
    +
    +
    Fails unless the subject is equal to any of the given elements.
    +
    +
    void
    +
    isEqualTo(@Nullable Object expected)
    +
    +
    Fails if the subject is not equal to the given object.
    +
    +
    void
    +
    isIn(@Nullable Iterable<?> iterable)
    +
    +
    Fails unless the subject is equal to any element in the given iterable.
    +
    +
    void
    +
    isInstanceOf(Class<?> clazz)
    +
    +
    Fails if the subject is not an instance of the given class.
    +
    +
    void
    +
    isNoneOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
    +
    +
    Fails if the subject is equal to any of the given elements.
    +
    +
    void
    +
    isNotEqualTo(@Nullable Object unexpected)
    +
    +
    Fails if the subject is equal to the given object.
    +
    +
    void
    +
    isNotIn(@Nullable Iterable<?> iterable)
    +
    +
    Fails if the subject is equal to any element in the given iterable.
    +
    +
    void
    + +
    +
    Fails if the subject is an instance of the given class.
    +
    +
    void
    + +
    +
    Fails if the subject is null.
    +
    +
    final void
    +
    isNotSameInstanceAs(@Nullable Object unexpected)
    +
    +
    Fails if the subject is the same instance as the given object.
    +
    +
    void
    + +
    +
    Fails if the subject is not null.
    +
    +
    final void
    +
    isSameInstanceAs(@Nullable Object expected)
    +
    +
    Fails if the subject is not the same instance as the given object.
    +
    + + +
    +
    Deprecated. +
    Object.toString() is not supported on Truth subjects.
    +
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Subject

      +
      +
      protected Subject(FailureMetadata metadata, + @Nullable Object actual)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isNull

      +
      +
      public void isNull()
      +
      Fails if the subject is not null.
      +
      +
      +
    • +
    • +
      +

      isNotNull

      +
      +
      public void isNotNull()
      +
      Fails if the subject is null.
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      Fails if the subject is not equal to the given object. For the purposes of this comparison, two + objects are equal if any of the following is true: + +
        +
      • they are equal according to Objects.equal(java.lang.Object, java.lang.Object) +
      • they are arrays and are considered equal by the appropriate Arrays.equals(long[], long[]) + overload +
      • they are boxed integer types (Byte, Short, Character, + Integer, or Long) and they are numerically equal when converted to Long. +
      • the actual value is a boxed floating-point type (Double or Float), the + expected value is an Integer, and the two are numerically equal when converted to + Double. (This allows assertThat(someDouble).isEqualTo(0) to pass.) +
      + +

      Note: This method does not test the Object.equals(java.lang.Object) implementation itself; it + assumes that method is functioning correctly according to its contract. Testing an + equals implementation requires a utility such as guava-testlib's EqualsTester. + +

      In some cases, this method might not even call equals. It may instead perform other + tests that will return the same result as long as equals is implemented according to + the contract for its type.

      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public void isNotEqualTo(@Nullable Object unexpected)
      +
      Fails if the subject is equal to the given object. The meaning of equality is the same as for + the isEqualTo(java.lang.Object) method.
      +
      +
      +
    • +
    • +
      +

      isSameInstanceAs

      +
      +
      public final void isSameInstanceAs(@Nullable Object expected)
      +
      Fails if the subject is not the same instance as the given object.
      +
      +
      +
    • +
    • +
      +

      isNotSameInstanceAs

      +
      +
      public final void isNotSameInstanceAs(@Nullable Object unexpected)
      +
      Fails if the subject is the same instance as the given object.
      +
      +
      +
    • +
    • +
      +

      isInstanceOf

      +
      +
      public void isInstanceOf(Class<?> clazz)
      +
      Fails if the subject is not an instance of the given class.
      +
      +
      +
    • +
    • +
      +

      isNotInstanceOf

      +
      +
      public void isNotInstanceOf(Class<?> clazz)
      +
      Fails if the subject is an instance of the given class.
      +
      +
      +
    • +
    • +
      +

      isIn

      +
      +
      public void isIn(@Nullable Iterable<?> iterable)
      +
      Fails unless the subject is equal to any element in the given iterable.
      +
      +
      +
    • +
    • +
      +

      isAnyOf

      +
      +
      public void isAnyOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Fails unless the subject is equal to any of the given elements.
      +
      +
      +
    • +
    • +
      +

      isNotIn

      +
      +
      public void isNotIn(@Nullable Iterable<?> iterable)
      +
      Fails if the subject is equal to any element in the given iterable.
      +
      +
      +
    • +
    • +
      +

      isNoneOf

      +
      +
      public void isNoneOf(@Nullable Object first, + @Nullable Object second, + @Nullable Object @Nullable ... rest)
      +
      Fails if the subject is equal to any of the given elements.
      +
      +
      +
    • +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      @ForOverride +protected String actualCustomStringRepresentation()
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      +
    • +
    • +
      +

      check

      +
      +
      protected final StandardSubjectBuilder check(String format, + @Nullable Object... args)
      +
      Returns a builder for creating a derived subject. + +

      Derived subjects retain the FailureStrategy and messages of the current subject, and in some cases, they + automatically supplement their failure message with information about the original subject. + +

      For example, ThrowableSubject.hasMessageThat(), which returns a StringSubject, + is implemented with check("getMessage()").that(actual.getMessage()). + +

      The arguments to check describe how the new subject was derived from the old, + formatted like a chained method call. This allows Truth to include that information in its + failure messages. For example, assertThat(caught).hasCauseThat().hasMessageThat() will + produce a failure message that includes the string "throwable.getCause().getMessage()," thanks + to internal check calls that supplied "getCause()" and "getMessage()" as arguments. + +

      If the method you're delegating to accepts parameters, you can pass check a format + string. For example, MultimapSubject.valuesForKey(java.lang.Object) calls + check("valuesForKey(%s)", key). + +

      If you aren't really delegating to an instance method on the actual value -- maybe you're + calling a static method, or you're calling a chain of several methods -- you can supply + whatever string will be most useful to users. For example, if you're delegating to + getOnlyElement(actual.colors()), you might call check("onlyColor()").

      +
      +
      Parameters:
      +
      format - a template with %s placeholders
      +
      args - the arguments to be inserted into those placeholders
      +
      +
      +
      +
    • +
    • +
      +

      ignoreCheck

      +
      +
      protected final StandardSubjectBuilder ignoreCheck()
      +
      Begins a new call chain that ignores any failures. This is useful for subjects that normally + delegate with to other subjects by using check() but have already reported a failure. In + such cases it may still be necessary to return a Subject instance even though any + subsequent assertions are meaningless. For example, if a user chains together more ThrowableSubject.hasCauseThat() calls than the actual exception has causes, hasCauseThat + returns ignoreCheck().that(... a dummy exception ...).
      +
      +
      +
    • +
    • +
      +

      failWithActual

      +
      +
      protected final void failWithActual(String key, + @Nullable Object value)
      +
      Fails, reporting a message with two "facts": + +
        +
      • key: value +
      • but was: actual value. +
      + +

      This is the simplest failure API. For more advanced needs, see the other overload and failWithoutActual. + +

      Example usage: The check contains(String) calls failWithActual("expected to + contain", string).

      +
      +
      +
    • +
    • +
      +

      failWithActual

      +
      +
      protected final void failWithActual(Fact first, + Fact... rest)
      +
      Fails, reporting a message with the given facts, followed by an automatically added fact of the + form: + +
        +
      • but was: actual value. +
      + +

      If you have only one fact to report (and it's a key-value fact), + prefer the simpler overload. + +

      Example usage: The check isEmpty() calls failWithActual(simpleFact("expected + to be empty")).

      +
      +
      +
    • +
    • +
      +

      failWithoutActual

      +
      +
      protected final void failWithoutActual(Fact first, + Fact... rest)
      +
      Fails, reporting a message with the given facts, without automatically adding the actual + value. + +

      Most failure messages should report the actual value, so most checks should call failWithActual instead. However, failWithoutActual is + useful in some cases: + +

        +
      • when the actual value is obvious from the rest of the message. For example, + isNotEmpty() calls failWithoutActual(simpleFact("expected not to be empty"). +
      • when the actual value shouldn't come last or should have a different key than the default + of "but was." For example, isNotWithin(...).of(...) calls + failWithoutActual so that it can put the expected and actual values together, followed + by the tolerance. +
      + +

      Example usage: The check isEmpty() calls failWithActual(simpleFact("expected + to be empty")).

      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +public final boolean equals(@Nullable Object o)
      +
      Deprecated. +
      Object.equals(Object) is not supported on Truth subjects. If you are + writing a test assertion (actual vs. expected), use isEqualTo(Object) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +public final int hashCode()
      +
      Deprecated. +
      Object.hashCode() is not supported on Truth subjects.
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    • +
      +

      toString

      +
      +
      @Deprecated +public String toString()
      +
      Deprecated. +
      Object.toString() is not supported on Truth subjects.
      +
      +
      +
      Overrides:
      +
      toString in class Object
      +
      Throws:
      +
      UnsupportedOperationException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/TableSubject.html b/api/1.4.4/com/google/common/truth/TableSubject.html new file mode 100644 index 000000000..136c52a32 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/TableSubject.html @@ -0,0 +1,338 @@ + + + + +TableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TableSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.TableSubject
+
+
+
+
+
+
public final class TableSubject +extends Subject
+
Propositions for Table subjects.
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEmpty

      +
      +
      public void isEmpty()
      +
      Fails if the table is not empty.
      +
      +
      +
    • +
    • +
      +

      isNotEmpty

      +
      +
      public void isNotEmpty()
      +
      Fails if the table is empty.
      +
      +
      +
    • +
    • +
      +

      hasSize

      +
      +
      public final void hasSize(int expectedSize)
      +
      Fails if the table does not have the given size.
      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      public void contains(@Nullable Object rowKey, + @Nullable Object columnKey)
      +
      Fails if the table does not contain a mapping for the given row key and column key.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      public void doesNotContain(@Nullable Object rowKey, + @Nullable Object columnKey)
      +
      Fails if the table contains a mapping for the given row key and column key.
      +
      +
      +
    • +
    • +
      +

      containsCell

      +
      +
      public void containsCell(@Nullable Object rowKey, + @Nullable Object colKey, + @Nullable Object value)
      +
      Fails if the table does not contain the given cell.
      +
      +
      +
    • +
    • +
      +

      containsCell

      +
      +
      public void containsCell(Table.Cell<?,?,?> cell)
      +
      Fails if the table does not contain the given cell.
      +
      +
      +
    • +
    • +
      +

      doesNotContainCell

      +
      +
      public void doesNotContainCell(@Nullable Object rowKey, + @Nullable Object colKey, + @Nullable Object value)
      +
      Fails if the table contains the given cell.
      +
      +
      +
    • +
    • +
      +

      doesNotContainCell

      +
      +
      public void doesNotContainCell(Table.Cell<?,?,?> cell)
      +
      Fails if the table contains the given cell.
      +
      +
      +
    • +
    • +
      +

      containsRow

      +
      +
      public void containsRow(@Nullable Object rowKey)
      +
      Fails if the table does not contain the given row key.
      +
      +
      +
    • +
    • +
      +

      containsColumn

      +
      +
      public void containsColumn(@Nullable Object columnKey)
      +
      Fails if the table does not contain the given column key.
      +
      +
      +
    • +
    • +
      +

      containsValue

      +
      +
      public void containsValue(@Nullable Object value)
      +
      Fails if the table does not contain the given value.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/ThrowableSubject.html b/api/1.4.4/com/google/common/truth/ThrowableSubject.html new file mode 100644 index 000000000..81c9d7299 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/ThrowableSubject.html @@ -0,0 +1,242 @@ + + + + +ThrowableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ThrowableSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.ThrowableSubject
+
+
+
+
+
+
Direct Known Subclasses:
+
TruthFailureSubject
+
+
+
public class ThrowableSubject +extends Subject
+
Propositions for Throwable subjects. + +

Truth does not provide its own support for calling a method and automatically catching an + expected exception, only for asserting on the exception after it has been caught. To catch the + exception, we suggest assertThrows (JUnit), + assertFailsWith (kotlin.test), or similar functionality from your testing library of + choice. + +

+ InvocationTargetException expected =
+     assertThrows(InvocationTargetException.class, () -> method.invoke(null));
+ assertThat(expected).hasCauseThat().isInstanceOf(IOException.class);
+ 
+
+
Author:
+
Kurt Alfred Kluever
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ThrowableSubject

      +
      +
      protected ThrowableSubject(FailureMetadata metadata, + @Nullable Throwable throwable)
      +
      Constructor for use by subclasses. If you want to create an instance of this class itself, call + check(...).that(actual).
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasMessageThat

      +
      +
      public final StringSubject hasMessageThat()
      +
      Returns a StringSubject to make assertions about the throwable's message.
      +
      +
      +
    • +
    • +
      +

      hasCauseThat

      +
      +
      public final ThrowableSubject hasCauseThat()
      +
      Returns a new ThrowableSubject that supports assertions on this throwable's direct + cause. This method can be invoked repeatedly (e.g. + assertThat(e).hasCauseThat().hasCauseThat().... to assert on a particular indirect cause.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Truth.html b/api/1.4.4/com/google/common/truth/Truth.html new file mode 100644 index 000000000..6ace72190 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Truth.html @@ -0,0 +1,702 @@ + + + + +Truth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Truth

+
+
java.lang.Object +
com.google.common.truth.Truth
+
+
+
+
+
public final class Truth +extends Object
+
The primary entry point for Truth, a library for fluent test + assertions. + +

Compare these example JUnit assertions... + +


+ assertEquals(b, a);
+ assertTrue(c);
+ assertTrue(d.contains(a));
+ assertTrue(d.contains(a) && d.contains(b));
+ assertTrue(d.contains(a) || d.contains(b) || d.contains(c));
+ 
+ + ...to their Truth equivalents... + +

+ assertThat(a).isEqualTo(b);
+ assertThat(c).isTrue();
+ assertThat(d).contains(a);
+ assertThat(d).containsAtLeast(a, b);
+ assertThat(d).containsAnyOf(a, b, c);
+ 
+ +

Advantages of Truth: + +

+ +

For more information about the methods in this class, see this FAQ entry. + +

For people extending Truth

+ +

The most common way to extend Truth is to write a custom Subject. (The other, much + less common way is to write a custom FailureStrategy.) For more information, visit those + types' docs.

+
+
Author:
+
David Saff, Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      assert_

      +
      +
      public static StandardSubjectBuilder assert_()
      +
      Begins a call chain with the fluent Truth API. If the check made by the chain fails, it will + throw AssertionError.
      +
      +
      +
    • +
    • +
      +

      assertWithMessage

      +
      +
      public static StandardSubjectBuilder assertWithMessage(@Nullable String messageToPrepend)
      +
      Begins an assertion that, if it fails, will prepend the given message to the failure message. + +

      This method is a shortcut for assert_().withMessage(...). + +

      To set a message when using a custom subject, use assertWithMessage(...).about(...), as discussed in this FAQ entry.

      +
      +
      +
    • +
    • +
      +

      assertWithMessage

      +
      +
      public static StandardSubjectBuilder assertWithMessage(String format, + @Nullable Object... args)
      +
      Begins an assertion that, if it fails, will prepend the given message to the failure message. + +

      Note: the arguments will be substituted into the format template using Strings.lenientFormat. Note this only supports + the %s specifier. + +

      This method is a shortcut for assert_().withMessage(...). + +

      To set a message when using a custom subject, use assertWithMessage(...).about(...), as discussed in this FAQ entry.

      +
      +
      Throws:
      +
      IllegalArgumentException - if the number of placeholders in the format string does not + equal the number of given arguments
      +
      +
      +
      +
    • +
    • +
      +

      assertAbout

      +
      +
      public static <S extends Subject, +T> +SimpleSubjectBuilder<S,T> assertAbout(Subject.Factory<S,T> factory)
      +
      Given a factory for some Subject class, returns a builder whose that(actual) + method creates instances of that class.
      +
      +
      +
    • +
    • +
      +

      assertAbout

      +
      +
      public static <CustomSubjectBuilderT extends CustomSubjectBuilder> +CustomSubjectBuilderT assertAbout(CustomSubjectBuilder.Factory<CustomSubjectBuilderT> factory)
      +
      A generic, advanced method of extension of Truth to new types, which is documented on CustomSubjectBuilder. Extension creators should prefer Subject.Factory if possible.
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static <ComparableT extends Comparable<?>> +ComparableSubject<ComparableT> assertThat(@Nullable ComparableT actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static BigDecimalSubject assertThat(@Nullable BigDecimal actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static Subject assertThat(@Nullable Object actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      @GwtIncompatible("ClassSubject.java") +public static ClassSubject assertThat(@Nullable Class<?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static ThrowableSubject assertThat(@Nullable Throwable actual)
      +
      Begins an assertion about a Throwable. + +

      Truth does not provide its own support for calling a method and automatically catching an + expected exception, only for asserting on the exception after it has been caught. To catch the + exception, we suggest assertThrows (JUnit), + assertFailsWith (kotlin.test), or similar functionality from your testing library + of choice. + +

      + InvocationTargetException expected =
      +     assertThrows(InvocationTargetException.class, () -> method.invoke(null));
      + assertThat(expected).hasCauseThat().isInstanceOf(IOException.class);
      + 
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static LongSubject assertThat(@Nullable Long actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static DoubleSubject assertThat(@Nullable Double actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static FloatSubject assertThat(@Nullable Float actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static IntegerSubject assertThat(@Nullable Integer actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static BooleanSubject assertThat(@Nullable Boolean actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static StringSubject assertThat(@Nullable String actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static IterableSubject assertThat(@Nullable Iterable<?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static <T extends @Nullable Object> +ObjectArraySubject<T> assertThat(T @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveBooleanArraySubject assertThat(boolean @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveShortArraySubject assertThat(short @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveIntArraySubject assertThat(int @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveLongArraySubject assertThat(long @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveByteArraySubject assertThat(byte @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveCharArraySubject assertThat(char @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveFloatArraySubject assertThat(float @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static PrimitiveDoubleArraySubject assertThat(double @Nullable [] actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static GuavaOptionalSubject assertThat(@Nullable Optional<?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static MapSubject assertThat(@Nullable Map<?,?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static MultimapSubject assertThat(@Nullable Multimap<?,?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static MultisetSubject assertThat(@Nullable Multiset<?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static TableSubject assertThat(@Nullable Table<?,?,?> actual)
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static OptionalSubject assertThat(@Nullable Optional<?> actual)
      +
      +
      Since:
      +
      1.3.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static OptionalIntSubject assertThat(@Nullable OptionalInt actual)
      +
      +
      Since:
      +
      1.3.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static OptionalLongSubject assertThat(@Nullable OptionalLong actual)
      +
      +
      Since:
      +
      1.4.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static OptionalDoubleSubject assertThat(@Nullable OptionalDouble actual)
      +
      +
      Since:
      +
      1.4.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static StreamSubject assertThat(@Nullable Stream<?> actual)
      +
      +
      Since:
      +
      1.4.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static IntStreamSubject assertThat(@Nullable IntStream actual)
      +
      +
      Since:
      +
      1.4.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      public static LongStreamSubject assertThat(@Nullable LongStream actual)
      +
      +
      Since:
      +
      1.4.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    • +
      +

      assertThat

      +
      +
      @GwtIncompatible +@J2ObjCIncompatible +public static PathSubject assertThat(@Nullable Path actual)
      +
      +
      Since:
      +
      1.4.0 (present in Truth8 since before 1.0)
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/Truth8.html b/api/1.4.4/com/google/common/truth/Truth8.html new file mode 100644 index 000000000..38a61db39 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/Truth8.html @@ -0,0 +1,262 @@ + + + + +Truth8 (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Truth8

+
+
java.lang.Object +
com.google.common.truth.Truth8
+
+
+
+
+
@Deprecated +public final class Truth8 +extends Object
+
Deprecated. +
Instead of this class's methods, use the identical methods declared in the main + Truth class. In most cases, you can migrate your whole project + mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;' + Migration is important if you static import assertThat: If you do not migrate, + such static imports will become ambiguous in Truth 1.4.2, breaking your build.
+
+
The obsolete entry point for assertions about Java 8 types.
+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/TruthFailureSubject.html b/api/1.4.4/com/google/common/truth/TruthFailureSubject.html new file mode 100644 index 000000000..5c8270cb6 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/TruthFailureSubject.html @@ -0,0 +1,248 @@ + + + + +TruthFailureSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TruthFailureSubject

+
+ +
+
+
+
public final class TruthFailureSubject +extends ThrowableSubject
+
Subject for AssertionError objects thrown by Truth. TruthFailureSubject contains + methods for asserting about the individual "facts" of those failures. This allows tests to avoid + asserting about the same fact more often than necessary, including avoiding asserting about facts + that are set by other subjects that the main subject delegates to. This keeps tests shorter and + less fragile. + +

To create an instance, call ExpectFailure.assertThat(java.lang.AssertionError). Or, if you're using a custom + message or failure strategy, pass truthFailures() to your about(...) call. + +

This class accepts any AssertionError value, but it will throw an exception if a + caller tries to access the facts of an error that wasn't produced by Truth.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      truthFailures

      +
      +
      public static Subject.Factory<TruthFailureSubject,AssertionError> truthFailures()
      +
      Factory for creating TruthFailureSubject instances. Most users will just use ExpectFailure.assertThat(java.lang.AssertionError).
      +
      +
      +
    • +
    • +
      +

      factKeys

      +
      +
      public IterableSubject factKeys()
      +
      Returns a subject for the list of fact keys.
      +
      +
      +
    • +
    • +
      +

      factValue

      +
      +
      public StringSubject factValue(String key)
      +
      Returns a subject for the value with the given name. + +

      The value is always a string, the String.valueOf representation of the value passed + to Fact.fact(java.lang.String, java.lang.Object). + +

      The value is never null: + +

        +
      • In the case of facts that have no value, factValue + throws an exception. To test for such facts, use factKeys() + .contains(...) or a similar method. +
      • In the case of facts that have a value that is rendered as "null" (such as those created + with fact("key", null)), factValue considers them have a string value, + the string "null." +
      + +

      If the failure under test contains more than one fact with the given key, this method will + fail the test. To assert about such a failure, use the + other overload of factValue.

      +
      +
      +
    • +
    • +
      +

      factValue

      +
      +
      public StringSubject factValue(String key, + int index)
      +
      Returns a subject for the value of the index-th instance of the fact with the given + name. Most Truth failures do not contain multiple facts with the same key, so most tests should + use the other overload of factValue.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/TruthJUnit.html b/api/1.4.4/com/google/common/truth/TruthJUnit.html new file mode 100644 index 000000000..e27d148a4 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/TruthJUnit.html @@ -0,0 +1,176 @@ + + + + +TruthJUnit (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TruthJUnit

+
+
java.lang.Object +
com.google.common.truth.TruthJUnit
+
+
+
+
+
@GwtIncompatible("JUnit4") +public final class TruthJUnit +extends Object
+
Provides a way to use Truth to perform JUnit "assumptions." An assumption is a check that, if + false, aborts (skips) the test. This is especially useful in JUnit theories, parameterized tests, + or other combinatorial tests where some subset of the combinations are simply not applicable for + testing. + +

For example: + +


+ import static com.google.common.truth.Truth.assertThat;
+ import static com.google.common.truth.TruthJUnit.assume;
+
+ public void @Test testFoosAgainstBars {
+   assume().that(foo).isNotNull();
+   assume().that(bar).isNotNull();
+   assertThat(foo.times(bar)).isEqualTo(blah);
+ }
+ 
+
+
Author:
+
David Saff, Christian Gruber (cgruber@israfil.net)
+
+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/BigDecimalSubject.html b/api/1.4.4/com/google/common/truth/class-use/BigDecimalSubject.html new file mode 100644 index 000000000..5f3ca5b94 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/BigDecimalSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.BigDecimalSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.BigDecimalSubject

+
+
Packages that use BigDecimalSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/BooleanSubject.html b/api/1.4.4/com/google/common/truth/class-use/BooleanSubject.html new file mode 100644 index 000000000..3933f7d9b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/BooleanSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.BooleanSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.BooleanSubject

+
+
Packages that use BooleanSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ClassSubject.html b/api/1.4.4/com/google/common/truth/class-use/ClassSubject.html new file mode 100644 index 000000000..43a5dfed6 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ClassSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.ClassSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.ClassSubject

+
+
Packages that use ClassSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ComparableSubject.html b/api/1.4.4/com/google/common/truth/class-use/ComparableSubject.html new file mode 100644 index 000000000..ef997f248 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ComparableSubject.html @@ -0,0 +1,125 @@ + + + + +Uses of Class com.google.common.truth.ComparableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.ComparableSubject

+
+
Packages that use ComparableSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Correspondence.BinaryPredicate.html b/api/1.4.4/com/google/common/truth/class-use/Correspondence.BinaryPredicate.html new file mode 100644 index 000000000..c6c33d475 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Correspondence.BinaryPredicate.html @@ -0,0 +1,91 @@ + + + + +Uses of Interface com.google.common.truth.Correspondence.BinaryPredicate (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.Correspondence.BinaryPredicate

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Correspondence.DiffFormatter.html b/api/1.4.4/com/google/common/truth/class-use/Correspondence.DiffFormatter.html new file mode 100644 index 000000000..f51f10515 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Correspondence.DiffFormatter.html @@ -0,0 +1,99 @@ + + + + +Uses of Interface com.google.common.truth.Correspondence.DiffFormatter (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.Correspondence.DiffFormatter

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Correspondence.html b/api/1.4.4/com/google/common/truth/class-use/Correspondence.html new file mode 100644 index 000000000..36b636f07 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Correspondence.html @@ -0,0 +1,144 @@ + + + + +Uses of Class com.google.common.truth.Correspondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.Correspondence

+
+
Packages that use Correspondence
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.Factory.html b/api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.Factory.html new file mode 100644 index 000000000..af4583a36 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.Factory.html @@ -0,0 +1,113 @@ + + + + +Uses of Interface com.google.common.truth.CustomSubjectBuilder.Factory (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.CustomSubjectBuilder.Factory

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.html b/api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.html new file mode 100644 index 000000000..f91c8b081 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/CustomSubjectBuilder.html @@ -0,0 +1,124 @@ + + + + +Uses of Class com.google.common.truth.CustomSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.CustomSubjectBuilder

+
+
Packages that use CustomSubjectBuilder
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/DoubleSubject.TolerantDoubleComparison.html b/api/1.4.4/com/google/common/truth/class-use/DoubleSubject.TolerantDoubleComparison.html new file mode 100644 index 000000000..8bedbbed5 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/DoubleSubject.TolerantDoubleComparison.html @@ -0,0 +1,95 @@ + + + + +Uses of Class com.google.common.truth.DoubleSubject.TolerantDoubleComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.DoubleSubject.TolerantDoubleComparison

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/DoubleSubject.html b/api/1.4.4/com/google/common/truth/class-use/DoubleSubject.html new file mode 100644 index 000000000..ab42ef786 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/DoubleSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.DoubleSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.DoubleSubject

+
+
Packages that use DoubleSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Expect.html b/api/1.4.4/com/google/common/truth/class-use/Expect.html new file mode 100644 index 000000000..c3f67280d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Expect.html @@ -0,0 +1,88 @@ + + + + +Uses of Class com.google.common.truth.Expect (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.Expect

+
+
Packages that use Expect
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.SimpleSubjectBuilderCallback.html b/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.SimpleSubjectBuilderCallback.html new file mode 100644 index 000000000..a55ab0580 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.SimpleSubjectBuilderCallback.html @@ -0,0 +1,90 @@ + + + + +Uses of Interface com.google.common.truth.ExpectFailure.SimpleSubjectBuilderCallback (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.ExpectFailure.SimpleSubjectBuilderCallback

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.StandardSubjectBuilderCallback.html b/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.StandardSubjectBuilderCallback.html new file mode 100644 index 000000000..ffec0e327 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.StandardSubjectBuilderCallback.html @@ -0,0 +1,88 @@ + + + + +Uses of Interface com.google.common.truth.ExpectFailure.StandardSubjectBuilderCallback (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.ExpectFailure.StandardSubjectBuilderCallback

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.html b/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.html new file mode 100644 index 000000000..b2808874d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ExpectFailure.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.ExpectFailure (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.ExpectFailure

+
+No usage of com.google.common.truth.ExpectFailure
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Fact.html b/api/1.4.4/com/google/common/truth/class-use/Fact.html new file mode 100644 index 000000000..7a9440383 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Fact.html @@ -0,0 +1,119 @@ + + + + +Uses of Class com.google.common.truth.Fact (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.Fact

+
+
Packages that use Fact
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+
    +
  • +
    +

    Uses of Fact in com.google.common.truth

    +
    Methods in com.google.common.truth that return Fact
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static Fact
    +
    Fact.fact(String key, + @Nullable Object value)
    +
    +
    Creates a fact with the given key and value, which will be printed in a format like "key: + value." The value is converted to a string by calling String.valueOf on it.
    +
    +
    static Fact
    +
    Fact.simpleFact(String key)
    +
    +
    Creates a fact with no value, which will be printed in the format "key" (with no colon or + value).
    +
    +
    +
    Methods in com.google.common.truth with parameters of type Fact
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final void
    +
    Subject.failWithActual(Fact first, + Fact... rest)
    +
    +
    Fails, reporting a message with the given facts, followed by an automatically added fact of the + form: + + + but was: actual value.
    +
    +
    protected final void
    +
    Subject.failWithoutActual(Fact first, + Fact... rest)
    +
    +
    Fails, reporting a message with the given facts, without automatically adding the actual + value.
    +
    +
    +
    +
  • +
+
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/FailureMetadata.html b/api/1.4.4/com/google/common/truth/class-use/FailureMetadata.html new file mode 100644 index 000000000..4283b49cb --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/FailureMetadata.html @@ -0,0 +1,204 @@ + + + + +Uses of Class com.google.common.truth.FailureMetadata (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.FailureMetadata

+
+
Packages that use FailureMetadata
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/FailureStrategy.html b/api/1.4.4/com/google/common/truth/class-use/FailureStrategy.html new file mode 100644 index 000000000..0e5542735 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/FailureStrategy.html @@ -0,0 +1,88 @@ + + + + +Uses of Interface com.google.common.truth.FailureStrategy (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.FailureStrategy

+
+
Packages that use FailureStrategy
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/FloatSubject.TolerantFloatComparison.html b/api/1.4.4/com/google/common/truth/class-use/FloatSubject.TolerantFloatComparison.html new file mode 100644 index 000000000..0a08f831f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/FloatSubject.TolerantFloatComparison.html @@ -0,0 +1,95 @@ + + + + +Uses of Class com.google.common.truth.FloatSubject.TolerantFloatComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.FloatSubject.TolerantFloatComparison

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/FloatSubject.html b/api/1.4.4/com/google/common/truth/class-use/FloatSubject.html new file mode 100644 index 000000000..1b0840b1b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/FloatSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.FloatSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.FloatSubject

+
+
Packages that use FloatSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/GuavaOptionalSubject.html b/api/1.4.4/com/google/common/truth/class-use/GuavaOptionalSubject.html new file mode 100644 index 000000000..5bb02b35f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/GuavaOptionalSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.GuavaOptionalSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.GuavaOptionalSubject

+
+
Packages that use GuavaOptionalSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/IntStreamSubject.html b/api/1.4.4/com/google/common/truth/class-use/IntStreamSubject.html new file mode 100644 index 000000000..75d035a01 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/IntStreamSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.IntStreamSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.IntStreamSubject

+
+
Packages that use IntStreamSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/IntegerSubject.TolerantIntegerComparison.html b/api/1.4.4/com/google/common/truth/class-use/IntegerSubject.TolerantIntegerComparison.html new file mode 100644 index 000000000..a2762cf85 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/IntegerSubject.TolerantIntegerComparison.html @@ -0,0 +1,95 @@ + + + + +Uses of Class com.google.common.truth.IntegerSubject.TolerantIntegerComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.IntegerSubject.TolerantIntegerComparison

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/IntegerSubject.html b/api/1.4.4/com/google/common/truth/class-use/IntegerSubject.html new file mode 100644 index 000000000..873f08167 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/IntegerSubject.html @@ -0,0 +1,110 @@ + + + + +Uses of Class com.google.common.truth.IntegerSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.IntegerSubject

+
+
Packages that use IntegerSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/IterableSubject.UsingCorrespondence.html b/api/1.4.4/com/google/common/truth/class-use/IterableSubject.UsingCorrespondence.html new file mode 100644 index 000000000..a719917fe --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/IterableSubject.UsingCorrespondence.html @@ -0,0 +1,127 @@ + + + + +Uses of Class com.google.common.truth.IterableSubject.UsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.IterableSubject.UsingCorrespondence

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/IterableSubject.html b/api/1.4.4/com/google/common/truth/class-use/IterableSubject.html new file mode 100644 index 000000000..71c3b6c9d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/IterableSubject.html @@ -0,0 +1,153 @@ + + + + +Uses of Class com.google.common.truth.IterableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.IterableSubject

+
+
Packages that use IterableSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/LongStreamSubject.html b/api/1.4.4/com/google/common/truth/class-use/LongStreamSubject.html new file mode 100644 index 000000000..2b23b3b50 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/LongStreamSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.LongStreamSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.LongStreamSubject

+
+
Packages that use LongStreamSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/LongSubject.TolerantLongComparison.html b/api/1.4.4/com/google/common/truth/class-use/LongSubject.TolerantLongComparison.html new file mode 100644 index 000000000..a2683b1f9 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/LongSubject.TolerantLongComparison.html @@ -0,0 +1,95 @@ + + + + +Uses of Class com.google.common.truth.LongSubject.TolerantLongComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.LongSubject.TolerantLongComparison

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/LongSubject.html b/api/1.4.4/com/google/common/truth/class-use/LongSubject.html new file mode 100644 index 000000000..93c5d3c61 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/LongSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.LongSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.LongSubject

+
+
Packages that use LongSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/MapSubject.UsingCorrespondence.html b/api/1.4.4/com/google/common/truth/class-use/MapSubject.UsingCorrespondence.html new file mode 100644 index 000000000..28186bb01 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/MapSubject.UsingCorrespondence.html @@ -0,0 +1,94 @@ + + + + +Uses of Class com.google.common.truth.MapSubject.UsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.MapSubject.UsingCorrespondence

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/MapSubject.html b/api/1.4.4/com/google/common/truth/class-use/MapSubject.html new file mode 100644 index 000000000..baead1dcb --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/MapSubject.html @@ -0,0 +1,110 @@ + + + + +Uses of Class com.google.common.truth.MapSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.MapSubject

+
+
Packages that use MapSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/MultimapSubject.UsingCorrespondence.html b/api/1.4.4/com/google/common/truth/class-use/MultimapSubject.UsingCorrespondence.html new file mode 100644 index 000000000..a7d8e58a7 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/MultimapSubject.UsingCorrespondence.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.MultimapSubject.UsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.MultimapSubject.UsingCorrespondence

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/MultimapSubject.html b/api/1.4.4/com/google/common/truth/class-use/MultimapSubject.html new file mode 100644 index 000000000..25d6301d2 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/MultimapSubject.html @@ -0,0 +1,110 @@ + + + + +Uses of Class com.google.common.truth.MultimapSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.MultimapSubject

+
+
Packages that use MultimapSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/MultisetSubject.html b/api/1.4.4/com/google/common/truth/class-use/MultisetSubject.html new file mode 100644 index 000000000..0098addf6 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/MultisetSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.MultisetSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.MultisetSubject

+
+
Packages that use MultisetSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ObjectArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/ObjectArraySubject.html new file mode 100644 index 000000000..42dc98238 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ObjectArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.ObjectArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.ObjectArraySubject

+
+
Packages that use ObjectArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/OptionalDoubleSubject.html b/api/1.4.4/com/google/common/truth/class-use/OptionalDoubleSubject.html new file mode 100644 index 000000000..84fd6cbd1 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/OptionalDoubleSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.OptionalDoubleSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.OptionalDoubleSubject

+
+
Packages that use OptionalDoubleSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/OptionalIntSubject.html b/api/1.4.4/com/google/common/truth/class-use/OptionalIntSubject.html new file mode 100644 index 000000000..aefa92f99 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/OptionalIntSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.OptionalIntSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.OptionalIntSubject

+
+
Packages that use OptionalIntSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/OptionalLongSubject.html b/api/1.4.4/com/google/common/truth/class-use/OptionalLongSubject.html new file mode 100644 index 000000000..d12405f58 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/OptionalLongSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.OptionalLongSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.OptionalLongSubject

+
+
Packages that use OptionalLongSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/OptionalSubject.html b/api/1.4.4/com/google/common/truth/class-use/OptionalSubject.html new file mode 100644 index 000000000..316e02ebb --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/OptionalSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.OptionalSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.OptionalSubject

+
+
Packages that use OptionalSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Ordered.html b/api/1.4.4/com/google/common/truth/class-use/Ordered.html new file mode 100644 index 000000000..248622224 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Ordered.html @@ -0,0 +1,432 @@ + + + + +Uses of Interface com.google.common.truth.Ordered (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.Ordered

+
+
Packages that use Ordered
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PathSubject.html b/api/1.4.4/com/google/common/truth/class-use/PathSubject.html new file mode 100644 index 000000000..469e30518 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PathSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.PathSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PathSubject

+
+
Packages that use PathSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveBooleanArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveBooleanArraySubject.html new file mode 100644 index 000000000..d119a8303 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveBooleanArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveBooleanArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveBooleanArraySubject

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveByteArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveByteArraySubject.html new file mode 100644 index 000000000..215bf98ca --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveByteArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveByteArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveByteArraySubject

+
+
Packages that use PrimitiveByteArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveCharArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveCharArraySubject.html new file mode 100644 index 000000000..e1bbd74fa --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveCharArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveCharArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveCharArraySubject

+
+
Packages that use PrimitiveCharArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html new file mode 100644 index 000000000..531fa87f1 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.DoubleArrayAsIterable.html @@ -0,0 +1,93 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.html new file mode 100644 index 000000000..4da9fdf8f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveDoubleArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveDoubleArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveDoubleArraySubject

+
+
Packages that use PrimitiveDoubleArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.FloatArrayAsIterable.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.FloatArrayAsIterable.html new file mode 100644 index 000000000..7e3d2a947 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.FloatArrayAsIterable.html @@ -0,0 +1,93 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.html new file mode 100644 index 000000000..b08cd832b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveFloatArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveFloatArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveFloatArraySubject

+
+
Packages that use PrimitiveFloatArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveIntArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveIntArraySubject.html new file mode 100644 index 000000000..bcd58baab --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveIntArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveIntArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveIntArraySubject

+
+
Packages that use PrimitiveIntArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveLongArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveLongArraySubject.html new file mode 100644 index 000000000..5167eb925 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveLongArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveLongArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveLongArraySubject

+
+
Packages that use PrimitiveLongArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/PrimitiveShortArraySubject.html b/api/1.4.4/com/google/common/truth/class-use/PrimitiveShortArraySubject.html new file mode 100644 index 000000000..d8dc4a779 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/PrimitiveShortArraySubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.PrimitiveShortArraySubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.PrimitiveShortArraySubject

+
+
Packages that use PrimitiveShortArraySubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/SimpleSubjectBuilder.html b/api/1.4.4/com/google/common/truth/class-use/SimpleSubjectBuilder.html new file mode 100644 index 000000000..0830fddc1 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/SimpleSubjectBuilder.html @@ -0,0 +1,106 @@ + + + + +Uses of Class com.google.common.truth.SimpleSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.SimpleSubjectBuilder

+
+
Packages that use SimpleSubjectBuilder
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/StandardSubjectBuilder.html b/api/1.4.4/com/google/common/truth/class-use/StandardSubjectBuilder.html new file mode 100644 index 000000000..98c2c0c2d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/StandardSubjectBuilder.html @@ -0,0 +1,158 @@ + + + + +Uses of Class com.google.common.truth.StandardSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.StandardSubjectBuilder

+
+
Packages that use StandardSubjectBuilder
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/StreamSubject.html b/api/1.4.4/com/google/common/truth/class-use/StreamSubject.html new file mode 100644 index 000000000..f5498f0ec --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/StreamSubject.html @@ -0,0 +1,107 @@ + + + + +Uses of Class com.google.common.truth.StreamSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.StreamSubject

+
+
Packages that use StreamSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/StringSubject.CaseInsensitiveStringComparison.html b/api/1.4.4/com/google/common/truth/class-use/StringSubject.CaseInsensitiveStringComparison.html new file mode 100644 index 000000000..6bf8e59b8 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/StringSubject.CaseInsensitiveStringComparison.html @@ -0,0 +1,88 @@ + + + + +Uses of Class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.StringSubject.CaseInsensitiveStringComparison

+
+ +
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/StringSubject.html b/api/1.4.4/com/google/common/truth/class-use/StringSubject.html new file mode 100644 index 000000000..e67420df2 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/StringSubject.html @@ -0,0 +1,106 @@ + + + + +Uses of Class com.google.common.truth.StringSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.StringSubject

+
+
Packages that use StringSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Subject.Factory.html b/api/1.4.4/com/google/common/truth/class-use/Subject.Factory.html new file mode 100644 index 000000000..9b1cdefad --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Subject.Factory.html @@ -0,0 +1,209 @@ + + + + +Uses of Interface com.google.common.truth.Subject.Factory (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.Subject.Factory

+
+
Packages that use Subject.Factory
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+ +
 
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Subject.html b/api/1.4.4/com/google/common/truth/class-use/Subject.html new file mode 100644 index 000000000..f1e1ebe08 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Subject.html @@ -0,0 +1,375 @@ + + + + +Uses of Class com.google.common.truth.Subject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.Subject

+
+
Packages that use Subject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+ +
 
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/TableSubject.html b/api/1.4.4/com/google/common/truth/class-use/TableSubject.html new file mode 100644 index 000000000..a8228c6d9 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/TableSubject.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.TableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.TableSubject

+
+
Packages that use TableSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/ThrowableSubject.html b/api/1.4.4/com/google/common/truth/class-use/ThrowableSubject.html new file mode 100644 index 000000000..b764c51f3 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/ThrowableSubject.html @@ -0,0 +1,108 @@ + + + + +Uses of Class com.google.common.truth.ThrowableSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.ThrowableSubject

+
+
Packages that use ThrowableSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Truth.html b/api/1.4.4/com/google/common/truth/class-use/Truth.html new file mode 100644 index 000000000..ffdd5a433 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Truth.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.Truth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.Truth

+
+No usage of com.google.common.truth.Truth
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/Truth8.html b/api/1.4.4/com/google/common/truth/class-use/Truth8.html new file mode 100644 index 000000000..a99a5126f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/Truth8.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.Truth8 (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.Truth8

+
+No usage of com.google.common.truth.Truth8
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/TruthFailureSubject.html b/api/1.4.4/com/google/common/truth/class-use/TruthFailureSubject.html new file mode 100644 index 000000000..4ce100e98 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/TruthFailureSubject.html @@ -0,0 +1,100 @@ + + + + +Uses of Class com.google.common.truth.TruthFailureSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.TruthFailureSubject

+
+
Packages that use TruthFailureSubject
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/class-use/TruthJUnit.html b/api/1.4.4/com/google/common/truth/class-use/TruthJUnit.html new file mode 100644 index 000000000..b3a23b31f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/class-use/TruthJUnit.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.TruthJUnit (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.TruthJUnit

+
+No usage of com.google.common.truth.TruthJUnit
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/FieldScope.html b/api/1.4.4/com/google/common/truth/extensions/proto/FieldScope.html new file mode 100644 index 000000000..5df3b7ba8 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/FieldScope.html @@ -0,0 +1,369 @@ + + + + +FieldScope (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FieldScope

+
+
java.lang.Object +
com.google.common.truth.extensions.proto.FieldScope
+
+
+
+
+
public abstract class FieldScope +extends Object
+
An immutable, abstract representation of a set of specific field paths. See FieldScopes + for entry points to obtain a FieldScope object. + +

A FieldScope is similar in concept to a FieldMask, which is an explicitly + enumerated set of specific field paths. A FieldScope is more general, allowing for the + description of arbitrary classes of specific field paths to be included or excluded from its + definition. For example, given a large protocol buffer with many field definitions, and a single + string field named 'x', it is arduous to specify "All fields except 'x'" as a FieldMask. + With a FieldScope, it is simply + FieldScopes.ignoringFields(MyMessage.X_FIELD_NUMBER). + +

All inclusion and exclusion operations on message-type fields are recursive, but may be + overridden by subsequent operations. In this way, a complex FieldScope such as: + +


+ FieldScopes.ignoringFields(A.B_FIELD_NUMBER)
+     .allowingFieldDescriptors(B.getDescriptor().findFieldByName("flag"))
+ 
+ + ...will match all fields on A, except fields on the message type B, but including B's flag field. + Thus, two messages of type A will compare equal even if their sub messages of type B are + completely different, so long as the 'flag' fields for each B matches. Because of this, method + ordering matters. Generally, exclusions should come after inclusions. + +

FieldScopes are not designed to be compact or efficient, trading flexibility of use + for runtime efficiency, generally composing themselves as recursive structures. For this reason, + it is not recommended to use FieldScope in production code. Prefer to use proper + FieldMasks, directly in production code.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFields

      +
      +
      public abstract FieldScope ignoringFields(int firstFieldNumber, + int... rest)
      +
      Returns a FieldScope equivalent to this one, minus all fields defined by the given + field numbers. + +

      Validation of the field numbers is performed when the FieldScope is invoked + (typically by ProtoFluentAssertion.isEqualTo(com.google.protobuf.Message)). A runtime exception will occur if bad + field numbers are encountered. + +

      The field numbers are ignored recursively on this type. That is, if YourMessage + contains another YourMessage somewhere within its subtree, a FieldScope + ignoringFields(X) will ignore field number X for all submessages of type + YourMessage, as well as for the top-level message.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public abstract FieldScope ignoringFields(Iterable<Integer> fieldNumbers)
      +
      Returns a FieldScope equivalent to this one, minus all fields defined by the given + field numbers. + +

      Validation of the field numbers is performed when the FieldScope is invoked + (typically by ProtoFluentAssertion.isEqualTo(com.google.protobuf.Message)). A runtime exception will occur if bad + field numbers are encountered. + +

      The field numbers are ignored recursively on this type. That is, if YourMessage + contains another YourMessage somewhere within its subtree, a FieldScope + ignoringFields(X) will ignore field number X for all submessages of type + YourMessage, as well as for the top-level message.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public abstract FieldScope ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Returns a FieldScope equivalent to this one, minus all fields matching the given Descriptors.FieldDescriptors. + +

      The Descriptors.FieldDescriptors are not validated, as that would require scanning the entire + protobuf schema recursively from this message type. If a Descriptors.FieldDescriptor is provided + which refers to a field that is not part of this message, or any possible recursive + submessages, it is silently ignored. + +

      The field descriptors are also ignored recursively on the message type. That is, if + FooMessage.field_bar is ignored, field_bar will be ignored for all submessages of the + parent type of type FooMessage.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public abstract FieldScope ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Returns a FieldScope equivalent to this one, minus all fields defined by the given + field numbers. + +

      The Descriptors.FieldDescriptors are not validated, as that would require scanning the entire + protobuf schema recursively from this message type. If a Descriptors.FieldDescriptor is provided + which refers to a field that is not part of this message, or any possible recursive + submessages, it is silently ignored. + +

      The field descriptors are also ignored recursively on the message type. That is, if + FooMessage.field_bar is ignored, field_bar will be ignored for all submessages of the + parent type of type FooMessage.

      +
      +
      +
    • +
    • +
      +

      allowingFields

      +
      +
      public abstract FieldScope allowingFields(int firstFieldNumber, + int... rest)
      +
      Returns a FieldScope equivalent to this one, plus all fields defined by the given field + numbers. + +

      Validation of the field numbers is performed when the FieldScope is invoked + (typically by ProtoFluentAssertion.isEqualTo(com.google.protobuf.Message)). A runtime exception will occur if bad + field numbers are encountered. + +

      The field numbers are included recursively on this type. That is, if YourMessage + contains another YourMessage somewhere within its subtree, a FieldScope + allowingFields(X) will include field number X for all submessages of type + YourMessage, as well as for the top-level message.

      +
      +
      +
    • +
    • +
      +

      allowingFields

      +
      +
      public abstract FieldScope allowingFields(Iterable<Integer> fieldNumbers)
      +
      Returns a FieldScope equivalent to this one, plus all fields defined by the given field + numbers. + +

      Validation of the field numbers is performed when the FieldScope is invoked + (typically by ProtoFluentAssertion.isEqualTo(com.google.protobuf.Message)). A runtime exception will occur if bad + field numbers are encountered. + +

      The field numbers are included recursively on this type. That is, if YourMessage + contains another YourMessage somewhere within its subtree, a FieldScope + allowingFields(X) will include field number X for all submessages of type + YourMessage, as well as for the top-level message.

      +
      +
      +
    • +
    • +
      +

      allowingFieldDescriptors

      +
      +
      public abstract FieldScope allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Returns a FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptors. + +

      The Descriptors.FieldDescriptors are not validated, as that would require scanning the entire + protobuf schema from this message type. If a Descriptors.FieldDescriptor is provided which refers + to a field that is not part of this message, or any possible recursive submessages, it is + silently ignored. + +

      The field descriptors are also included recursively on the message type. That is, if + FooMessage.field_bar is included, field_bar will be included for all submessages of + the parent type of type FooMessage.

      +
      +
      +
    • +
    • +
      +

      allowingFieldDescriptors

      +
      +
      public abstract FieldScope allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Returns a FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptors. + +

      The Descriptors.FieldDescriptors are not validated, as that would require scanning the entire + protobuf schema from this message type. If a Descriptors.FieldDescriptor is provided which refers + to a field that is not part of this message, or any possible recursive submessages, it is + silently ignored. + +

      The field descriptors are also included recursively on the message type. That is, if + FooMessage.field_bar is included, field_bar will be included for all submessages of + the parent type of type FooMessage.

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/FieldScopes.html b/api/1.4.4/com/google/common/truth/extensions/proto/FieldScopes.html new file mode 100644 index 000000000..e5d81604f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/FieldScopes.html @@ -0,0 +1,576 @@ + + + + +FieldScopes (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FieldScopes

+
+
java.lang.Object +
com.google.common.truth.extensions.proto.FieldScopes
+
+
+
+
+
public final class FieldScopes +extends Object
+
Factory class for FieldScope instances.
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      fromSetFields

      +
      +
      public static FieldScope fromSetFields(Message message)
      +
      Returns a FieldScope which is constrained to precisely those specific field paths that + are explicitly set in the message. Note that, for version 3 protobufs, such a FieldScope will omit fields in the provided message which are set to default values. + +

      This can be used limit the scope of a comparison to a complex set of fields in a very brief + statement. Often, message is the expected half of a comparison about to be performed. + +

      Example usage: + +

      
      + Foo actual = Foo.newBuilder().setBar(3).setBaz(4).build();
      + Foo expected = Foo.newBuilder().setBar(3).setBaz(5).build();
      + // Fails, because actual.getBaz() != expected.getBaz().
      + assertThat(actual).isEqualTo(expected);
      +
      + Foo scope = Foo.newBuilder().setBar(2).build();
      + // Succeeds, because only the field 'bar' is compared.
      + assertThat(actual).withPartialScope(FieldScopes.fromSetFields(scope)).isEqualTo(expected);
      +
      + 
      + +

      The returned FieldScope does not respect repeated field indices nor map keys. For + example, if the provided message sets different field values for different elements of a + repeated field, like so: + +

      
      + sub_message: {
      +   foo: "foo"
      + }
      + sub_message: {
      +   bar: "bar"
      + }
      + 
      + +

      The FieldScope will contain sub_message.foo and sub_message.bar for + *all* repeated sub_messages, including those beyond index 1.

      +
      +
      +
    • +
    • +
      +

      fromSetFields

      +
      +
      public static FieldScope fromSetFields(Message message, + TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Returns a FieldScope which is constrained to precisely those specific field paths that + are explicitly set in the message. Note that, for version 3 protobufs, such a FieldScope will omit fields in the provided message which are set to default values. + +

      This can be used limit the scope of a comparison to a complex set of fields in a very brief + statement. Often, message is the expected half of a comparison about to be performed. + +

      Example usage: + +

      
      + Foo actual = Foo.newBuilder().setBar(3).setBaz(4).build();
      + Foo expected = Foo.newBuilder().setBar(3).setBaz(5).build();
      + // Fails, because actual.getBaz() != expected.getBaz().
      + assertThat(actual).isEqualTo(expected);
      +
      + Foo scope = Foo.newBuilder().setBar(2).build();
      + // Succeeds, because only the field 'bar' is compared.
      + assertThat(actual).withPartialScope(FieldScopes.fromSetFields(scope)).isEqualTo(expected);
      +
      + 
      + +

      The returned FieldScope does not respect repeated field indices nor map keys. For + example, if the provided message sets different field values for different elements of a + repeated field, like so: + +

      
      + sub_message: {
      +   foo: "foo"
      + }
      + sub_message: {
      +   bar: "bar"
      + }
      + 
      + +

      The FieldScope will contain sub_message.foo and sub_message.bar for + *all* repeated sub_messages, including those beyond index 1. + +

      If there are google.protobuf.Any protos anywhere within these messages, they will be + unpacked using the provided TypeRegistry and ExtensionRegistry to determine + which fields within them should be compared.

      +
      +
      Since:
      +
      1.2
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      fromSetFields

      +
      +
      public static FieldScope fromSetFields(Message firstMessage, + Message secondMessage, + Message... rest)
      +
      Creates a FieldScope covering the fields set in every message in the provided list of + messages, with the same semantics as in fromSetFields(Message). + +

      This can be thought of as the union of the FieldScopes for each individual message, + or the FieldScope for the merge of all the messages. These are equivalent.

      +
      +
      +
    • +
    • +
      +

      fromSetFields

      +
      +
      public static FieldScope fromSetFields(Iterable<? extends Message> messages)
      +
      Creates a FieldScope covering the fields set in every message in the provided list of + messages, with the same semantics as in fromSetFields(Message). + +

      This can be thought of as the union of the FieldScopes for each individual message, + or the FieldScope for the merge of all the messages. These are equivalent.

      +
      +
      +
    • +
    • +
      +

      fromSetFields

      +
      +
      public static FieldScope fromSetFields(Iterable<? extends Message> messages, + TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Creates a FieldScope covering the fields set in every message in the provided list of + messages, with the same semantics as in fromSetFields(Message). + +

      This can be thought of as the union of the FieldScopes for each individual message, + or the FieldScope for the merge of all the messages. These are equivalent. + +

      If there are google.protobuf.Any protos anywhere within these messages, they will be + unpacked using the provided TypeRegistry and ExtensionRegistry to determine + which fields within them should be compared.

      +
      +
      Since:
      +
      1.2
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public static FieldScope ignoringFields(int firstFieldNumber, + int... rest)
      +
      Returns a FieldScope which matches everything except the provided field numbers for the + top level message type. + +

      The field numbers are ignored recursively on this type. That is, if YourMessage + contains another YourMessage somewhere within its subtree, field number X will + be ignored for all submessages of type YourMessage, as well as for the top-level + message.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public static FieldScope ignoringFields(Iterable<Integer> fieldNumbers)
      +
      Returns a FieldScope which matches everything except the provided field numbers for the + top level message type. + +

      The field numbers are ignored recursively on this type. That is, if YourMessage + contains another YourMessage somewhere within its subtree, field number X will + be ignored for all submessages of type YourMessage, as well as for the top-level + message.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public static FieldScope ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Returns a FieldScope which matches everything except the provided field descriptors for + the message.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public static FieldScope ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Returns a FieldScope which matches everything except the provided field descriptors for + the message.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      allowingFields

      +
      +
      public static FieldScope allowingFields(int firstFieldNumber, + int... rest)
      +
      Returns a FieldScope which matches nothing except the provided field numbers for the + top level message type.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      allowingFields

      +
      +
      public static FieldScope allowingFields(Iterable<Integer> fieldNumbers)
      +
      Returns a FieldScope which matches nothing except the provided field numbers for the + top level message type.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      allowingFieldDescriptors

      +
      +
      public static FieldScope allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Returns a FieldScope which matches nothing except the provided field descriptors for + the message.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      allowingFieldDescriptors

      +
      +
      public static FieldScope allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Returns a FieldScope which matches nothing except the provided field descriptors for + the message.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      all

      +
      +
      public static FieldScope all()
      +
      Returns a FieldScope which matches all fields without exception. Generally not needed, + since the other factory functions will build on top of this for you.
      +
      +
      +
    • +
    • +
      +

      none

      +
      +
      public static FieldScope none()
      +
      Returns a FieldScope which matches no fields. A comparison made using this scope alone + will always trivially pass. Generally not needed, since the other factory functions will build + on top of this for you.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosFluentAssertion.html new file mode 100644 index 000000000..3b57fbe2d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosFluentAssertion.html @@ -0,0 +1,1090 @@ + + + + +IterableOfProtosFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface IterableOfProtosFluentAssertion<M extends Message>

+
+
+
+
+
All Superinterfaces:
+
IterableOfProtosUsingCorrespondence<M>
+
+
+
public interface IterableOfProtosFluentAssertion<M extends Message> +extends IterableOfProtosUsingCorrespondence<M>
+
Fluent API to perform detailed, customizable comparison of iterables of protocol buffers. The + same comparison rules are applied to all pairs of protocol buffers which get compared. + +

Methods may be chained in any order, but the chain should terminate with a method from IterableOfProtosUsingCorrespondence. + +

The state of an IterableOfProtosFluentAssertion object after each method is called is + left undefined. Users should not retain references to IterableOfProtosFluentAssertion + instances.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFieldAbsence

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldAbsence()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrder

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrder()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrder(), a repeated int32 field + bar, set inside a repeated message field foo, the following protos will all compare + equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElements

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElements()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnly(). + +

      This rule is applied independently from ignoringRepeatedFieldOrder(). If ignoring + repeated field order AND extra repeated field elements, all that is tested is that the expected + elements comprise a subset of the actual elements. If not ignoring repeated field order, but + still ignoring extra repeated field elements, the actual elements must contain a subsequence + that matches the expected elements for the test to pass. (The subsequence rule does not apply + to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleTolerance

      +
      +
      IterableOfProtosFluentAssertion<M> usingDoubleTolerance(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFields(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFields(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFieldDescriptors(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFieldDescriptors(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatTolerance

      +
      +
      IterableOfProtosFluentAssertion<M> usingFloatTolerance(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      IterableOfProtosFluentAssertion<M> usingFloatToleranceForFields(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      IterableOfProtosFluentAssertion<M> usingFloatToleranceForFields(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnly

      +
      +
      IterableOfProtosFluentAssertion<M> comparingExpectedFieldsOnly()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the method in IterableOfProtosUsingCorrespondence at the end of the call-chain. + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScope

      +
      +
      IterableOfProtosFluentAssertion<M> withPartialScope(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking IterableOfProtosFluentAssertion is already scoped to a FieldScope X, and this + method is invoked with FieldScope Y, the resultant IterableOfProtosFluentAssertion is constrained to the intersection of FieldScopes + X and Y. + +

      By default, IterableOfProtosFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFields(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFields(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScope

      +
      +
      IterableOfProtosFluentAssertion<M> ignoringFieldScope(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking IterableOfProtosFluentAssertion is already scoped to a FieldScope X, and this + method is invoked with FieldScope Y, the resultant IterableOfProtosFluentAssertion is constrained to the subtraction of X - Y. + +

      By default, IterableOfProtosFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnly

      +
      +
      IterableOfProtosFluentAssertion<M> reportingMismatchesOnly()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsing

      +
      +
      IterableOfProtosFluentAssertion<M> unpackingAnyUsing(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +boolean equals(Object o)
      +
      Deprecated. +
      Do not call equals() on a IterableOfProtosFluentAssertion.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +int hashCode()
      +
      Deprecated. +
      IterableOfProtosFluentAssertion does not support hashCode().
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosSubject.html new file mode 100644 index 000000000..fd2c8a7f0 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosSubject.html @@ -0,0 +1,1225 @@ + + + + +IterableOfProtosSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IterableOfProtosSubject<M extends Message>

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.IterableSubject +
com.google.common.truth.extensions.proto.IterableOfProtosSubject<M>
+
+
+
+
+
+
+
Type Parameters:
+
M - the type of the messages in the Iterable
+
+
+
public class IterableOfProtosSubject<M extends Message> +extends IterableSubject
+
Truth subject for the iterables of protocol buffers. + +

ProtoTruth.assertThat(actual).containsExactly(expected) performs the same assertion as + Truth.assertThat(actual).containsExactly(expected). By default, the assertions are strict + with respect to repeated field order, missing fields, etc. This behavior can be changed with the + configuration methods on this subject, e.g. + ProtoTruth.assertThat(actual).ignoringRepeatedFieldOrder().containsExactlyEntriesIn(expected). + +

By default, floating-point fields are compared using exact equality, which is probably not what you want if the values are the + results of some arithmetic. To check for approximate equality, use usingDoubleTolerance(double), + usingFloatTolerance(float), and their per-field equivalents. + +

Equality tests, and other methods, may yield slightly different behavior for versions 2 and 3 + of Protocol Buffers. If testing protos of multiple versions, make sure you understand the + behaviors of default and unknown fields so you don't under or over test.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      IterableOfProtosSubject

      +
      +
      protected IterableOfProtosSubject(FailureMetadata failureMetadata, + @Nullable Iterable<M> messages)
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class IterableSubject
      +
      +
      +
      +
    • +
    • +
      +

      displayingDiffsPairedBy

      +
      +
      public IterableOfProtosUsingCorrespondence<M> displayingDiffsPairedBy(Function<? super M,?> keyFunction)
      +
      Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails. For example: + +
      
      + assertThat(actualFoos)
      +     .ignoringRepeatedFieldOrder()
      +     .ignoringFields(Foo.BAR_FIELD_NUMBER)
      +     .displayingDiffsPairedBy(Foo::getId)
      +     .containsExactlyElementsIn(expectedFoos);
      + 
      + +

      On assertions where it makes sense to do so, the elements are paired as follows: they are + keyed by keyFunction, and if an unexpected element and a missing element have the same + non-null key then the they are paired up. (Elements with null keys are not paired.) The failure + message will show paired elements together, and a diff will be shown. + +

      The expected elements given in the assertion should be uniquely keyed by + keyFunction. If multiple missing elements have the same key then the pairing will be skipped. + +

      Useful key functions will have the property that key equality is less strict than the + already specified equality rules; i.e. given actual and expected values with + keys actualKey and expectedKey, if actual and expected compare + equal given the rest of the directives such as ignoringRepeatedFieldOrder and + ignoringFields, then it is guaranteed that actualKey is equal to expectedKey, + but there are cases where actualKey is equal to expectedKey but the direct + comparison fails. + +

      Note that calling this method makes no difference to whether a test passes or fails, it just + improves the message if it fails.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsence

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldAbsence()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrder

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrder()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrder(), a repeated int32 field + bar, set inside a repeated message field foo, the following protos will all compare + equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElements

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElements()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnly(). + +

      This rule is applied independently from ignoringRepeatedFieldOrder(). If ignoring + repeated field order AND extra repeated field elements, all that is tested is that the expected + elements comprise a subset of the actual elements. If not ignoring repeated field order, but + still ignoring extra repeated field elements, the actual elements must contain a subsequence + that matches the expected elements for the test to pass. (The subsequence rule does not apply + to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleTolerance

      +
      +
      public IterableOfProtosFluentAssertion<M> usingDoubleTolerance(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFields(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFields(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFieldDescriptors(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFieldDescriptors(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatTolerance

      +
      +
      public IterableOfProtosFluentAssertion<M> usingFloatTolerance(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFields(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFields(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnly

      +
      +
      public IterableOfProtosFluentAssertion<M> comparingExpectedFieldsOnly()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the method in IterableOfProtosUsingCorrespondence at the end of the call-chain. + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScope

      +
      +
      public IterableOfProtosFluentAssertion<M> withPartialScope(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the intersection of FieldScopes X and Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFields(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFields(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScope

      +
      +
      public IterableOfProtosFluentAssertion<M> ignoringFieldScope(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the subtraction of X - Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnly

      +
      +
      public IterableOfProtosFluentAssertion<M> reportingMismatchesOnly()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsing

      +
      +
      public IterableOfProtosFluentAssertion<M> unpackingAnyUsing(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    • +
      +

      isInStrictOrder

      +
      +
      @Deprecated +public final void isInStrictOrder()
      +
      Deprecated. +
      Protos do not implement Comparable, so you must supply a comparator.
      +
      +
      Description copied from class: IterableSubject
      +
      Fails if the iterable is not strictly ordered, according to the natural ordering of its + elements. Strictly ordered means that each element in the iterable is strictly greater + than the element that preceded it.
      +
      +
      Overrides:
      +
      isInStrictOrder in class IterableSubject
      +
      Throws:
      +
      ClassCastException - always
      +
      +
      +
      +
    • +
    • +
      +

      isInOrder

      +
      +
      @Deprecated +public final void isInOrder()
      +
      Deprecated. +
      Protos do not implement Comparable, so you must supply a comparator.
      +
      +
      Description copied from class: IterableSubject
      +
      Fails if the iterable is not ordered, according to the natural ordering of its elements. + Ordered means that each element in the iterable is greater than or equal to the element that + preceded it.
      +
      +
      Overrides:
      +
      isInOrder in class IterableSubject
      +
      Throws:
      +
      ClassCastException - always
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosUsingCorrespondence.html b/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosUsingCorrespondence.html new file mode 100644 index 000000000..1d4865858 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/IterableOfProtosUsingCorrespondence.html @@ -0,0 +1,447 @@ + + + + +IterableOfProtosUsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface IterableOfProtosUsingCorrespondence<M extends Message>

+
+
+
+
+
All Known Subinterfaces:
+
IterableOfProtosFluentAssertion<M>
+
+
+
public interface IterableOfProtosUsingCorrespondence<M extends Message>
+
Comparison methods, which enforce the rules set in prior calls to IterableOfProtosFluentAssertion.
+
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    contains(@Nullable M expected)
    +
    +
    Checks that the subject contains at least one element that corresponds to the given expected + element.
    +
    +
    void
    +
    containsAnyIn(Iterable<? extends M> expected)
    +
    +
    Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
    +
    +
    void
    +
    containsAnyIn(M[] expected)
    +
    +
    Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
    +
    +
    void
    +
    containsAnyOf(@Nullable M first, + @Nullable M second, + @Nullable M... rest)
    +
    +
    Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
    +
    + +
    containsAtLeast(@Nullable M first, + @Nullable M second, + @Nullable M... rest)
    +
    +
    Checks that the subject contains elements that corresponds to all of the expected elements, + i.e.
    +
    + +
    containsAtLeastElementsIn(Iterable<? extends M> expected)
    +
    +
    Checks that the subject contains elements that corresponds to all of the expected elements, + i.e.
    +
    + + +
    +
    Checks that the subject contains elements that corresponds to all of the expected elements, + i.e.
    +
    + +
    containsExactly(@Nullable M... expected)
    +
    +
    Checks that subject contains exactly elements that correspond to the expected elements, i.e.
    +
    + +
    containsExactlyElementsIn(Iterable<? extends M> expected)
    +
    +
    Checks that subject contains exactly elements that correspond to the expected elements, i.e.
    +
    + + +
    +
    Checks that subject contains exactly elements that correspond to the expected elements, i.e.
    +
    +
    void
    +
    containsNoneIn(Iterable<? extends M> excluded)
    +
    +
    Checks that the subject contains no elements that correspond to any of the given elements.
    +
    +
    void
    +
    containsNoneIn(M[] excluded)
    +
    +
    Checks that the subject contains no elements that correspond to any of the given elements.
    +
    +
    void
    +
    containsNoneOf(@Nullable M firstExcluded, + @Nullable M secondExcluded, + @Nullable M... restOfExcluded)
    +
    +
    Checks that the subject contains no elements that correspond to any of the given elements.
    +
    + +
    displayingDiffsPairedBy(Function<? super M,?> keyFunction)
    +
    +
    Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
    +
    +
    void
    +
    doesNotContain(@Nullable M excluded)
    +
    +
    Checks that none of the actual elements correspond to the given element.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      displayingDiffsPairedBy

      +
      +
      IterableOfProtosUsingCorrespondence<M> displayingDiffsPairedBy(Function<? super M,?> keyFunction)
      +
      Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails. For example: + +
      
      + assertThat(actualFoos)
      +     .ignoringRepeatedFieldOrder()
      +     .ignoringFields(Foo.BAR_FIELD_NUMBER)
      +     .displayingDiffsPairedBy(Foo::getId)
      +     .containsExactlyElementsIn(expectedFoos);
      + 
      + +

      On assertions where it makes sense to do so, the elements are paired as follows: they are + keyed by keyFunction, and if an unexpected element and a missing element have the same + non-null key then the they are paired up. (Elements with null keys are not paired.) The failure + message will show paired elements together, and a diff will be shown. + +

      The expected elements given in the assertion should be uniquely keyed by + keyFunction. If multiple missing elements have the same key then the pairing will be skipped. + +

      Useful key functions will have the property that key equality is less strict than the + already specified equality rules; i.e. given actual and expected values with + keys actualKey and expectedKey, if actual and expected compare + equal given the rest of the directives such as ignoringRepeatedFieldOrder and + ignoringFields, then it is guaranteed that actualKey is equal to expectedKey, + but there are cases where actualKey is equal to expectedKey but the direct + comparison fails. + +

      Note that calling this method makes no difference to whether a test passes or fails, it just + improves the message if it fails.

      +
      +
      +
    • +
    • +
      +

      contains

      +
      +
      void contains(@Nullable M expected)
      +
      Checks that the subject contains at least one element that corresponds to the given expected + element.
      +
      +
      +
    • +
    • +
      +

      doesNotContain

      +
      +
      void doesNotContain(@Nullable M excluded)
      +
      Checks that none of the actual elements correspond to the given element.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactly(@Nullable M... expected)
      +
      Checks that subject contains exactly elements that correspond to the expected elements, i.e. + that there is a 1:1 mapping between the actual elements and the expected elements where each + pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. + +

      To test that the iterable contains the same elements as an array, prefer containsExactlyElementsIn(Message[]). It makes clear that the given array is a list of + elements, not an element itself.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactlyElementsIn(Iterable<? extends M> expected)
      +
      Checks that subject contains exactly elements that correspond to the expected elements, i.e. + that there is a 1:1 mapping between the actual elements and the expected elements where each + pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsExactlyElementsIn

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactlyElementsIn(M[] expected)
      +
      Checks that subject contains exactly elements that correspond to the expected elements, i.e. + that there is a 1:1 mapping between the actual elements and the expected elements where each + pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method.

      +
      +
      +
    • +
    • +
      +

      containsAtLeast

      +
      +
      @CanIgnoreReturnValue +Ordered containsAtLeast(@Nullable M first, + @Nullable M second, + @Nullable M... rest)
      +
      Checks that the subject contains elements that corresponds to all of the expected elements, + i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected + elements where each pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The elements must appear in the given order within the + subject, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +Ordered containsAtLeastElementsIn(Iterable<? extends M> expected)
      +
      Checks that the subject contains elements that corresponds to all of the expected elements, + i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected + elements where each pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The elements must appear in the given order within the + subject, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAtLeastElementsIn

      +
      +
      @CanIgnoreReturnValue +Ordered containsAtLeastElementsIn(M[] expected)
      +
      Checks that the subject contains elements that corresponds to all of the expected elements, + i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected + elements where each pair of elements correspond. + +

      To also test that the contents appear in the given order, make a call to inOrder() + on the object returned by this method. The elements must appear in the given order within the + subject, but they are not required to be consecutive.

      +
      +
      +
    • +
    • +
      +

      containsAnyOf

      +
      +
      void containsAnyOf(@Nullable M first, + @Nullable M second, + @Nullable M... rest)
      +
      Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      void containsAnyIn(Iterable<? extends M> expected)
      +
      Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
      +
      +
      +
    • +
    • +
      +

      containsAnyIn

      +
      +
      void containsAnyIn(M[] expected)
      +
      Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
      +
      +
      +
    • +
    • +
      +

      containsNoneOf

      +
      +
      void containsNoneOf(@Nullable M firstExcluded, + @Nullable M secondExcluded, + @Nullable M... restOfExcluded)
      +
      Checks that the subject contains no elements that correspond to any of the given elements. + (Duplicates are irrelevant to this test, which fails if any of the subject elements correspond + to any of the given elements.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      void containsNoneIn(Iterable<? extends M> excluded)
      +
      Checks that the subject contains no elements that correspond to any of the given elements. + (Duplicates are irrelevant to this test, which fails if any of the subject elements correspond + to any of the given elements.)
      +
      +
      +
    • +
    • +
      +

      containsNoneIn

      +
      +
      void containsNoneIn(M[] excluded)
      +
      Checks that the subject contains no elements that correspond to any of the given elements. + (Duplicates are irrelevant to this test, which fails if any of the subject elements correspond + to any of the given elements.)
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoSubject.html new file mode 100644 index 000000000..78143820a --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoSubject.html @@ -0,0 +1,365 @@ + + + + +LiteProtoSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LiteProtoSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
+
+
+
+
Direct Known Subclasses:
+
ProtoSubject
+
+
+
@CheckReturnValue +public class LiteProtoSubject +extends Subject
+
Truth subjects for the Lite version of Protocol Buffers. + +

LiteProtoSubject supports versions 2 and 3 of Protocol Buffers. Due to the lack of runtime + descriptors, its functionality is limited compared to ProtoSubject, in particular in performing + detailed comparisons between messages.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      LiteProtoSubject

      +
      +
      protected LiteProtoSubject(FailureMetadata failureMetadata, + @Nullable MessageLite messageLite)
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      Checks whether the MessageLite is equivalent to the argument, using the standard equals() + implementation.
      +
      +
      Overrides:
      +
      isEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      @Deprecated +public void isEqualTo(@Nullable MessageLite.Builder builder)
      +
      Deprecated. +
      A Builder can never compare equal to a MessageLite instance. Use build(), + or buildPartial() on the argument to get a MessageLite for comparison instead. Or, + if you are passing null, use Subject.isNull().
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public void isNotEqualTo(@Nullable Object expected)
      +
      Description copied from class: Subject
      +
      Fails if the subject is equal to the given object. The meaning of equality is the same as for + the Subject.isEqualTo(java.lang.Object) method.
      +
      +
      Overrides:
      +
      isNotEqualTo in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      @Deprecated +public void isNotEqualTo(@Nullable MessageLite.Builder builder)
      +
      Deprecated. +
      A Builder will never compare equal to a MessageLite instance. Use build(), + or buildPartial() on the argument to get a MessageLite for comparison instead. Or, + if you are passing null, use Subject.isNotNull().
      +
      +
      +
      +
    • +
    • +
      +

      isEqualToDefaultInstance

      +
      +
      public void isEqualToDefaultInstance()
      +
      Checks whether the subject is a MessageLite with no fields set.
      +
      +
      +
    • +
    • +
      +

      isNotEqualToDefaultInstance

      +
      +
      public void isNotEqualToDefaultInstance()
      +
      Checks whether the subject is not equivalent to a MessageLite with no fields set.
      +
      +
      +
    • +
    • +
      +

      hasAllRequiredFields

      +
      +
      public void hasAllRequiredFields()
      +
      Checks whether the subject has all required fields set. Cannot fail for a proto built with + build(), which itself fails if required fields aren't set.
      +
      +
      +
    • +
    • +
      +

      serializedSize

      +
      +
      public IntegerSubject serializedSize()
      +
      Returns an IntegerSubject on the serialized size of the MessageLite. + +

      Assertions can then be changed on the serialized size, to support checks such as + assertThat(myProto).serializedSize().isAtLeast(16), etc.

      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoTruth.html b/api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoTruth.html new file mode 100644 index 000000000..8817f2838 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/LiteProtoTruth.html @@ -0,0 +1,171 @@ + + + + +LiteProtoTruth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LiteProtoTruth

+
+
java.lang.Object +
com.google.common.truth.extensions.proto.LiteProtoTruth
+
+
+
+
+
@CheckReturnValue +public final class LiteProtoTruth +extends Object
+
A set of static methods to begin a Truth assertion chain for the lite version of protocol + buffers. + +

This class implements a subset of what ProtoTruth provides, so if you are already + using ProtoTruth, you should not import this class. LiteProtoTruth is only useful + if you cannot depend on ProtoTruth for dependency management reasons. + +

Note: Usage of different failure strategies such as assume and expect should + rely on about(liteProtos()) to begin a chain with those alternative behaviors.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesFluentAssertion.html new file mode 100644 index 000000000..15bdb9326 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesFluentAssertion.html @@ -0,0 +1,1173 @@ + + + + +MapWithProtoValuesFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface MapWithProtoValuesFluentAssertion<M extends Message>

+
+
+
+
+
public interface MapWithProtoValuesFluentAssertion<M extends Message>
+
Fluent API to perform detailed, customizable comparison of maps containing protocol buffers as + values. The same comparison rules are applied to all pairs of protocol buffers which get + compared. + +

The keys of these maps are treated as ordinary objects, and keys which happen to be + protocol buffers are not given special treatment. They are compared with Object.equals(java.lang.Object) + and Object.hashCode() as documented by the Map interface. + +

Methods may be chained in any order, but the chain should terminate with a method that doesn't + return a MapWithProtoValuesFluentAssertion, such as containsExactly(java.lang.Object, M, java.lang.Object...) or containsEntry(java.lang.Object, M). + +

The state of a MapWithProtoValuesFluentAssertion object after each method is called is + left undefined. Users should not retain references to MapWithProtoValuesFluentAssertion + instances.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFieldAbsenceForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceForValues()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrderForValues(), a repeated int32 + field bar, set inside a repeated message field foo, the following protos will + all compare equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnlyForValues(). + +

      This rule is applied independently from ignoringRepeatedFieldOrderForValues(). If + ignoring repeated field order AND extra repeated field elements, all that is tested is that the + expected elements comprise a subset of the actual elements. If not ignoring repeated field + order, but still ignoring extra repeated field elements, the actual elements must contain a + subsequence that matches the expected elements for the test to pass. (The subsequence rule does + not apply to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnlyForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> comparingExpectedFieldsOnlyForValues()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the method at the end of the call chain, such as + containsEntry(java.lang.Object, M) or containsExactlyEntriesIn(java.util.Map<?, ? extends M>). + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScopeForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> withPartialScopeForValues(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking MapWithProtoValuesFluentAssertion is already scoped to a FieldScope X, and + this method is invoked with FieldScope Y, the resultant MapWithProtoValuesFluentAssertion is constrained to the intersection of FieldScopes + X and Y. + +

      By default, MapWithProtoValuesFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScopeForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking MapWithProtoValuesFluentAssertion is already scoped to a FieldScope X, and + this method is invoked with FieldScope Y, the resultant MapWithProtoValuesFluentAssertion is constrained to the subtraction of X - Y. + +

      By default, MapWithProtoValuesFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnlyForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsingForValues

      +
      +
      MapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    • +
      +

      containsEntry

      +
      +
      void containsEntry(@Nullable Object expectedKey, + @Nullable M expectedValue)
      +
      Fails if the map does not contain an entry with the given key and a value that corresponds to + the given value.
      +
      +
      +
    • +
    • +
      +

      doesNotContainEntry

      +
      +
      void doesNotContainEntry(@Nullable Object excludedKey, + @Nullable M excludedValue)
      +
      Fails if the map contains an entry with the given key and a value that corresponds to the given + value.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactly(@Nullable Object k0, + @Nullable M v0, + @Nullable Object... rest)
      +
      Fails if the map does not contain exactly the given set of keys mapping to values that + correspond to the given values. + +

      The values must all be of type M, and a ClassCastException will be thrown if + any other type is encountered. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      containsExactlyEntriesIn

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactlyEntriesIn(Map<?,? extends M> expectedMap)
      +
      Fails if the map does not contain exactly the keys in the given map, mapping to values that + correspond to the values of the given map.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +boolean equals(Object o)
      +
      Deprecated. +
      Do not call equals() on a MapWithProtoValuesFluentAssertion.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +int hashCode()
      +
      Deprecated. +
      MapWithProtoValuesFluentAssertion does not support hashCode().
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.html new file mode 100644 index 000000000..bd8ad65d0 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.html @@ -0,0 +1,1103 @@ + + + + +MapWithProtoValuesSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MapWithProtoValuesSubject<M extends Message>

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.MapSubject +
com.google.common.truth.extensions.proto.MapWithProtoValuesSubject<M>
+
+
+
+
+
+
+
Type Parameters:
+
M - the type of the message values in the map
+
+
+
public class MapWithProtoValuesSubject<M extends Message> +extends MapSubject
+
Truth subject for maps with protocol buffers for values. + +

ProtoTruth.assertThat(actual).containsExactlyEntriesIn(expected) performs the same + assertion as Truth.assertThat(actual).containsExactlyEntriesIn(expected). By default, the + assertions are strict with respect to repeated field order, missing fields, etc. This behavior + can be changed with the configuration methods on this subject, e.g. + ProtoTruth.assertThat(actual).ignoringRepeatedFieldOrder().containsExactly(expected). + +

By default, floating-point fields are compared using exact equality, which is probably not what you want if the values are the + results of some arithmetic. To check for approximate equality, use usingDoubleToleranceForValues(double), usingFloatToleranceForValues(float), and their per-field equivalents. + +

Equality tests, and other methods, may yield slightly different behavior for versions 2 and 3 + of Protocol Buffers. If testing protos of multiple versions, make sure you understand the + behaviors of default and unknown fields so you don't under or over test.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MapWithProtoValuesSubject

      +
      +
      protected MapWithProtoValuesSubject(FailureMetadata failureMetadata, + @Nullable Map<?,M> map)
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFieldAbsenceForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceForValues()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrderForValues(), a repeated int32 + field bar, set inside a repeated message field foo, the following protos will + all compare equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnlyForValues(). + +

      This rule is applied independently from ignoringRepeatedFieldOrderForValues(). If + ignoring repeated field order AND extra repeated field elements, all that is tested is that the + expected elements comprise a subset of the actual elements. If not ignoring repeated field + order, but still ignoring extra repeated field elements, the actual elements must contain a + subsequence that matches the expected elements for the test to pass. (The subsequence rule does + not apply to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnlyForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> comparingExpectedFieldsOnlyForValues()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the method at the end of the call chain, such as + MapSubject.containsEntry(java.lang.Object, java.lang.Object) or MapSubject.containsExactlyEntriesIn(java.util.Map<?, ?>). + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScopeForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> withPartialScopeForValues(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the intersection of FieldScopes X and Y. + +

      By default, MapWithProtoValuesFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScopeForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the subtraction of X - Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnlyForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsingForValues

      +
      +
      public MapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesFluentAssertion.html new file mode 100644 index 000000000..93d93c967 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesFluentAssertion.html @@ -0,0 +1,1186 @@ + + + + +MultimapWithProtoValuesFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface MultimapWithProtoValuesFluentAssertion<M extends Message>

+
+
+
+
+
public interface MultimapWithProtoValuesFluentAssertion<M extends Message>
+
Fluent API to perform detailed, customizable comparison of Multimaps containing protocol + buffers as values. The same comparison rules are applied to all pairs of protocol buffers which + get compared. + +

The keys of these maps are treated as ordinary objects, and keys which happen to be + protocol buffers are not given special treatment. They are compared with Object.equals(java.lang.Object) + and Object.hashCode() as documented by the Multimap interface. + +

Methods may be chained in any order, but the chain should terminate with a method that doesn't + return a MultimapWithProtoValuesFluentAssertion, such as containsExactlyEntriesIn(com.google.common.collect.Multimap<?, ? extends M>) or containsEntry(java.lang.Object, M). + +

The state of a MultimapWithProtoValuesFluentAssertion object after each method is + called is left undefined. Users should not retain references to + MultimapWithProtoValuesFluentAssertion instances.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFieldAbsenceForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceForValues()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrderForValues(), a repeated int32 + field bar, set inside a repeated message field foo, the following protos will + all compare equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnlyForValues(). + +

      This rule is applied independently from ignoringRepeatedFieldOrderForValues(). If + ignoring repeated field order AND extra repeated field elements, all that is tested is that the + expected elements comprise a subset of the actual elements. If not ignoring repeated field + order, but still ignoring extra repeated field elements, the actual elements must contain a + subsequence that matches the expected elements for the test to pass. (The subsequence rule does + not apply to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnlyForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> comparingExpectedFieldsOnlyForValues()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the method at the end of the call chain, such as + containsEntry(java.lang.Object, M) or containsExactlyEntriesIn(com.google.common.collect.Multimap<?, ? extends M>). + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScopeForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> withPartialScopeForValues(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking MultimapWithProtoValuesFluentAssertion is already scoped to a FieldScope X, + and this method is invoked with FieldScope Y, the resultant MultimapWithProtoValuesFluentAssertion is constrained to the intersection of FieldScopes X and Y. + +

      By default, MultimapWithProtoValuesFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScopeForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking MultimapWithProtoValuesFluentAssertion is already scoped to a FieldScope X, + and this method is invoked with FieldScope Y, the resultant MultimapWithProtoValuesFluentAssertion is constrained to the subtraction of X - Y. + +

      By default, MultimapWithProtoValuesFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnlyForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsingForValues

      +
      +
      MultimapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    • +
      +

      containsEntry

      +
      +
      void containsEntry(@Nullable Object expectedKey, + @Nullable M expectedValue)
      +
      Fails if the multimap does not contain an entry with the given key and a value that corresponds + to the given value.
      +
      +
      +
    • +
    • +
      +

      doesNotContainEntry

      +
      +
      void doesNotContainEntry(@Nullable Object excludedKey, + @Nullable M excludedValue)
      +
      Fails if the multimap contains an entry with the given key and a value that corresponds to the + given value.
      +
      +
      +
    • +
    • +
      +

      containsExactlyEntriesIn

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactlyEntriesIn(Multimap<?,? extends M> expectedMultimap)
      +
      Fails if the map does not contain exactly the keys in the given multimap, mapping to values + that correspond to the values of the given multimap. + +

      A subsequent call to Ordered.inOrder() may be made if the caller wishes to verify that + the two Multimaps iterate fully in the same order. That is, their key sets iterate in the same + order, and the corresponding value collections for each key iterate in the same order.

      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactly()
      +
      Fails if the multimap is not empty.
      +
      +
      +
    • +
    • +
      +

      containsExactly

      +
      +
      @CanIgnoreReturnValue +Ordered containsExactly(@Nullable Object k0, + @Nullable M v0, + @Nullable Object... rest)
      +
      Fails if the multimap does not contain exactly the given set of key/value pairs. + +

      Warning: the use of varargs means that we cannot guarantee an equal number of + key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!

      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +boolean equals(Object o)
      +
      Deprecated. +
      Do not call equals() on a MultimapWithProtoValuesFluentAssertion.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +int hashCode()
      +
      Deprecated. +
      MultimapWithProtoValuesFluentAssertion does not support hashCode().
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.html new file mode 100644 index 000000000..7f480eb5c --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.html @@ -0,0 +1,1126 @@ + + + + +MultimapWithProtoValuesSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MultimapWithProtoValuesSubject<M extends Message>

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.MultimapSubject +
com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject<M>
+
+
+
+
+
+
+
Type Parameters:
+
M - the type of the message values in the multimap
+
+
+
public class MultimapWithProtoValuesSubject<M extends Message> +extends MultimapSubject
+
Truth subject for Multimaps with protocol buffers for values. + +

ProtoTruth.assertThat(actual).containsExactlyEntriesIn(expected) performs the same + assertion as Truth.assertThat(actual).containsExactlyEntriesIn(expected). By default, the + assertions are strict with respect to repeated field order, missing fields, etc. This behavior + can be changed with the configuration methods on this subject, e.g. + ProtoTruth.assertThat(actual).ignoringRepeatedFieldOrder().containsExactlyEntriesIn(expected). + +

By default, floating-point fields are compared using exact equality, which is probably not what you want if the values are the + results of some arithmetic. To check for approximate equality, use usingDoubleToleranceForValues(double), usingFloatToleranceForValues(float), and their per-field equivalents. + +

Equality tests, and other methods, may yield slightly different behavior for versions 2 and 3 + of Protocol Buffers. If testing protos of multiple versions, make sure you understand the + behaviors of default and unknown fields so you don't under or over test.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MultimapWithProtoValuesSubject

      +
      +
      protected MultimapWithProtoValuesSubject(FailureMetadata failureMetadata, + @Nullable Multimap<?,M> multimap)
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      valuesForKey

      +
      +
      public IterableOfProtosSubject<M> valuesForKey(@Nullable Object key)
      +
      Returns a context-aware Subject for making assertions about the values for the given + key within the Multimap. + +

      This method performs no checks on its own and cannot cause test failures. Subsequent + assertions must be chained onto this method call to test properties of the Multimap.

      +
      +
      Overrides:
      +
      valuesForKey in class MultimapSubject
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceForValues()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsenceForValues() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrderForValues(), a repeated int32 + field bar, set inside a repeated message field foo, the following protos will + all compare equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrderForValues() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnlyForValues(). + +

      This rule is applied independently from ignoringRepeatedFieldOrderForValues(). If + ignoring repeated field order AND extra repeated field elements, all that is tested is that the + expected elements comprise a subset of the actual elements. If not ignoring repeated field + order, but still ignoring extra repeated field elements, the actual elements must contain a + subsequence that matches the expected elements for the test to pass. (The subsequence rule does + not apply to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElementsForValues() instead to ignore these for all + fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnlyForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> comparingExpectedFieldsOnlyForValues()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the method at the end of the call chain, such as + MultimapSubject.containsEntry(java.lang.Object, java.lang.Object) or MultimapSubject.containsExactlyEntriesIn(com.google.common.collect.Multimap<?, ?>). + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScopeForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> withPartialScopeForValues(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the intersection of FieldScopes X and Y. + +

      By default, MultimapWithProtoValuesFluentAssertion is constrained to FieldScopes.all(), that is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptorsForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScopeForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the subtraction of X - Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnlyForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsingForValues

      +
      +
      public MultimapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/ProtoFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoFluentAssertion.html new file mode 100644 index 000000000..be9637267 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoFluentAssertion.html @@ -0,0 +1,1118 @@ + + + + +ProtoFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ProtoFluentAssertion

+
+
+
+
+
public interface ProtoFluentAssertion
+
Fluent API to perform detailed, customizable comparison of Protocol buffers. + +

Methods may be chained in any order, but the chain should terminate with isEqualTo(Message) or isNotEqualTo(Message). + +

The state of a ProtoFluentAssertion object after each method is called is left + undefined. Users should not retain references to ProtoFluentAssertion instances.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFieldAbsence

      +
      +
      ProtoFluentAssertion ignoringFieldAbsence()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      ProtoFluentAssertion ignoringFieldAbsenceOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      ProtoFluentAssertion ignoringFieldAbsenceOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrder

      +
      +
      ProtoFluentAssertion ignoringRepeatedFieldOrder()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrder(), a repeated int32 field + bar, set inside a repeated message field foo, the following protos will all compare + equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElements

      +
      +
      ProtoFluentAssertion ignoringExtraRepeatedFieldElements()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnly(). + +

      This rule is applied independently from ignoringRepeatedFieldOrder(). If ignoring + repeated field order AND extra repeated field elements, all that is tested is that the expected + elements comprise a subset of the actual elements. If not ignoring repeated field order, but + still ignoring extra repeated field elements, the actual elements must contain a subsequence + that matches the expected elements for the test to pass. (The subsequence rule does not apply + to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleTolerance

      +
      +
      ProtoFluentAssertion usingDoubleTolerance(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      ProtoFluentAssertion usingDoubleToleranceForFields(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      ProtoFluentAssertion usingDoubleToleranceForFields(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatTolerance

      +
      +
      ProtoFluentAssertion usingFloatTolerance(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      ProtoFluentAssertion usingFloatToleranceForFields(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      ProtoFluentAssertion usingFloatToleranceForFields(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      ProtoFluentAssertion usingFloatToleranceForFieldDescriptors(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      ProtoFluentAssertion usingFloatToleranceForFieldDescriptors(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnly

      +
      +
      ProtoFluentAssertion comparingExpectedFieldsOnly()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the void method at the end of the + ProtoFluentAssertion call-chain: For example, isEqualTo(Message), or isNotEqualTo(Message). + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScope

      +
      +
      ProtoFluentAssertion withPartialScope(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the intersection of FieldScopes X and Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      ProtoFluentAssertion ignoringFields(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      ProtoFluentAssertion ignoringFields(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      ProtoFluentAssertion ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScope

      +
      +
      ProtoFluentAssertion ignoringFieldScope(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the subtraction of X - Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnly

      +
      +
      ProtoFluentAssertion reportingMismatchesOnly()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsing

      +
      +
      ProtoFluentAssertion unpackingAnyUsing(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      void isEqualTo(@Nullable Message expected)
      +
      Compares the subject of the assertion to expected, using all of the rules specified by + earlier operations. If no settings are changed, this invokes the default equals + implementation of the subject Message.
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      void isNotEqualTo(@Nullable Message expected)
      +
      Compares the subject of the assertion to expected, expecting a difference, using all of + the rules specified by earlier operations. If no settings are changed, this invokes the default + equals implementation of the subject Message.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      +
      @Deprecated +boolean equals(Object o)
      +
      Deprecated. +
      Do not call equals() on a ProtoFluentAssertion. Use isEqualTo(Message) instead.
      +
      +
      +
      Overrides:
      +
      equals in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      +
      @Deprecated +int hashCode()
      +
      Deprecated. +
      ProtoFluentAssertion does not support hashCode(). Use isEqualTo(Message) for testing.
      +
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubject.html new file mode 100644 index 000000000..ad477f363 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubject.html @@ -0,0 +1,1155 @@ + + + + +ProtoSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ProtoSubject

+
+ +
+
+
+
public class ProtoSubject +extends LiteProtoSubject
+
Truth subject for the full version of Protocol Buffers. + +

ProtoTruth.assertThat(actual).isEqualTo(expected) performs the same assertion as + Truth.assertThat(actual).isEqualTo(expected), but with a better failure message. By + default, the assertions are strict with respect to repeated field order, missing fields, etc. + This behavior can be changed with the configuration methods on this subject, e.g. + ProtoTruth.assertThat(actual).ignoringRepeatedFieldOrder().isEqualTo(expected). + +

By default, floating-point fields are compared using exact equality, which is probably not what you want if the values are the + results of some arithmetic. To check for approximate equality, use usingDoubleTolerance(double), + usingFloatTolerance(float), and their per-field equivalents. + +

Equality tests, and other methods, may yield slightly different behavior for versions 2 and 3 + of Protocol Buffers. If testing protos of multiple versions, make sure you understand the + behaviors of default and unknown fields so you don't under or over test.

+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ProtoSubject

      +
      +
      protected ProtoSubject(FailureMetadata failureMetadata, + @Nullable Message message)
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ignoringFieldAbsence

      +
      +
      public ProtoFluentAssertion ignoringFieldAbsence()
      +
      Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality. + +

      For version 2 Protocol Buffers, this setting determines whether two protos with the same + value for a field compare equal if one explicitly sets the value, and the other merely + implicitly uses the schema-defined default. This setting also determines whether unknown fields + should be considered in the comparison. By ignoringFieldAbsence(), unknown fields are + ignored, and value-equal fields as specified above are considered equal. + +

      For version 3 Protocol Buffers, this setting does not affect primitive fields, because their + default value is indistinguishable from unset.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      public ProtoFluentAssertion ignoringFieldAbsenceOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFields

      +
      +
      public ProtoFluentAssertion ignoringFieldAbsenceOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if they are to be ignored as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringFieldAbsenceOfFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored + as well. + +

      Use ignoringFieldAbsence() instead to ignore the 'has' bit for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrder

      +
      +
      public ProtoFluentAssertion ignoringRepeatedFieldOrder()
      +
      Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality. + +

      This setting applies to all repeated fields recursively, but it does not ignore structure. + For example, with ignoringRepeatedFieldOrder(), a repeated int32 field + bar, set inside a repeated message field foo, the following protos will all compare + equal: + +

      
      + message1: {
      +   foo: {
      +     bar: 1
      +     bar: 2
      +   }
      +   foo: {
      +     bar: 3
      +     bar: 4
      +   }
      + }
      +
      + message2: {
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      + }
      +
      + message3: {
      +   foo: {
      +     bar: 4
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 1
      +   }
      + }
      + 
      + +

      However, the following message will compare equal to none of these: + +

      
      + message4: {
      +   foo: {
      +     bar: 1
      +     bar: 3
      +   }
      +   foo: {
      +     bar: 2
      +     bar: 4
      +   }
      + }
      + 
      + +

      This setting does not apply to map fields, for which field order is always ignored. The + serialization order of map fields is undefined, and it may change from runtime to runtime.

      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFields

      +
      +
      public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly + (via Descriptors.FieldDescriptor) if their orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringRepeatedFieldOrderOfFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality. Sub-fields must be specified explicitly if their + orders are to be ignored as well. + +

      Use ignoringRepeatedFieldOrder() instead to ignore order for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElements

      +
      +
      public ProtoFluentAssertion ignoringExtraRepeatedFieldElements()
      +
      Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty. To ignore empty repeated fields as well, use comparingExpectedFieldsOnly(). + +

      This rule is applied independently from ignoringRepeatedFieldOrder(). If ignoring + repeated field order AND extra repeated field elements, all that is tested is that the expected + elements comprise a subset of the actual elements. If not ignoring repeated field order, but + still ignoring extra repeated field elements, the actual elements must contain a subsequence + that matches the expected elements for the test to pass. (The subsequence rule does not apply + to Map fields, which are always compared by key.)

      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields(int firstFieldNumber, + int... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFields

      +
      +
      public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer> fieldNumbers)
      +
      Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored. Sub-fields must be specified explicitly (via Descriptors.FieldDescriptor) if their extra elements are to be ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor first, + Descriptors.FieldDescriptor... rest)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      ignoringExtraRepeatedFieldElementsOfFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored. Sub-fields must be specified explicitly if their extra elements are to be + ignored as well. + +

      Use ignoringExtraRepeatedFieldElements() instead to ignore these for all fields.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleTolerance

      +
      +
      public ProtoFluentAssertion usingDoubleTolerance(double tolerance)
      +
      Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      public ProtoFluentAssertion usingDoubleToleranceForFields(double tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFields

      +
      +
      public ProtoFluentAssertion usingDoubleToleranceForFields(double tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      public ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors(double tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingDoubleToleranceForFieldDescriptors

      +
      +
      public ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors(double tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatTolerance

      +
      +
      public ProtoFluentAssertion usingFloatTolerance(float tolerance)
      +
      Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      public ProtoFluentAssertion usingFloatToleranceForFields(float tolerance, + int firstFieldNumber, + int... rest)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFields

      +
      +
      public ProtoFluentAssertion usingFloatToleranceForFields(float tolerance, + Iterable<Integer> fieldNumbers)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      public ProtoFluentAssertion usingFloatToleranceForFieldDescriptors(float tolerance, + Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      usingFloatToleranceForFieldDescriptors

      +
      +
      public ProtoFluentAssertion usingFloatToleranceForFieldDescriptors(float tolerance, + Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
      +
      +
      Parameters:
      +
      tolerance - A finite, non-negative tolerance.
      +
      +
      +
      +
    • +
    • +
      +

      comparingExpectedFieldsOnly

      +
      +
      public ProtoFluentAssertion comparingExpectedFieldsOnly()
      +
      Limits the comparison of Protocol buffers to the fields set in the expected proto(s). When + multiple protos are specified, the comparison is limited to the union of set fields in all the + expected protos. + +

      The "expected proto(s)" are those passed to the void method at the end of the + ProtoFluentAssertion call-chain: For example, isEqualTo(Message), or isNotEqualTo(Message). + +

      Fields not set in the expected proto(s) are ignored. In particular, proto3 fields which have + their default values are ignored, as these are indistinguishable from unset fields. If you want + to assert that a proto3 message has certain fields with default values, you cannot use this + method.

      +
      +
      +
    • +
    • +
      +

      withPartialScope

      +
      +
      public ProtoFluentAssertion withPartialScope(FieldScope fieldScope)
      +
      Limits the comparison of Protocol buffers to the defined FieldScope. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the intersection of FieldScopes X and Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public ProtoFluentAssertion ignoringFields(int firstFieldNumber, + int... rest)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFields

      +
      +
      public ProtoFluentAssertion ignoringFields(Iterable<Integer> fieldNumbers)
      +
      Excludes the top-level message fields with the given tag numbers from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + numbers are ignored, and all sub-messages of type M will also have these field numbers + ignored. + +

      If an invalid field number is supplied, the terminal comparison operation will throw a + runtime exception.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, + Descriptors.FieldDescriptor... rest)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldDescriptors

      +
      +
      public ProtoFluentAssertion ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
      +
      Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison. + +

      This method adds on any previous FieldScope related settings, overriding previous + changes to ensure the specified fields are ignored recursively. All sub-fields of these field + descriptors are ignored, no matter where they occur in the tree. + +

      If a field descriptor which does not, or cannot occur in the proto structure is supplied, it + is silently ignored.

      +
      +
      +
    • +
    • +
      +

      ignoringFieldScope

      +
      +
      public ProtoFluentAssertion ignoringFieldScope(FieldScope fieldScope)
      +
      Excludes all specific field paths under the argument FieldScope from the comparison. + +

      This method is additive and has well-defined ordering semantics. If the invoking ProtoFluentAssertion is already scoped to a FieldScope X, and this method is + invoked with FieldScope Y, the resultant ProtoFluentAssertion is + constrained to the subtraction of X - Y. + +

      By default, ProtoFluentAssertion is constrained to FieldScopes.all(), that + is, no fields are excluded from comparison.

      +
      +
      +
    • +
    • +
      +

      reportingMismatchesOnly

      +
      +
      public ProtoFluentAssertion reportingMismatchesOnly()
      +
      If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values. Useful for very + large protocol buffers. + +

      This a purely cosmetic setting, and it has no effect on the behavior of the test.

      +
      +
      +
    • +
    • +
      +

      unpackingAnyUsing

      +
      +
      public ProtoFluentAssertion unpackingAnyUsing(TypeRegistry typeRegistry, + ExtensionRegistry extensionRegistry)
      +
      Specifies the TypeRegistry and ExtensionRegistry to use for Any messages. + +

      To compare the value of an Any message, ProtoTruth looks in the given type registry + for a descriptor for the message's type URL: + +

        +
      • If ProtoTruth finds a descriptor, it unpacks the value and compares it against the + expected value, respecting any configuration methods used for the assertion. +
      • If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the + descriptor), it compares the raw, serialized bytes of the expected and actual values. +
      + +

      When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain + extensions. To look up those extensions, ProtoTruth uses the provided ExtensionRegistry.

      +
      +
      Since:
      +
      1.1
      +
      +
      +
      +
    • +
    • +
      +

      isEqualTo

      +
      +
      public void isEqualTo(@Nullable Object expected)
      +
      Description copied from class: LiteProtoSubject
      +
      Checks whether the MessageLite is equivalent to the argument, using the standard equals() + implementation.
      +
      +
      Overrides:
      +
      isEqualTo in class LiteProtoSubject
      +
      +
      +
      +
    • +
    • +
      +

      isNotEqualTo

      +
      +
      public void isNotEqualTo(@Nullable Object expected)
      +
      Description copied from class: Subject
      +
      Fails if the subject is equal to the given object. The meaning of equality is the same as for + the Subject.isEqualTo(java.lang.Object) method.
      +
      +
      Overrides:
      +
      isNotEqualTo in class LiteProtoSubject
      +
      +
      +
      +
    • +
    • +
      +

      hasAllRequiredFields

      +
      +
      public void hasAllRequiredFields()
      +
      Description copied from class: LiteProtoSubject
      +
      Checks whether the subject has all required fields set. Cannot fail for a proto built with + build(), which itself fails if required fields aren't set.
      +
      +
      Overrides:
      +
      hasAllRequiredFields in class LiteProtoSubject
      +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubjectBuilder.html b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubjectBuilder.html new file mode 100644 index 000000000..dbbb3e13e --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoSubjectBuilder.html @@ -0,0 +1,205 @@ + + + + +ProtoSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ProtoSubjectBuilder

+
+
java.lang.Object +
com.google.common.truth.CustomSubjectBuilder +
com.google.common.truth.extensions.proto.ProtoSubjectBuilder
+
+
+
+
+
+
public final class ProtoSubjectBuilder +extends CustomSubjectBuilder
+
CustomSubjectBuilder which aggregates all Proto-related Subject classes into a single place. + +

To obtain an instance, call assertAbout(ProtoTruth.protos()).

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/ProtoTruth.html b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoTruth.html new file mode 100644 index 000000000..6849b259b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/ProtoTruth.html @@ -0,0 +1,242 @@ + + + + +ProtoTruth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ProtoTruth

+
+
java.lang.Object +
com.google.common.truth.extensions.proto.ProtoTruth
+
+
+
+
+
public final class ProtoTruth +extends Object
+
A set of static methods to begin a Truth assertion chain for protocol buffers. + +

Note: Usage of different failure strategies such as assume and expect should + rely on StandardSubjectBuilder.about(CustomSubjectBuilder.Factory) to begin a chain with + those alternative behaviors.

+
+
+
+ +
+
+ +
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScope.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScope.html new file mode 100644 index 000000000..e5e8ad275 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScope.html @@ -0,0 +1,316 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.FieldScope (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.FieldScope

+
+
Packages that use FieldScope
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScopes.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScopes.html new file mode 100644 index 000000000..7365c8c45 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/FieldScopes.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.FieldScopes (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.FieldScopes

+
+No usage of com.google.common.truth.extensions.proto.FieldScopes
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosFluentAssertion.html new file mode 100644 index 000000000..d73e2c438 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosFluentAssertion.html @@ -0,0 +1,519 @@ + + + + +Uses of Interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion

+
+ +
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosSubject.html new file mode 100644 index 000000000..4a72b845f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosSubject.html @@ -0,0 +1,97 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.IterableOfProtosSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.IterableOfProtosSubject

+
+
Packages that use IterableOfProtosSubject
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosUsingCorrespondence.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosUsingCorrespondence.html new file mode 100644 index 000000000..e6b90a384 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/IterableOfProtosUsingCorrespondence.html @@ -0,0 +1,106 @@ + + + + +Uses of Interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence

+
+ +
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoSubject.html new file mode 100644 index 000000000..589bd5472 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoSubject.html @@ -0,0 +1,114 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.LiteProtoSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.LiteProtoSubject

+
+
Packages that use LiteProtoSubject
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoTruth.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoTruth.html new file mode 100644 index 000000000..a8e1c6778 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/LiteProtoTruth.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.LiteProtoTruth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.LiteProtoTruth

+
+No usage of com.google.common.truth.extensions.proto.LiteProtoTruth
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesFluentAssertion.html new file mode 100644 index 000000000..8c152af8d --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesFluentAssertion.html @@ -0,0 +1,519 @@ + + + + +Uses of Interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion

+
+ +
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesSubject.html new file mode 100644 index 000000000..0542ad05a --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MapWithProtoValuesSubject.html @@ -0,0 +1,91 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.MapWithProtoValuesSubject

+
+
Packages that use MapWithProtoValuesSubject
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesFluentAssertion.html new file mode 100644 index 000000000..7a4a353fd --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesFluentAssertion.html @@ -0,0 +1,519 @@ + + + + +Uses of Interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion

+
+ +
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesSubject.html new file mode 100644 index 000000000..2b26184a5 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/MultimapWithProtoValuesSubject.html @@ -0,0 +1,91 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject

+
+ +
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoFluentAssertion.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoFluentAssertion.html new file mode 100644 index 000000000..37faf2202 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoFluentAssertion.html @@ -0,0 +1,519 @@ + + + + +Uses of Interface com.google.common.truth.extensions.proto.ProtoFluentAssertion (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.google.common.truth.extensions.proto.ProtoFluentAssertion

+
+
Packages that use ProtoFluentAssertion
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubject.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubject.html new file mode 100644 index 000000000..7bedda3b9 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubject.html @@ -0,0 +1,91 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.ProtoSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.ProtoSubject

+
+
Packages that use ProtoSubject
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubjectBuilder.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubjectBuilder.html new file mode 100644 index 000000000..04f959235 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoSubjectBuilder.html @@ -0,0 +1,89 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.ProtoSubjectBuilder (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.ProtoSubjectBuilder

+
+
Packages that use ProtoSubjectBuilder
+
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoTruth.html b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoTruth.html new file mode 100644 index 000000000..3adf88e47 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/class-use/ProtoTruth.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.extensions.proto.ProtoTruth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.proto.ProtoTruth

+
+No usage of com.google.common.truth.extensions.proto.ProtoTruth
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/package-summary.html b/api/1.4.4/com/google/common/truth/extensions/proto/package-summary.html new file mode 100644 index 000000000..1cf0b1dcc --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/package-summary.html @@ -0,0 +1,165 @@ + + + + +com.google.common.truth.extensions.proto (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Package com.google.common.truth.extensions.proto

+
+
+
+
@CheckReturnValue +package com.google.common.truth.extensions.proto
+
+
Custom subjects for testing Protocol + Buffer instances. + +

This package is a part of the open-source Truth + project.

+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/package-tree.html b/api/1.4.4/com/google/common/truth/extensions/proto/package-tree.html new file mode 100644 index 000000000..4bed5e7fb --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/package-tree.html @@ -0,0 +1,117 @@ + + + + +com.google.common.truth.extensions.proto Class Hierarchy (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.google.common.truth.extensions.proto

+
+Package Hierarchies: + +
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/proto/package-use.html b/api/1.4.4/com/google/common/truth/extensions/proto/package-use.html new file mode 100644 index 000000000..fbe0226ac --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/proto/package-use.html @@ -0,0 +1,131 @@ + + + + +Uses of Package com.google.common.truth.extensions.proto (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.google.common.truth.extensions.proto

+
+ +
+
Package
+
Description
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.Re2jStringSubject.html b/api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.Re2jStringSubject.html new file mode 100644 index 000000000..760bef9ea --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.Re2jStringSubject.html @@ -0,0 +1,309 @@ + + + + +Re2jSubjects.Re2jStringSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Re2jSubjects.Re2jStringSubject

+
+
java.lang.Object +
com.google.common.truth.Subject +
com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
+
+
+
+
Enclosing class:
+
Re2jSubjects
+
+
+
public static final class Re2jSubjects.Re2jStringSubject +extends Subject
+
Subject for String subjects which you can use to assert things about Pattern regexes.
+
+
See Also:
+
+ +
+
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      actualCustomStringRepresentation

      +
      +
      protected String actualCustomStringRepresentation()
      +
      Description copied from class: Subject
      +
      Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message. This should only be overridden to provide an + improved string representation of the value under test, as it would appear in any given error + message, and should not be used for additional prefixing. + +

      Subjects should override this with care. + +

      By default, this returns String.ValueOf(getActualValue()).

      +
      +
      Overrides:
      +
      actualCustomStringRepresentation in class Subject
      +
      +
      +
      +
    • +
    • +
      +

      matches

      +
      +
      public void matches(String regex)
      +
      Fails if the string does not match the given regex.
      +
      +
      +
    • +
    • +
      +

      matches

      +
      +
      @GwtIncompatible("com.google.re2j.Pattern") +public void matches(com.google.re2j.Pattern regex)
      +
      Fails if the string does not match the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotMatch

      +
      +
      public void doesNotMatch(String regex)
      +
      Fails if the string matches the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotMatch

      +
      +
      @GwtIncompatible("com.google.re2j.Pattern") +public void doesNotMatch(com.google.re2j.Pattern regex)
      +
      Fails if the string matches the given regex.
      +
      +
      +
    • +
    • +
      +

      containsMatch

      +
      +
      @GwtIncompatible("com.google.re2j.Pattern") +public void containsMatch(com.google.re2j.Pattern pattern)
      +
      Fails if the string does not contain a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      containsMatch

      +
      +
      public void containsMatch(String regex)
      +
      Fails if the string does not contain a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotContainMatch

      +
      +
      @GwtIncompatible("com.google.re2j.Pattern") +public void doesNotContainMatch(com.google.re2j.Pattern pattern)
      +
      Fails if the string contains a match on the given regex.
      +
      +
      +
    • +
    • +
      +

      doesNotContainMatch

      +
      +
      public void doesNotContainMatch(String regex)
      +
      Fails if the string contains a match on the given regex.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.html b/api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.html new file mode 100644 index 000000000..d154e484b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/Re2jSubjects.html @@ -0,0 +1,171 @@ + + + + +Re2jSubjects (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Re2jSubjects

+
+
java.lang.Object +
com.google.common.truth.extensions.re2j.Re2jSubjects
+
+
+
+
+
public final class Re2jSubjects +extends Object
+
Truth subjects for re2j regular expressions. + +

Truth natively provides subjects for dealing with java.util.regex based regular + expressions. This class is intended to provide com.google.re2j analogues to those + methods.

+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.Re2jStringSubject.html b/api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.Re2jStringSubject.html new file mode 100644 index 000000000..5a0d6f3ca --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.Re2jStringSubject.html @@ -0,0 +1,86 @@ + + + + +Uses of Class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject

+
+ +
+
Package
+
Description
+ +
 
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.html b/api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.html new file mode 100644 index 000000000..070502d68 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/class-use/Re2jSubjects.html @@ -0,0 +1,58 @@ + + + + +Uses of Class com.google.common.truth.extensions.re2j.Re2jSubjects (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.google.common.truth.extensions.re2j.Re2jSubjects

+
+No usage of com.google.common.truth.extensions.re2j.Re2jSubjects
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/package-summary.html b/api/1.4.4/com/google/common/truth/extensions/re2j/package-summary.html new file mode 100644 index 000000000..527d9174b --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/package-summary.html @@ -0,0 +1,100 @@ + + + + +com.google.common.truth.extensions.re2j (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Package com.google.common.truth.extensions.re2j

+
+
+
+
package com.google.common.truth.extensions.re2j
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/package-tree.html b/api/1.4.4/com/google/common/truth/extensions/re2j/package-tree.html new file mode 100644 index 000000000..fee48ca05 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/package-tree.html @@ -0,0 +1,77 @@ + + + + +com.google.common.truth.extensions.re2j Class Hierarchy (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.google.common.truth.extensions.re2j

+
+Package Hierarchies: + +
+

Class Hierarchy

+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/extensions/re2j/package-use.html b/api/1.4.4/com/google/common/truth/extensions/re2j/package-use.html new file mode 100644 index 000000000..4254e883f --- /dev/null +++ b/api/1.4.4/com/google/common/truth/extensions/re2j/package-use.html @@ -0,0 +1,82 @@ + + + + +Uses of Package com.google.common.truth.extensions.re2j (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.google.common.truth.extensions.re2j

+
+ +
+
Package
+
Description
+ +
 
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/package-summary.html b/api/1.4.4/com/google/common/truth/package-summary.html new file mode 100644 index 000000000..80f250225 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/package-summary.html @@ -0,0 +1,381 @@ + + + + +com.google.common.truth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Package com.google.common.truth

+
+
+
+
@CheckReturnValue +@NullMarked +package com.google.common.truth
+
+
Truth is a library for performing assertions in + tests: + +

+ assertThat(notificationText).contains("testuser@google.com");
+ 
+ +

Truth is owned and maintained by the Guava team. It is used in the majority of the tests in Google’s own codebase. + +

For more information, see our introduction and + other docs.

+
+
+
+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/package-tree.html b/api/1.4.4/com/google/common/truth/package-tree.html new file mode 100644 index 000000000..b3ce1e507 --- /dev/null +++ b/api/1.4.4/com/google/common/truth/package-tree.html @@ -0,0 +1,158 @@ + + + + +com.google.common.truth Class Hierarchy (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.google.common.truth

+
+Package Hierarchies: + +
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+ + + diff --git a/api/1.4.4/com/google/common/truth/package-use.html b/api/1.4.4/com/google/common/truth/package-use.html new file mode 100644 index 000000000..bf55e1e1a --- /dev/null +++ b/api/1.4.4/com/google/common/truth/package-use.html @@ -0,0 +1,425 @@ + + + + +Uses of Package com.google.common.truth (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.google.common.truth

+
+
Packages that use com.google.common.truth
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+ +
 
+
+
+ +
+
+ + + diff --git a/api/1.4.4/deprecated-list.html b/api/1.4.4/deprecated-list.html new file mode 100644 index 000000000..f2e073218 --- /dev/null +++ b/api/1.4.4/deprecated-list.html @@ -0,0 +1,320 @@ + + + + +Deprecated List (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Deprecated API

+
+

Contents

+ + + + +
+ + + diff --git a/api/1.4.4/element-list b/api/1.4.4/element-list new file mode 100644 index 000000000..32450c08f --- /dev/null +++ b/api/1.4.4/element-list @@ -0,0 +1,3 @@ +com.google.common.truth +com.google.common.truth.extensions.proto +com.google.common.truth.extensions.re2j diff --git a/api/1.4.4/help-doc.html b/api/1.4.4/help-doc.html new file mode 100644 index 000000000..c372eac2b --- /dev/null +++ b/api/1.4.4/help-doc.html @@ -0,0 +1,199 @@ + + + + +API Help (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+

JavaDoc Help

+ +
+
+

Navigation

+Starting from the Overview page, you can browse the documentation using the links in each page, and in the navigation bar at the top of each page. The Index and Search box allow you to navigate to specific declarations and summary pages, including: All Packages, All Classes and Interfaces + +
+
+
+

Kinds of Pages

+The following sections describe the different kinds of pages in this collection. +
+

Overview

+

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+
+
+

Package

+

Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain the following categories:

+
    +
  • Interfaces
  • +
  • Classes
  • +
  • Enum Classes
  • +
  • Exception Classes
  • +
  • Annotation Interfaces
  • +
+
+
+

Class or Interface

+

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a declaration and description, member summary tables, and detailed member descriptions. Entries in each of these sections are omitted if they are empty or not applicable.

+
    +
  • Class Inheritance Diagram
  • +
  • Direct Subclasses
  • +
  • All Known Subinterfaces
  • +
  • All Known Implementing Classes
  • +
  • Class or Interface Declaration
  • +
  • Class or Interface Description
  • +
+
+
    +
  • Nested Class Summary
  • +
  • Enum Constant Summary
  • +
  • Field Summary
  • +
  • Property Summary
  • +
  • Constructor Summary
  • +
  • Method Summary
  • +
  • Required Element Summary
  • +
  • Optional Element Summary
  • +
+
+
    +
  • Enum Constant Details
  • +
  • Field Details
  • +
  • Property Details
  • +
  • Constructor Details
  • +
  • Method Details
  • +
  • Element Details
  • +
+

Note: Annotation interfaces have required and optional elements, but not methods. Only enum classes have enum constants. The components of a record class are displayed as part of the declaration of the record class. Properties are a feature of JavaFX.

+

The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

+
+
+

Other Files

+

Packages and modules may contain pages with additional information related to the declarations nearby.

+
+
+

Use

+

Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the USE link in the navigation bar.

+
+
+

Tree (Class Hierarchy)

+

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

+
    +
  • When viewing the Overview page, clicking on TREE displays the hierarchy for all packages.
  • +
  • When viewing a particular package, class or interface page, clicking on TREE displays the hierarchy for only that package.
  • +
+
+
+

Deprecated API

+

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to shortcomings, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

+
+
+

Serialized Form

+

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to those who implement rather than use the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See Also" section of the class description.

+
+
+

All Packages

+

The All Packages page contains an alphabetic index of all packages contained in the documentation.

+
+
+

All Classes and Interfaces

+

The All Classes and Interfaces page contains an alphabetic index of all classes and interfaces contained in the documentation, including annotation interfaces, enum classes, and record classes.

+
+
+

Index

+

The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields in the documentation, as well as summary pages such as All Packages, All Classes and Interfaces.

+
+
+
+This help file applies to API documentation generated by the standard doclet.
+ + + diff --git a/api/1.4.4/index-all.html b/api/1.4.4/index-all.html new file mode 100644 index 000000000..dc0a58b20 --- /dev/null +++ b/api/1.4.4/index-all.html @@ -0,0 +1,4190 @@ + + + + +Index (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form +

A

+
+
about(CustomSubjectBuilder.Factory<CustomSubjectBuilderT>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
about(Subject.Factory<S, A>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
+
Given a factory for some Subject class, returns a builder whose that(actual) + method creates instances of that class.
+
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.IntStreamSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.IterableSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.LongStreamSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.StreamSubject
+
 
+
actualCustomStringRepresentation() - Method in class com.google.common.truth.Subject
+
+
Supplies the direct string representation of the actual value to other methods which may prefix + or otherwise position it in an error message.
+
+
all() - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches all fields without exception.
+
+
allowingFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptors.
+
+
allowingFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches nothing except the provided field descriptors for + the message.
+
+
allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptors.
+
+
allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches nothing except the provided field descriptors for + the message.
+
+
allowingFields(int, int...) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, plus all fields defined by the given field + numbers.
+
+
allowingFields(int, int...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches nothing except the provided field numbers for the + top level message type.
+
+
allowingFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, plus all fields defined by the given field + numbers.
+
+
allowingFields(Iterable<Integer>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches nothing except the provided field numbers for the + top level message type.
+
+
apply(A, E) - Method in interface com.google.common.truth.Correspondence.BinaryPredicate
+
+
Returns whether or not the actual and expected values satisfy the condition defined by this + predicate.
+
+
apply(Statement, Description) - Method in class com.google.common.truth.Expect
+
 
+
apply(Statement, Description) - Method in class com.google.common.truth.ExpectFailure
+
 
+
asList() - Method in class com.google.common.truth.ObjectArraySubject
+
 
+
asList() - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
+
 
+
asList() - Method in class com.google.common.truth.PrimitiveByteArraySubject
+
 
+
asList() - Method in class com.google.common.truth.PrimitiveCharArraySubject
+
 
+
asList() - Method in class com.google.common.truth.PrimitiveIntArraySubject
+
 
+
asList() - Method in class com.google.common.truth.PrimitiveLongArraySubject
+
 
+
asList() - Method in class com.google.common.truth.PrimitiveShortArraySubject
+
 
+
assert_() - Static method in class com.google.common.truth.Truth
+
+
Begins a call chain with the fluent Truth API.
+
+
assertAbout(CustomSubjectBuilder.Factory<CustomSubjectBuilderT>) - Static method in class com.google.common.truth.Truth
+
+
A generic, advanced method of extension of Truth to new types, which is documented on CustomSubjectBuilder.
+
+
assertAbout(Subject.Factory<S, T>) - Static method in class com.google.common.truth.Truth
+
+
Given a factory for some Subject class, returns a builder whose that(actual) + method creates instances of that class.
+
+
assertThat(boolean[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(byte[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(char[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(double[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(float[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(int[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(long[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(short[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(ComparableT) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Optional<?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Multimap<?, ?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Multimap<?, M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
+
+
Assert on a Multimap with Message values.
+
+
assertThat(Multiset<?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Table<?, ?, ?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Message) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
+
+
Assert on a single Message instance.
+
+
assertThat(MessageLite) - Static method in class com.google.common.truth.extensions.proto.LiteProtoTruth
+
 
+
assertThat(MessageLite) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
+
+
Assert on a single MessageLite instance.
+
+
assertThat(AssertionError) - Static method in class com.google.common.truth.ExpectFailure
+
+
Creates a subject for asserting about the given AssertionError, usually one produced by + Truth.
+
+
assertThat(Boolean) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Class<?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Double) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Float) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Integer) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Iterable<?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Iterable<M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
+
+
Assert on a sequence of Messages.
+
+
assertThat(Long) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Object) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(String) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Throwable) - Static method in class com.google.common.truth.Truth
+
+
Begins an assertion about a Throwable.
+
+
assertThat(BigDecimal) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Path) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Path) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(Map<?, ?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Map<?, M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
+
+
Assert on a map with Message values.
+
+
assertThat(Optional<?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Optional<?>) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(OptionalDouble) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(OptionalDouble) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(OptionalInt) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(OptionalInt) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(OptionalLong) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(OptionalLong) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(IntStream) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(IntStream) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(LongStream) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(LongStream) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(Stream<?>) - Static method in class com.google.common.truth.Truth
+
 
+
assertThat(Stream<?>) - Static method in class com.google.common.truth.Truth8
+
+
Deprecated.
+
assertThat(T[]) - Static method in class com.google.common.truth.Truth
+
 
+
assertWithMessage(String) - Static method in class com.google.common.truth.Truth
+
+
Begins an assertion that, if it fails, will prepend the given message to the failure message.
+
+
assertWithMessage(String, Object...) - Static method in class com.google.common.truth.Truth
+
+
Begins an assertion that, if it fails, will prepend the given message to the failure message.
+
+
assume() - Static method in class com.google.common.truth.TruthJUnit
+
+
Begins a call chain with the fluent Truth API.
+
+
+

B

+
+
BigDecimalSubject - Class in com.google.common.truth
+
+
Propositions for BigDecimal typed subjects.
+
+
BooleanSubject - Class in com.google.common.truth
+
+
Propositions for boolean subjects.
+
+
+

C

+
+
check(String, Object...) - Method in class com.google.common.truth.Subject
+
+
Returns a builder for creating a derived subject.
+
+
ClassSubject - Class in com.google.common.truth
+
+
Propositions for Class subjects.
+
+
com.google.common.truth - package com.google.common.truth
+
+
Truth is a library for performing assertions in + tests:
+
+
com.google.common.truth.extensions.proto - package com.google.common.truth.extensions.proto
+
+
Custom subjects for testing Protocol + Buffer instances.
+
+
com.google.common.truth.extensions.re2j - package com.google.common.truth.extensions.re2j
+
 
+
ComparableSubject<T> - Class in com.google.common.truth
+
+
Propositions for Comparable typed subjects.
+
+
ComparableSubject(FailureMetadata, T) - Constructor for class com.google.common.truth.ComparableSubject
+
 
+
compare(A, E) - Method in class com.google.common.truth.Correspondence
+
+
Returns whether or not the actual value is said to correspond to the expected + value for the purposes of this test.
+
+
comparingElementsUsing(Correspondence<? super A, ? super E>) - Method in class com.google.common.truth.IterableSubject
+
+
Starts a method chain for a check in which the actual elements (i.e.
+
+
comparingExpectedFieldsOnly() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnly() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnly() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnly() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingExpectedFieldsOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
+
+
comparingValuesUsing(Correspondence<? super A, ? super E>) - Method in class com.google.common.truth.MapSubject
+
+
Starts a method chain for a check in which the actual values (i.e.
+
+
comparingValuesUsing(Correspondence<? super A, ? super E>) - Method in class com.google.common.truth.MultimapSubject
+
+
Starts a method chain for a check in which the actual values (i.e.
+
+
contains(int) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain the given element.
+
+
contains(long) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain the given element.
+
+
contains(M) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to the given expected + element.
+
+
contains(E) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to the given expected + element.
+
+
contains(CharSequence) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
+
+
Fails if the string does not contain the given sequence (while ignoring case).
+
+
contains(CharSequence) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not contain the given sequence.
+
+
contains(Object) - Method in class com.google.common.truth.IterableSubject
+
+
Checks (with a side-effect failure) that the subject contains the supplied item.
+
+
contains(Object) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain the given element.
+
+
contains(Object, Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not contain a mapping for the given row key and column key.
+
+
containsAnyIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
+
+
containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain at least one of the given elements.
+
+
containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the subject contains at least one of the objects contained in the provided + collection or fails.
+
+
containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain at least one of the given elements.
+
+
containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain at least one of the given elements.
+
+
containsAnyIn(Object[]) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the subject contains at least one of the objects contained in the provided array or + fails.
+
+
containsAnyIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
+
+
containsAnyIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
+
+
containsAnyIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
+
+
containsAnyOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
+
+ +
+
containsAnyOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
+
+ +
+
containsAnyOf(int, int, int...) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain at least one of the given elements.
+
+
containsAnyOf(long, long, long...) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain at least one of the given elements.
+
+
containsAnyOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
+
+
containsAnyOf(E, E, E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains at least one element that corresponds to at least one of the + expected elements.
+
+
containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the subject contains at least one of the provided objects or fails.
+
+
containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain at least one of the given elements.
+
+
containsAtLeast(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
+
+ +
+
containsAtLeast(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
+
+ +
+
containsAtLeast(int, int, int...) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain all of the given elements.
+
+
containsAtLeast(long, long, long...) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain all of the given elements.
+
+
containsAtLeast(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains elements that corresponds to all of the expected elements, + i.e.
+
+
containsAtLeast(E, E, E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains elements that correspond to all the expected elements, i.e.
+
+
containsAtLeast(Object, E, Object...) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
+
+
Fails if the map does not contain at least the given set of keys mapping to values that + correspond to the given values.
+
+
containsAtLeast(Object, E, Object...) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the multimap does not contain at least the given key/value pairs.
+
+
containsAtLeast(Object, Object, Object...) - Method in class com.google.common.truth.MapSubject
+
 
+
containsAtLeast(Object, Object, Object...) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap does not contain at least the given key/value pairs.
+
+
containsAtLeast(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the actual iterable contains at least all the expected elements or fails.
+
+
containsAtLeast(Object, Object, Object...) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain all of the given elements.
+
+
containsAtLeastElementsIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains elements that correspond to all the expected elements, i.e.
+
+
containsAtLeastElementsIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain all of the given elements.
+
+
containsAtLeastElementsIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the actual iterable contains at least all the expected elements or fails.
+
+
containsAtLeastElementsIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain all of the given elements.
+
+
containsAtLeastElementsIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain all of the given elements.
+
+
containsAtLeastElementsIn(Object[]) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the actual iterable contains at least all the expected elements or fails.
+
+
containsAtLeastElementsIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains elements that correspond to all the expected elements, i.e.
+
+
containsAtLeastElementsIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains elements that corresponds to all of the expected elements, + i.e.
+
+
containsAtLeastElementsIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains elements that corresponds to all of the expected elements, + i.e.
+
+
containsAtLeastEntriesIn(Multimap<?, ?>) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the Multimap does not contain at least the entries in the argument Multimap.
+
+
containsAtLeastEntriesIn(Multimap<?, ? extends E>) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the map does not contain at least the keys in the given multimap, mapping to values + that correspond to the values of the given multimap.
+
+
containsAtLeastEntriesIn(Map<?, ?>) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map does not contain at least the given set of entries in the given map.
+
+
containsAtLeastEntriesIn(Map<?, ? extends E>) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
+
+
Fails if the map does not contain at least the keys in the given map, mapping to values that + correspond to the values of the given map.
+
+
containsCell(Table.Cell<?, ?, ?>) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not contain the given cell.
+
+
containsCell(Object, Object, Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not contain the given cell.
+
+
containsColumn(Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not contain the given column key.
+
+
containsEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Fails if the map does not contain an entry with the given key and a value that corresponds to + the given value.
+
+
containsEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Fails if the multimap does not contain an entry with the given key and a value that corresponds + to the given value.
+
+
containsEntry(Object, E) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
+
+
Fails if the map does not contain an entry with the given key and a value that corresponds to + the given value.
+
+
containsEntry(Object, E) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the multimap does not contain an entry with the given key and a value that + corresponds to the given value.
+
+
containsEntry(Object, Object) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map does not contain the given entry.
+
+
containsEntry(Object, Object) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap does not contain the given entry.
+
+
containsExactly() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Fails if the multimap is not empty.
+
+
containsExactly() - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map is not empty.
+
+
containsExactly() - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap is not empty.
+
+
containsExactly() - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the multimap is not empty.
+
+
containsExactly(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
+
+ +
+
containsExactly(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
+
+ +
+
containsExactly(int...) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain exactly the given elements.
+
+
containsExactly(long...) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain exactly the given elements.
+
+
containsExactly(E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
+
+
containsExactly(M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
+
+
containsExactly(Object...) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that a subject contains exactly the provided objects or fails.
+
+
containsExactly(Object...) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain exactly the given elements.
+
+
containsExactly(Object, E, Object...) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
+
+
Fails if the map does not contain exactly the given set of keys mapping to values that + correspond to the given values.
+
+
containsExactly(Object, E, Object...) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the multimap does not contain exactly the given set of key/value pairs.
+
+
containsExactly(Object, M, Object...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Fails if the map does not contain exactly the given set of keys mapping to values that + correspond to the given values.
+
+
containsExactly(Object, M, Object...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Fails if the multimap does not contain exactly the given set of key/value pairs.
+
+
containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map does not contain exactly the given set of key/value pairs.
+
+
containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap does not contain exactly the given set of key/value pairs.
+
+
containsExactlyElementsIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
+
+
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not contain exactly the given elements.
+
+
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that a subject contains exactly the provided objects or fails.
+
+
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not contain exactly the given elements.
+
+
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not contain exactly the given elements.
+
+
containsExactlyElementsIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
+
+
containsExactlyElementsIn(Object[]) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that a subject contains exactly the provided objects or fails.
+
+
containsExactlyElementsIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
+
+
containsExactlyElementsIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
+
+
containsExactlyEntriesIn(Multimap<?, ?>) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the Multimap does not contain precisely the same entries as the argument + Multimap.
+
+
containsExactlyEntriesIn(Multimap<?, ? extends E>) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the map does not contain exactly the keys in the given multimap, mapping to values + that correspond to the values of the given multimap.
+
+
containsExactlyEntriesIn(Multimap<?, ? extends M>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Fails if the map does not contain exactly the keys in the given multimap, mapping to values + that correspond to the values of the given multimap.
+
+
containsExactlyEntriesIn(Map<?, ?>) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map does not contain exactly the given set of entries in the given map.
+
+
containsExactlyEntriesIn(Map<?, ? extends E>) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
+
+
Fails if the map does not contain exactly the keys in the given map, mapping to values that + correspond to the values of the given map.
+
+
containsExactlyEntriesIn(Map<?, ? extends M>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Fails if the map does not contain exactly the keys in the given map, mapping to values that + correspond to the values of the given map.
+
+
containsKey(Object) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map does not contain the given key.
+
+
containsKey(Object) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap does not contain the given key.
+
+
containsMatch(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string does not contain a match on the given regex.
+
+
containsMatch(String) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not contain a match on the given regex.
+
+
containsMatch(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string does not contain a match on the given regex.
+
+
containsMatch(Pattern) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not contain a match on the given regex.
+
+
containsNoDuplicates() - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject contains duplicate elements.
+
+
containsNoDuplicates() - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the subject does not contain duplicate elements.
+
+
containsNoDuplicates() - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject contains duplicate elements.
+
+
containsNoDuplicates() - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject contains duplicate elements.
+
+
containsNoneIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains no elements that correspond to any of the given elements.
+
+
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject contains any of the given elements.
+
+
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the actual iterable contains none of the elements contained in the excluded + iterable or fails.
+
+
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject contains any of the given elements.
+
+
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject contains any of the given elements.
+
+
containsNoneIn(Object[]) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that the actual iterable contains none of the elements contained in the excluded array + or fails.
+
+
containsNoneIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains no elements that correspond to any of the given elements.
+
+
containsNoneIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains no elements that correspond to any of the given elements.
+
+
containsNoneIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains no elements that correspond to any of the given elements.
+
+
containsNoneOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
+
+ +
+
containsNoneOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
+
+ +
+
containsNoneOf(int, int, int...) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject contains any of the given elements.
+
+
containsNoneOf(long, long, long...) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject contains any of the given elements.
+
+
containsNoneOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that the subject contains no elements that correspond to any of the given elements.
+
+
containsNoneOf(E, E, E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that the subject contains no elements that correspond to any of the given elements.
+
+
containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
+
+
Checks that an actual iterable contains none of the excluded objects or fails.
+
+
containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject contains any of the given elements.
+
+
containsRow(Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not contain the given row key.
+
+
containsValue(Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not contain the given value.
+
+
Conventions for handling exceptions - Search tag in com.google.common.truth.Correspondence.compare(A, E)
+
Section
+
Correspondence<A,E> - Class in com.google.common.truth
+
+
Determines whether an instance of type A corresponds in some way to an instance of type + E for the purposes of a test assertion.
+
+
Correspondence.BinaryPredicate<A,E> - Interface in com.google.common.truth
+
+
A functional interface for a binary predicate, to be used to test whether a pair of objects of + types A and E satisfy some condition.
+
+
Correspondence.DiffFormatter<A,E> - Interface in com.google.common.truth
+
+
A functional interface to be used format the diff between a pair of objects of types A + and E.
+
+
create() - Static method in class com.google.common.truth.Expect
+
+
Creates a new instance.
+
+
createSubject(FailureMetadata, ActualT) - Method in interface com.google.common.truth.Subject.Factory
+
+
Creates a new Subject.
+
+
createSubjectBuilder(FailureMetadata) - Method in interface com.google.common.truth.CustomSubjectBuilder.Factory
+
+
Creates a new CustomSubjectBuilder of the appropriate type.
+
+
CustomSubjectBuilder - Class in com.google.common.truth
+
+
In a fluent assertion chain, exposes one or more "custom" that methods, which accept a + value under test and return a Subject.
+
+
CustomSubjectBuilder(FailureMetadata) - Constructor for class com.google.common.truth.CustomSubjectBuilder
+
+
Constructor for use by subclasses.
+
+
CustomSubjectBuilder.Factory<CustomSubjectBuilderT> - Interface in com.google.common.truth
+
+
In a fluent assertion chain, the argument to the "custom" overload of about, the method that specifies + what kind of Subject to create.
+
+
+

D

+
+
displayingDiffsPairedBy(Function<? super A, ?>, Function<? super E, ?>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
+
+
displayingDiffsPairedBy(Function<? super E, ?>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
+
+
displayingDiffsPairedBy(Function<? super M, ?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
+
+
displayingDiffsPairedBy(Function<? super M, ?>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Specifies a way to pair up unexpected and missing elements in the message when an assertion + fails.
+
+
doesNotContain(int) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject contains the given element.
+
+
doesNotContain(long) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject contains the given element.
+
+
doesNotContain(M) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
+
+
Checks that none of the actual elements correspond to the given element.
+
+
doesNotContain(E) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Checks that none of the actual elements correspond to the given element.
+
+
doesNotContain(CharSequence) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
+
+
Fails if the string contains the given sequence (while ignoring case).
+
+
doesNotContain(CharSequence) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string contains the given sequence.
+
+
doesNotContain(Object) - Method in class com.google.common.truth.IterableSubject
+
+
Checks (with a side-effect failure) that the subject does not contain the supplied item.
+
+
doesNotContain(Object) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject contains the given element.
+
+
doesNotContain(Object, Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table contains a mapping for the given row key and column key.
+
+
doesNotContainCell(Table.Cell<?, ?, ?>) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table contains the given cell.
+
+
doesNotContainCell(Object, Object, Object) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table contains the given cell.
+
+
doesNotContainEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Fails if the map contains an entry with the given key and a value that corresponds to the given + value.
+
+
doesNotContainEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Fails if the multimap contains an entry with the given key and a value that corresponds to the + given value.
+
+
doesNotContainEntry(Object, E) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
+
+
Fails if the map contains an entry with the given key and a value that corresponds to the + given value.
+
+
doesNotContainEntry(Object, E) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
+
+
Fails if the multimap contains an entry with the given key and a value that corresponds to + the given value.
+
+
doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map contains the given entry.
+
+
doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap contains the given entry.
+
+
doesNotContainKey(Object) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map contains the given key.
+
+
doesNotContainKey(Object) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap contains the given key.
+
+
doesNotContainMatch(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string contains a match on the given regex.
+
+
doesNotContainMatch(String) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string contains a match on the given regex.
+
+
doesNotContainMatch(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string contains a match on the given regex.
+
+
doesNotContainMatch(Pattern) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string contains a match on the given regex.
+
+
doesNotMatch(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string matches the given regex.
+
+
doesNotMatch(String) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string matches the given regex.
+
+
doesNotMatch(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string matches the given regex.
+
+
doesNotMatch(Pattern) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string matches the given regex.
+
+
DoubleSubject - Class in com.google.common.truth
+
+
Propositions for Double subjects.
+
+
DoubleSubject.TolerantDoubleComparison - Class in com.google.common.truth
+
+
A partially specified check about an approximate relationship to a double subject using + a tolerance.
+
+
+

E

+
+
endsWith(String) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not end with the given string.
+
+
equals(Object) - Method in class com.google.common.truth.Correspondence
+
+
Deprecated. +
Object.equals(Object) is not supported. If you meant to compare objects + using this Correspondence, use Correspondence.compare(A, E).
+
+
+
equals(Object) - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
+
+
Deprecated. +
Object.equals(Object) is not supported on TolerantDoubleComparison. If + you meant to compare doubles, use DoubleSubject.TolerantDoubleComparison.of(double) instead.
+
+
+
equals(Object) - Method in class com.google.common.truth.FloatSubject.TolerantFloatComparison
+
+
Deprecated. +
Object.equals(Object) is not supported on TolerantFloatComparison. If you + meant to compare floats, use FloatSubject.TolerantFloatComparison.of(float) instead.
+
+
+
equals(Object) - Method in class com.google.common.truth.IntegerSubject.TolerantIntegerComparison
+
+
Deprecated. +
Object.equals(Object) is not supported on TolerantIntegerComparison. If + you meant to compare ints, use IntegerSubject.TolerantIntegerComparison.of(int) instead.
+
+
+
equals(Object) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Deprecated. +
Object.equals(Object) is not supported on Truth subjects or intermediate + classes. If you are writing a test assertion (actual vs. expected), use methods liks + IterableSubject.UsingCorrespondence.containsExactlyElementsIn(Iterable) instead.
+
+
+
equals(Object) - Method in class com.google.common.truth.LongSubject.TolerantLongComparison
+
+
Deprecated. +
Object.equals(Object) is not supported on TolerantLongComparison. If you + meant to compare longs, use LongSubject.TolerantLongComparison.of(long) instead.
+
+
+
equals(Object) - Method in class com.google.common.truth.Subject
+
+
Deprecated. +
Object.equals(Object) is not supported on Truth subjects. If you are + writing a test assertion (actual vs. expected), use Subject.isEqualTo(Object) instead.
+
+
+
equals(Object) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Deprecated. +
Do not call equals() on a IterableOfProtosFluentAssertion.
+
+
+
equals(Object) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Deprecated. +
Do not call equals() on a MapWithProtoValuesFluentAssertion.
+
+
+
equals(Object) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Deprecated. +
Do not call equals() on a MultimapWithProtoValuesFluentAssertion.
+
+
+
equals(Object) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Deprecated. +
Do not call equals() on a ProtoFluentAssertion. Use ProtoFluentAssertion.isEqualTo(Message) instead.
+
+
+
Examples of exception handling - Search tag in com.google.common.truth.Correspondence.compare(A, E)
+
Section
+
Exception handling - Search tag in com.google.common.truth.Correspondence.compare(A, E)
+
Section
+
Expect - Class in com.google.common.truth
+
+
A TestRule that batches up all failures encountered during a test, and reports them all + together at the end (similar to ErrorCollector).
+
+
expectFailure(ExpectFailure.StandardSubjectBuilderCallback) - Static method in class com.google.common.truth.ExpectFailure
+
+
Static alternative that directly returns the triggered failure.
+
+
ExpectFailure - Class in com.google.common.truth
+
+
A utility for testing that assertions against a custom Subject fail when they should, + plus a utility to assert about parts of the resulting failure messages.
+
+
ExpectFailure() - Constructor for class com.google.common.truth.ExpectFailure
+
+
Creates a new instance for use as a @Rule.
+
+
ExpectFailure.SimpleSubjectBuilderCallback<S,A> - Interface in com.google.common.truth
+
+
A "functional interface" for expectFailureAbout() to invoke and + capture failures.
+
+
ExpectFailure.StandardSubjectBuilderCallback - Interface in com.google.common.truth
+
+
A "functional interface" for expectFailure() to invoke and capture + failures.
+
+
expectFailureAbout(Subject.Factory<S, A>, ExpectFailure.SimpleSubjectBuilderCallback<S, A>) - Static method in class com.google.common.truth.ExpectFailure
+
+
Static alternative that directly returns the triggered failure.
+
+
+

F

+
+
fact(String, Object) - Static method in class com.google.common.truth.Fact
+
+
Creates a fact with the given key and value, which will be printed in a format like "key: + value." The value is converted to a string by calling String.valueOf on it.
+
+
Fact - Class in com.google.common.truth
+
+
A string key-value pair in a failure message, such as "expected: abc" or "but was: xyz."
+
+
factKeys() - Method in class com.google.common.truth.TruthFailureSubject
+
+
Returns a subject for the list of fact keys.
+
+
factValue(String) - Method in class com.google.common.truth.TruthFailureSubject
+
+
Returns a subject for the value with the given name.
+
+
factValue(String, int) - Method in class com.google.common.truth.TruthFailureSubject
+
+
Returns a subject for the value of the index-th instance of the fact with the given + name.
+
+
fail() - Method in class com.google.common.truth.StandardSubjectBuilder
+
+
Reports a failure.
+
+
fail(AssertionError) - Method in interface com.google.common.truth.FailureStrategy
+
+
Handles a failure.
+
+
FailureMetadata - Class in com.google.common.truth
+
+
An opaque, immutable object containing state from the previous calls in the fluent assertion + chain.
+
+
FailureStrategy - Interface in com.google.common.truth
+
+
Defines what to do when a check fails.
+
+
failWithActual(Fact, Fact...) - Method in class com.google.common.truth.Subject
+
+
Fails, reporting a message with the given facts, followed by an automatically added fact of the + form: + + + but was: actual value.
+
+
failWithActual(String, Object) - Method in class com.google.common.truth.Subject
+
+
Fails, reporting a message with two "facts": + + + key: value + but was: actual value.
+
+
failWithoutActual(Fact, Fact...) - Method in class com.google.common.truth.Subject
+
+
Fails, reporting a message with the given facts, without automatically adding the actual + value.
+
+
FieldScope - Class in com.google.common.truth.extensions.proto
+
+
An immutable, abstract representation of a set of specific field paths.
+
+
FieldScopes - Class in com.google.common.truth.extensions.proto
+
+
Factory class for FieldScope instances.
+
+
FloatSubject - Class in com.google.common.truth
+
+
Propositions for Float subjects.
+
+
FloatSubject.TolerantFloatComparison - Class in com.google.common.truth
+
+
A partially specified check about an approximate relationship to a float subject using + a tolerance.
+
+
forCustomFailureStrategy(FailureStrategy) - Static method in class com.google.common.truth.StandardSubjectBuilder
+
+
Returns a new instance that invokes the given FailureStrategy when a check fails.
+
+
formatDiff(A, E) - Method in interface com.google.common.truth.Correspondence.DiffFormatter
+
+
Returns a String describing the difference between the actual and + expected values, if possible, or null if not.
+
+
formatDiff(A, E) - Method in class com.google.common.truth.Correspondence
+
+
Returns a String describing the difference between the actual and + expected values, if possible, or null if not.
+
+
formattingDiffsUsing(Correspondence.DiffFormatter<? super A, ? super E>) - Method in class com.google.common.truth.Correspondence
+
+
Returns a new correspondence which is like this one, except that the given formatter may be + used to format the difference between a pair of elements that do not correspond.
+
+
formattingDiffsUsing(Correspondence.DiffFormatter<? super T, ? super T>) - Method in class com.google.common.truth.IterableSubject
+
+
Starts a method chain for a check in which failure messages may use the given Correspondence.DiffFormatter to describe the difference between an actual elements (i.e.
+
+
formattingDiffsUsing(Correspondence.DiffFormatter<? super V, ? super V>) - Method in class com.google.common.truth.MapSubject
+
+
Starts a method chain for a check in which failure messages may use the given Correspondence.DiffFormatter to describe the difference between an actual value (i.e.
+
+
For people extending Truth - Search tag in class com.google.common.truth.CustomSubjectBuilder
+
Section
+
For people extending Truth - Search tag in class com.google.common.truth.SimpleSubjectBuilder
+
Section
+
For people extending Truth - Search tag in class com.google.common.truth.StandardSubjectBuilder
+
Section
+
For people extending Truth - Search tag in class com.google.common.truth.Subject
+
Section
+
For people extending Truth - Search tag in class com.google.common.truth.Truth
+
Section
+
For people extending Truth - Search tag in interface com.google.common.truth.CustomSubjectBuilder.Factory
+
Section
+
For people extending Truth - Search tag in interface com.google.common.truth.FailureStrategy
+
Section
+
For people extending Truth - Search tag in interface com.google.common.truth.Subject.Factory
+
Section
+
from(Correspondence.BinaryPredicate<A, E>, String) - Static method in class com.google.common.truth.Correspondence
+
+
Constructs a Correspondence that compares actual and expected elements using the given + binary predicate.
+
+
fromSetFields(Message) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which is constrained to precisely those specific field paths that + are explicitly set in the message.
+
+
fromSetFields(Message, Message, Message...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Creates a FieldScope covering the fields set in every message in the provided list of + messages, with the same semantics as in FieldScopes.fromSetFields(Message).
+
+
fromSetFields(Message, TypeRegistry, ExtensionRegistry) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which is constrained to precisely those specific field paths that + are explicitly set in the message.
+
+
fromSetFields(Iterable<? extends Message>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Creates a FieldScope covering the fields set in every message in the provided list of + messages, with the same semantics as in FieldScopes.fromSetFields(Message).
+
+
fromSetFields(Iterable<? extends Message>, TypeRegistry, ExtensionRegistry) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Creates a FieldScope covering the fields set in every message in the provided list of + messages, with the same semantics as in FieldScopes.fromSetFields(Message).
+
+
+

G

+
+
getFailure() - Method in class com.google.common.truth.ExpectFailure
+
+
Returns the captured failure, if one occurred.
+
+
GuavaOptionalSubject - Class in com.google.common.truth
+
+
Propositions for Guava Optional subjects.
+
+
+

H

+
+
hasAllRequiredFields() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Checks whether the subject has all required fields set.
+
+
hasAllRequiredFields() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
 
+
hasCauseThat() - Method in class com.google.common.truth.ThrowableSubject
+
+
Returns a new ThrowableSubject that supports assertions on this throwable's direct + cause.
+
+
hasCount(Object, int) - Method in class com.google.common.truth.MultisetSubject
+
+
Fails if the element does not have the given count.
+
+
hasFailures() - Method in class com.google.common.truth.Expect
+
 
+
hashCode() - Method in class com.google.common.truth.Correspondence
+
+
Deprecated. +
Object.hashCode() is not supported.
+
+
+
hashCode() - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
+
+
Deprecated. +
Object.hashCode() is not supported on TolerantDoubleComparison
+
+
+
hashCode() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Deprecated. +
IterableOfProtosFluentAssertion does not support hashCode().
+
+
+
hashCode() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Deprecated. +
MapWithProtoValuesFluentAssertion does not support hashCode().
+
+
+
hashCode() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Deprecated. +
MultimapWithProtoValuesFluentAssertion does not support hashCode().
+
+
+
hashCode() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Deprecated. +
ProtoFluentAssertion does not support hashCode(). Use ProtoFluentAssertion.isEqualTo(Message) for testing.
+
+
+
hashCode() - Method in class com.google.common.truth.FloatSubject.TolerantFloatComparison
+
+
Deprecated. +
Object.hashCode() is not supported on TolerantFloatComparison
+
+
+
hashCode() - Method in class com.google.common.truth.IntegerSubject.TolerantIntegerComparison
+
+
Deprecated. +
Object.hashCode() is not supported on TolerantIntegerComparison
+
+
+
hashCode() - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Deprecated. +
Object.hashCode() is not supported on Truth types.
+
+
+
hashCode() - Method in class com.google.common.truth.LongSubject.TolerantLongComparison
+
+
Deprecated. +
Object.hashCode() is not supported on TolerantLongComparison
+
+
+
hashCode() - Method in class com.google.common.truth.Subject
+
+
Deprecated. +
Object.hashCode() is not supported on Truth subjects.
+
+
+
hasLength(int) - Method in class com.google.common.truth.ObjectArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveByteArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveCharArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveIntArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveLongArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.PrimitiveShortArraySubject
+
+
Fails if the array does not have the given length.
+
+
hasLength(int) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not have the given length.
+
+
hasMessageThat() - Method in class com.google.common.truth.ThrowableSubject
+
+
Returns a StringSubject to make assertions about the throwable's message.
+
+
hasSize(int) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject does not have the given size.
+
+
hasSize(int) - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the subject does not have the given size.
+
+
hasSize(int) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject does not have the given size.
+
+
hasSize(int) - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map does not have the given size.
+
+
hasSize(int) - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap does not have the given size.
+
+
hasSize(int) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject does not have the given size.
+
+
hasSize(int) - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table does not have the given size.
+
+
hasValue(double) - Method in class com.google.common.truth.OptionalDoubleSubject
+
+
Fails if the OptionalDouble does not have the given value or the subject is null.
+
+
hasValue(int) - Method in class com.google.common.truth.OptionalIntSubject
+
+
Fails if the OptionalInt does not have the given value or the subject is null.
+
+
hasValue(long) - Method in class com.google.common.truth.OptionalLongSubject
+
+
Fails if the OptionalLong does not have the given value or the subject is null.
+
+
hasValue(Object) - Method in class com.google.common.truth.GuavaOptionalSubject
+
+
Fails if the Optional<T> does not have the given value or the subject is null.
+
+
hasValue(Object) - Method in class com.google.common.truth.OptionalSubject
+
+
Fails if the Optional<T> does not have the given value or the subject is null.
+
+
+

I

+
+
ignoreCheck() - Method in class com.google.common.truth.Subject
+
+
Begins a new call chain that ignores any failures.
+
+
ignoringCase() - Method in class com.google.common.truth.StringSubject
+
+
Returns a StringSubject-like instance that will ignore the case of the characters.
+
+
ignoringExtraRepeatedFieldElements() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElements() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElements() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElements() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElementsForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElementsForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElementsForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElementsForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are + not found in the 'expected' proto are ignored, with the exception of fields in the expected + proto which are empty.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified field descriptors + should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that extra repeated field elements for these explicitly specified top-level field + numbers should be ignored.
+
+
ignoringFieldAbsence() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsence() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsence() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsence() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsenceForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsenceForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsenceForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsenceForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of individual fields should be ignored when comparing for + equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored + when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldAbsenceOfFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be + ignored when comparing for equality.
+
+
ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, minus all fields matching the given Descriptors.FieldDescriptors.
+
+
ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches everything except the provided field descriptors for + the message.
+
+
ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, minus all fields defined by the given + field numbers.
+
+
ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches everything except the provided field descriptors for + the message.
+
+
ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Excludes all message fields matching the given Descriptors.FieldDescriptors from the comparison.
+
+
ignoringFields(int, int...) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, minus all fields defined by the given + field numbers.
+
+
ignoringFields(int, int...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches everything except the provided field numbers for the + top level message type.
+
+
ignoringFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.FieldScope
+
+
Returns a FieldScope equivalent to this one, minus all fields defined by the given + field numbers.
+
+
ignoringFields(Iterable<Integer>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches everything except the provided field numbers for the + top level message type.
+
+
ignoringFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Excludes all specific field paths under the argument FieldScope from the comparison.
+
+
ignoringFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Excludes the top-level message fields with the given tag numbers from the comparison.
+
+
ignoringRepeatedFieldOrder() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrder() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrder() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrder() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrderForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrderForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrderForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrderForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing + for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified field descriptors + should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
ignoringRepeatedFieldOrderOfFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies that the ordering of repeated fields for these explicitly specified top-level field + numbers should be ignored when comparing for equality.
+
+
inOrder() - Method in interface com.google.common.truth.Ordered
+
+
An additional assertion, implemented by some containment subjects which allows for a further + constraint of orderedness.
+
+
IntegerSubject - Class in com.google.common.truth
+
+
Propositions for Integer subjects.
+
+
IntegerSubject(FailureMetadata, Integer) - Constructor for class com.google.common.truth.IntegerSubject
+
+
Constructor for use by subclasses.
+
+
IntegerSubject.TolerantIntegerComparison - Class in com.google.common.truth
+
+
A partially specified check about an approximate relationship to a int subject using a + tolerance.
+
+
intStreams() - Static method in class com.google.common.truth.IntStreamSubject
+
+
Deprecated. +
Instead of about(intStreams()).that(...), use just that(...). + Similarly, instead of assertAbout(intStreams()).that(...), use just + assertThat(...).
+
+
+
IntStreamSubject - Class in com.google.common.truth
+
+
Propositions for IntStream subjects.
+
+
invokeAssertion(SimpleSubjectBuilder<S, A>) - Method in interface com.google.common.truth.ExpectFailure.SimpleSubjectBuilderCallback
+
 
+
invokeAssertion(StandardSubjectBuilder) - Method in interface com.google.common.truth.ExpectFailure.StandardSubjectBuilderCallback
+
 
+
isAbsent() - Method in class com.google.common.truth.GuavaOptionalSubject
+
+
Fails if the Optional<T> is present or the subject is null.
+
+
isAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.Subject
+
+
Fails unless the subject is equal to any of the given elements.
+
+
isAssignableTo(Class<?>) - Method in class com.google.common.truth.ClassSubject
+
+
Fails if this class or interface is not the same as or a subclass or subinterface of, the given + class or interface.
+
+
isAtLeast(int) - Method in class com.google.common.truth.DoubleSubject
+
+
Checks that the subject is greater than or equal to other.
+
+
isAtLeast(int) - Method in class com.google.common.truth.FloatSubject
+
+
Checks that the subject is greater than or equal to other.
+
+
isAtLeast(int) - Method in class com.google.common.truth.LongSubject
+
+
Checks that the subject is greater than or equal to other.
+
+
isAtLeast(T) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is greater than or equal to other.
+
+
isAtMost(int) - Method in class com.google.common.truth.DoubleSubject
+
+
Checks that the subject is less than or equal to other.
+
+
isAtMost(int) - Method in class com.google.common.truth.FloatSubject
+
+
Checks that the subject is less than or equal to other.
+
+
isAtMost(int) - Method in class com.google.common.truth.LongSubject
+
+
Checks that the subject is less than or equal to other.
+
+
isAtMost(T) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is less than or equal to other.
+
+
isEmpty() - Method in class com.google.common.truth.ObjectArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveByteArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveCharArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveIntArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveLongArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.PrimitiveShortArraySubject
+
+
Fails if the array is not empty (i.e.
+
+
isEmpty() - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject is not empty.
+
+
isEmpty() - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the subject is not empty.
+
+
isEmpty() - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject is not empty.
+
+
isEmpty() - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map is not empty.
+
+
isEmpty() - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap is not empty.
+
+
isEmpty() - Method in class com.google.common.truth.OptionalDoubleSubject
+
+
Fails if the OptionalDouble is present or the subject is null.
+
+
isEmpty() - Method in class com.google.common.truth.OptionalIntSubject
+
+
Fails if the OptionalInt is present or the subject is null.
+
+
isEmpty() - Method in class com.google.common.truth.OptionalLongSubject
+
+
Fails if the OptionalLong is present or the subject is null.
+
+
isEmpty() - Method in class com.google.common.truth.OptionalSubject
+
+
Fails if the Optional<T> is present or the subject is null.
+
+
isEmpty() - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject is not empty.
+
+
isEmpty() - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string is not equal to the zero-length "empty string."
+
+
isEmpty() - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table is not empty.
+
+
isEqualTo(Message) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares the subject of the assertion to expected, using all of the rules specified by + earlier operations.
+
+
isEqualTo(MessageLite.Builder) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Deprecated. +
A Builder can never compare equal to a MessageLite instance. Use build(), + or buildPartial() on the argument to get a MessageLite for comparison instead. Or, + if you are passing null, use Subject.isNull().
+
+
+
isEqualTo(Object) - Method in class com.google.common.truth.BigDecimalSubject
+
+
Fails if the subject's value and scale is not equal to the given BigDecimal.
+
+
isEqualTo(Object) - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is exactly equal to the given value, with equality defined as by + Double#equals.
+
+
isEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Checks whether the MessageLite is equivalent to the argument, using the standard equals() + implementation.
+
+
isEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
 
+
isEqualTo(Object) - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is exactly equal to the given value, with equality defined as by + Float#equals.
+
+
isEqualTo(Object) - Method in class com.google.common.truth.IterableSubject
+
 
+
isEqualTo(Object) - Method in class com.google.common.truth.MapSubject
+
 
+
isEqualTo(Object) - Method in class com.google.common.truth.MultimapSubject
+
 
+
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
A check that the actual array and expected are arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(double[], double[]) and Double.equals(Object) define it (which is + different to the way that the == operator on primitive double defines it).
+
+
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
A check that the actual array and expected are arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(float[], float[]) and Float.equals(Object) define it (which is different + to the way that the == operator on primitive float defines it).
+
+
isEqualTo(Object) - Method in class com.google.common.truth.StreamSubject
+
+
Deprecated. +
streamA.isEqualTo(streamB) always fails, except when passed the exact same + stream reference. If you really want to test object identity, you can eliminate this + deprecation warning by using Subject.isSameInstanceAs(java.lang.Object). If you instead want to test the + contents of the stream, use StreamSubject.containsExactly(java.lang.Object...) or similar methods.
+
+
+
isEqualTo(Object) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is not equal to the given object.
+
+
isEqualTo(String) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
+
+
Fails if the subject is not equal to the given sequence (while ignoring case).
+
+
isEqualToDefaultInstance() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Checks whether the subject is a MessageLite with no fields set.
+
+
isEqualToIgnoringScale(long) - Method in class com.google.common.truth.BigDecimalSubject
+
+
Fails if the subject's value is not equal to the value of the BigDecimal created from + the expected long (i.e., fails if actual.comparesTo(new BigDecimal(expected)) != + 0).
+
+
isEqualToIgnoringScale(String) - Method in class com.google.common.truth.BigDecimalSubject
+
+
Fails if the subject's value is not equal to the value of the BigDecimal created from + the expected string (i.e., fails if actual.comparesTo(new BigDecimal(expected)) != 0).
+
+
isEqualToIgnoringScale(BigDecimal) - Method in class com.google.common.truth.BigDecimalSubject
+
+
Fails if the subject's value is not equal to the value of the given BigDecimal.
+
+
isEquivalentAccordingToCompareTo(T) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is equivalent to other according to Comparable.compareTo(T), (i.e., checks that a.comparesTo(b) == 0).
+
+
isEquivalentAccordingToCompareTo(Double) - Method in class com.google.common.truth.DoubleSubject
+
+
Deprecated. +
Use DoubleSubject.isWithin(double) or DoubleSubject.isEqualTo(java.lang.Object) instead (see documentation for advice).
+
+
+
isEquivalentAccordingToCompareTo(Float) - Method in class com.google.common.truth.FloatSubject
+
+
Deprecated. +
Use FloatSubject.isWithin(float) or FloatSubject.isEqualTo(java.lang.Object) instead (see documentation for advice).
+
+
+
isEquivalentAccordingToCompareTo(Integer) - Method in class com.google.common.truth.IntegerSubject
+
+
Deprecated. +
Use Subject.isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality.
+
+
+
isEquivalentAccordingToCompareTo(Long) - Method in class com.google.common.truth.LongSubject
+
+
Deprecated. +
Use Subject.isEqualTo(java.lang.Object) instead. Long comparison is consistent with equality.
+
+
+
isEquivalentAccordingToCompareTo(String) - Method in class com.google.common.truth.StringSubject
+
+
Deprecated. +
Use Subject.isEqualTo(java.lang.Object) instead. String comparison is consistent with equality.
+
+
+
isEquivalentAccordingToCompareTo(BigDecimal) - Method in class com.google.common.truth.BigDecimalSubject
+
+
Fails if the subject is not equivalent to the given value according to Comparable.compareTo(T), (i.e., fails if a.comparesTo(b) != 0).
+
+
isFalse() - Method in class com.google.common.truth.BooleanSubject
+
+
Fails if the subject is true or null.
+
+
isFinite() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is finite, i.e.
+
+
isFinite() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is finite, i.e.
+
+
isGreaterThan(int) - Method in class com.google.common.truth.DoubleSubject
+
+
Checks that the subject is greater than other.
+
+
isGreaterThan(int) - Method in class com.google.common.truth.FloatSubject
+
+
Checks that the subject is greater than other.
+
+
isGreaterThan(int) - Method in class com.google.common.truth.LongSubject
+
+
Checks that the subject is greater than other.
+
+
isGreaterThan(T) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is greater than other.
+
+
isIn(Range<T>) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is in range.
+
+
isIn(Iterable<?>) - Method in class com.google.common.truth.Subject
+
+
Fails unless the subject is equal to any element in the given iterable.
+
+
isInOrder() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Deprecated. +
Protos do not implement Comparable, so you must supply a comparator.
+
+
+
isInOrder() - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject is not ordered, according to the natural ordering of its elements.
+
+
isInOrder() - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the iterable is not ordered, according to the natural ordering of its elements.
+
+
isInOrder() - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject is not ordered, according to the natural ordering of its elements.
+
+
isInOrder() - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject is not ordered, according to the natural ordering of its elements.
+
+
isInOrder(Comparator<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the iterable is not ordered, according to the given comparator.
+
+
isInOrder(Comparator<?>) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject is not ordered, according to the given comparator.
+
+
isInOrder(Comparator<? super Integer>) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject is not ordered, according to the given comparator.
+
+
isInOrder(Comparator<? super Long>) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject is not ordered, according to the given comparator.
+
+
isInstanceOf(Class<?>) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is not an instance of the given class.
+
+
isInStrictOrder() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Deprecated. +
Protos do not implement Comparable, so you must supply a comparator.
+
+
+
isInStrictOrder() - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject is not strictly ordered, according to the natural ordering of its + elements.
+
+
isInStrictOrder() - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the iterable is not strictly ordered, according to the natural ordering of its + elements.
+
+
isInStrictOrder() - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject is not strictly ordered, according to the natural ordering of its + elements.
+
+
isInStrictOrder() - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject is not strictly ordered, according to the natural ordering of its + elements.
+
+
isInStrictOrder(Comparator<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the iterable is not strictly ordered, according to the given comparator.
+
+
isInStrictOrder(Comparator<?>) - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject is not strictly ordered, according to the given comparator.
+
+
isInStrictOrder(Comparator<? super Integer>) - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject is not strictly ordered, according to the given comparator.
+
+
isInStrictOrder(Comparator<? super Long>) - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject is not strictly ordered, according to the given comparator.
+
+
isLessThan(int) - Method in class com.google.common.truth.DoubleSubject
+
+
Checks that the subject is less than other.
+
+
isLessThan(int) - Method in class com.google.common.truth.FloatSubject
+
+
Checks that the subject is less than other.
+
+
isLessThan(int) - Method in class com.google.common.truth.LongSubject
+
+
Checks that the subject is less than other.
+
+
isLessThan(T) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is less than other.
+
+
isNaN() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is Double.NaN.
+
+
isNaN() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is Float.NaN.
+
+
isNegativeInfinity() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is Double.NEGATIVE_INFINITY.
+
+
isNegativeInfinity() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is Float.NEGATIVE_INFINITY.
+
+
isNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
+
+ +
+
isNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is equal to any of the given elements.
+
+
isNonZero() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is a non-null value other than zero (i.e.
+
+
isNonZero() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is a non-null value other than zero (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.ObjectArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveByteArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveCharArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveIntArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveLongArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.PrimitiveShortArraySubject
+
+
Fails if the array is empty (i.e.
+
+
isNotEmpty() - Method in class com.google.common.truth.IntStreamSubject
+
+
Fails if the subject is empty.
+
+
isNotEmpty() - Method in class com.google.common.truth.IterableSubject
+
+
Fails if the subject is empty.
+
+
isNotEmpty() - Method in class com.google.common.truth.LongStreamSubject
+
+
Fails if the subject is empty.
+
+
isNotEmpty() - Method in class com.google.common.truth.MapSubject
+
+
Fails if the map is empty.
+
+
isNotEmpty() - Method in class com.google.common.truth.MultimapSubject
+
+
Fails if the multimap is empty.
+
+
isNotEmpty() - Method in class com.google.common.truth.StreamSubject
+
+
Fails if the subject is empty.
+
+
isNotEmpty() - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string is equal to the zero-length "empty string."
+
+
isNotEmpty() - Method in class com.google.common.truth.TableSubject
+
+
Fails if the table is empty.
+
+
isNotEqualTo(Message) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares the subject of the assertion to expected, expecting a difference, using all of + the rules specified by earlier operations.
+
+
isNotEqualTo(MessageLite.Builder) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Deprecated. +
A Builder will never compare equal to a MessageLite instance. Use build(), + or buildPartial() on the argument to get a MessageLite for comparison instead. Or, + if you are passing null, use Subject.isNotNull().
+
+
+
isNotEqualTo(Object) - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is not exactly equal to the given value, with equality defined as by + Double#equals.
+
+
isNotEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
 
+
isNotEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
 
+
isNotEqualTo(Object) - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is not exactly equal to the given value, with equality defined as by + Float#equals.
+
+
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
A check that the actual array and expected are not arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(double[], double[]) and Double.equals(Object) define it (which is + different to the way that the == operator on primitive double defines it).
+
+
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
A check that the actual array and expected are not arrays of the same length and type, + containing elements such that each element in expected is equal to each element in the + actual array, and in the same position, with element equality defined the same way that Arrays.equals(float[], float[]) and Float.equals(Object) define it (which is different + to the way that the == operator on primitive float defines it).
+
+
isNotEqualTo(Object) - Method in class com.google.common.truth.StreamSubject
+
+
Deprecated. +
streamA.isNotEqualTo(streamB) always passes, except when passed the exact + same stream reference. If you really want to test object identity, you can eliminate this + deprecation warning by using Subject.isNotSameInstanceAs(java.lang.Object). If you instead want to test the + contents of the stream, collect both streams to lists and perform assertions like Subject.isNotEqualTo(java.lang.Object) on them. In some cases, you may be able to use StreamSubject assertions like StreamSubject.doesNotContain(java.lang.Object).
+
+
+
isNotEqualTo(Object) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is equal to the given object.
+
+
isNotEqualTo(String) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
+
+
Fails if the subject is equal to the given string (while ignoring case).
+
+
isNotEqualToDefaultInstance() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Checks whether the subject is not equivalent to a MessageLite with no fields set.
+
+
isNotIn(Range<T>) - Method in class com.google.common.truth.ComparableSubject
+
+
Checks that the subject is not in range.
+
+
isNotIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
+
+
Deprecated. +
You probably meant to call IterableSubject.containsNoneIn(java.lang.Iterable<?>) instead.
+
+
+
isNotIn(Iterable<?>) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is equal to any element in the given iterable.
+
+
isNotInstanceOf(Class<?>) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is an instance of the given class.
+
+
isNotNaN() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is a non-null value other than Double.NaN (but it may be + Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY).
+
+
isNotNaN() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is a non-null value other than Float.NaN (but it may be Float.POSITIVE_INFINITY or Float.NEGATIVE_INFINITY).
+
+
isNotNull() - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is null.
+
+
isNotSameInstanceAs(Object) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is the same instance as the given object.
+
+
isNotWithin(double) - Method in class com.google.common.truth.DoubleSubject
+
+
Prepares for a check that the subject is a finite number not within the given tolerance of an + expected value that will be provided in the next call in the fluent chain.
+
+
isNotWithin(float) - Method in class com.google.common.truth.FloatSubject
+
+
Prepares for a check that the subject is a finite number not within the given tolerance of an + expected value that will be provided in the next call in the fluent chain.
+
+
isNotWithin(int) - Method in class com.google.common.truth.IntegerSubject
+
+
Prepares for a check that the subject is a number not within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
+
+
isNotWithin(long) - Method in class com.google.common.truth.LongSubject
+
+
Prepares for a check that the subject is a number not within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
+
+
isNull() - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is not null.
+
+
isPositiveInfinity() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is Double.POSITIVE_INFINITY.
+
+
isPositiveInfinity() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is Float.POSITIVE_INFINITY.
+
+
isPresent() - Method in class com.google.common.truth.GuavaOptionalSubject
+
+
Fails if the Optional<T> is absent or the subject is null.
+
+
isPresent() - Method in class com.google.common.truth.OptionalDoubleSubject
+
+
Fails if the OptionalDouble is empty or the subject is null.
+
+
isPresent() - Method in class com.google.common.truth.OptionalIntSubject
+
+
Fails if the OptionalInt is empty or the subject is null.
+
+
isPresent() - Method in class com.google.common.truth.OptionalLongSubject
+
+
Fails if the OptionalLong is empty or the subject is null.
+
+
isPresent() - Method in class com.google.common.truth.OptionalSubject
+
+
Fails if the Optional<T> is empty or the subject is null.
+
+
isSameInstanceAs(Object) - Method in class com.google.common.truth.Subject
+
+
Fails if the subject is not the same instance as the given object.
+
+
isTrue() - Method in class com.google.common.truth.BooleanSubject
+
+
Fails if the subject is false or null.
+
+
isWithin(double) - Method in class com.google.common.truth.DoubleSubject
+
+
Prepares for a check that the subject is a finite number within the given tolerance of an + expected value that will be provided in the next call in the fluent chain.
+
+
isWithin(float) - Method in class com.google.common.truth.FloatSubject
+
+
Prepares for a check that the subject is a finite number within the given tolerance of an + expected value that will be provided in the next call in the fluent chain.
+
+
isWithin(int) - Method in class com.google.common.truth.IntegerSubject
+
+
Prepares for a check that the subject is a number within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
+
+
isWithin(long) - Method in class com.google.common.truth.LongSubject
+
+
Prepares for a check that the subject is a number within the given tolerance of an expected + value that will be provided in the next call in the fluent chain.
+
+
isZero() - Method in class com.google.common.truth.DoubleSubject
+
+
Asserts that the subject is zero (i.e.
+
+
isZero() - Method in class com.google.common.truth.FloatSubject
+
+
Asserts that the subject is zero (i.e.
+
+
IterableOfProtosFluentAssertion<M> - Interface in com.google.common.truth.extensions.proto
+
+
Fluent API to perform detailed, customizable comparison of iterables of protocol buffers.
+
+
IterableOfProtosSubject<M> - Class in com.google.common.truth.extensions.proto
+
+
Truth subject for the iterables of protocol buffers.
+
+
IterableOfProtosSubject(FailureMetadata, Iterable<M>) - Constructor for class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
 
+
IterableOfProtosUsingCorrespondence<M> - Interface in com.google.common.truth.extensions.proto
+
+
Comparison methods, which enforce the rules set in prior calls to IterableOfProtosFluentAssertion.
+
+
IterableSubject - Class in com.google.common.truth
+
+
Propositions for Iterable subjects.
+
+
IterableSubject(FailureMetadata, Iterable<?>) - Constructor for class com.google.common.truth.IterableSubject
+
+
Constructor for use by subclasses.
+
+
IterableSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
+
+
A partially specified check in which the actual elements (normally the elements of the Iterable under test) are compared to expected elements using a Correspondence.
+
+
+

L

+
+
liteProtos() - Static method in class com.google.common.truth.extensions.proto.LiteProtoTruth
+
 
+
LiteProtoSubject - Class in com.google.common.truth.extensions.proto
+
+
Truth subjects for the Lite version of Protocol Buffers.
+
+
LiteProtoSubject(FailureMetadata, MessageLite) - Constructor for class com.google.common.truth.extensions.proto.LiteProtoSubject
+
 
+
LiteProtoTruth - Class in com.google.common.truth.extensions.proto
+
+
A set of static methods to begin a Truth assertion chain for the lite version of protocol + buffers.
+
+
longStreams() - Static method in class com.google.common.truth.LongStreamSubject
+
+
Deprecated. +
Instead of about(longStreams()).that(...), use just that(...). + Similarly, instead of assertAbout(longStreams()).that(...), use just + assertThat(...).
+
+
+
LongStreamSubject - Class in com.google.common.truth
+
+
Propositions for LongStream subjects.
+
+
LongSubject - Class in com.google.common.truth
+
+
Propositions for long subjects.
+
+
LongSubject(FailureMetadata, Long) - Constructor for class com.google.common.truth.LongSubject
+
+
Constructor for use by subclasses.
+
+
LongSubject.TolerantLongComparison - Class in com.google.common.truth
+
+
A partially specified check about an approximate relationship to a long subject using a + tolerance.
+
+
+

M

+
+
MapSubject - Class in com.google.common.truth
+
+
Propositions for Map subjects.
+
+
MapSubject(FailureMetadata, Map<?, ?>) - Constructor for class com.google.common.truth.MapSubject
+
+
Constructor for use by subclasses.
+
+
MapSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
+
+
A partially specified check in which the actual values (i.e.
+
+
MapWithProtoValuesFluentAssertion<M> - Interface in com.google.common.truth.extensions.proto
+
+
Fluent API to perform detailed, customizable comparison of maps containing protocol buffers as + values.
+
+
MapWithProtoValuesSubject<M> - Class in com.google.common.truth.extensions.proto
+
+
Truth subject for maps with protocol buffers for values.
+
+
MapWithProtoValuesSubject(FailureMetadata, Map<?, M>) - Constructor for class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
 
+
matches(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string does not match the given regex.
+
+
matches(String) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not match the given regex.
+
+
matches(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
+
+
Fails if the string does not match the given regex.
+
+
matches(Pattern) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not match the given regex.
+
+
metadata() - Method in class com.google.common.truth.CustomSubjectBuilder
+
+
Returns the FailureMetadata instance that that methods should pass to Subject constructors.
+
+
MultimapSubject - Class in com.google.common.truth
+
+
Propositions for Multimap subjects.
+
+
MultimapSubject(FailureMetadata, Multimap<?, ?>) - Constructor for class com.google.common.truth.MultimapSubject
+
+
Constructor for use by subclasses.
+
+
MultimapSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
+
+
A partially specified check in which the actual values (i.e.
+
+
MultimapWithProtoValuesFluentAssertion<M> - Interface in com.google.common.truth.extensions.proto
+
+
Fluent API to perform detailed, customizable comparison of Multimaps containing protocol + buffers as values.
+
+
MultimapWithProtoValuesSubject<M> - Class in com.google.common.truth.extensions.proto
+
+
Truth subject for Multimaps with protocol buffers for values.
+
+
MultimapWithProtoValuesSubject(FailureMetadata, Multimap<?, M>) - Constructor for class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
 
+
MultisetSubject - Class in com.google.common.truth
+
+
Propositions for Multiset subjects.
+
+
+

N

+
+
none() - Static method in class com.google.common.truth.extensions.proto.FieldScopes
+
+
Returns a FieldScope which matches no fields.
+
+
+

O

+
+
ObjectArraySubject<T> - Class in com.google.common.truth
+
+
A Subject for Object[] and more generically T[].
+
+
of(double) - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
+
+
Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
+
+
of(float) - Method in class com.google.common.truth.FloatSubject.TolerantFloatComparison
+
+
Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
+
+
of(int) - Method in class com.google.common.truth.IntegerSubject.TolerantIntegerComparison
+
+
Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
+
+
of(long) - Method in class com.google.common.truth.LongSubject.TolerantLongComparison
+
+
Fails if the subject was expected to be within the tolerance of the given value but was not + or if it was expected not to be within the tolerance but was.
+
+
optionalDoubles() - Static method in class com.google.common.truth.OptionalDoubleSubject
+
+
Deprecated. +
Instead of about(optionalDoubles()).that(...), use just that(...). + Similarly, instead of assertAbout(optionalDoubles()).that(...), use just + assertThat(...).
+
+
+
OptionalDoubleSubject - Class in com.google.common.truth
+
+
Propositions for Java 8 OptionalDouble subjects.
+
+
optionalInts() - Static method in class com.google.common.truth.OptionalIntSubject
+
+
Deprecated. +
Instead of about(optionalInts()).that(...), use just that(...). + Similarly, instead of assertAbout(optionalInts()).that(...), use just + assertThat(...).
+
+
+
OptionalIntSubject - Class in com.google.common.truth
+
+
Propositions for Java 8 OptionalInt subjects.
+
+
optionalLongs() - Static method in class com.google.common.truth.OptionalLongSubject
+
+
Deprecated. +
Instead of about(optionalLongs()).that(...), use just that(...). + Similarly, instead of assertAbout(optionalLongs()).that(...), use just + assertThat(...).
+
+
+
OptionalLongSubject - Class in com.google.common.truth
+
+
Propositions for Java 8 OptionalLong subjects.
+
+
optionals() - Static method in class com.google.common.truth.OptionalSubject
+
+
Deprecated. +
Instead of about(optionals()).that(...), use just that(...). + Similarly, instead of assertAbout(optionals()).that(...), use just + assertThat(...).
+
+
+
OptionalSubject - Class in com.google.common.truth
+
+
Propositions for Java 8 Optional subjects.
+
+
Ordered - Interface in com.google.common.truth
+
+
Returned by calls like IterableSubject.containsExactly(java.lang.Object...), Ordered lets the caller + additionally check that the expected elements were present in the order they were passed to the + previous calls.
+
+
+

P

+
+
paths() - Static method in class com.google.common.truth.PathSubject
+
+
Deprecated. +
Instead of about(paths()).that(...), use just that(...). Similarly, + instead of assertAbout(paths()).that(...), use just assertThat(...).
+
+
+
PathSubject - Class in com.google.common.truth
+
+
Assertions for Path instances.
+
+
PrimitiveBooleanArraySubject - Class in com.google.common.truth
+
+
A Subject for boolean[].
+
+
PrimitiveByteArraySubject - Class in com.google.common.truth
+
+
A Subject for byte[].
+
+
PrimitiveCharArraySubject - Class in com.google.common.truth
+
+
A Subject for char[].
+
+
PrimitiveDoubleArraySubject - Class in com.google.common.truth
+
+
A Subject for double[].
+
+
PrimitiveDoubleArraySubject.DoubleArrayAsIterable - Class in com.google.common.truth
+
+
A partially specified check for doing assertions on the array similar to the assertions + supported for Iterable subjects, in which the elements of the array under test are + compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality() and PrimitiveDoubleArraySubject.usingTolerance(double).
+
+
PrimitiveFloatArraySubject - Class in com.google.common.truth
+
+
A Subject for float[].
+
+
PrimitiveFloatArraySubject.FloatArrayAsIterable - Class in com.google.common.truth
+
+
A partially specified check for doing assertions on the array similar to the assertions + supported for Iterable subjects, in which the elements of the array under test are + compared to expected elements using either exact or tolerant float equality: see PrimitiveFloatArraySubject.usingExactEquality() and PrimitiveFloatArraySubject.usingTolerance(double).
+
+
PrimitiveIntArraySubject - Class in com.google.common.truth
+
+
A Subject for int[].
+
+
PrimitiveLongArraySubject - Class in com.google.common.truth
+
+
A Subject for long[].
+
+
PrimitiveShortArraySubject - Class in com.google.common.truth
+
+
A Subject for short[].
+
+
ProtoFluentAssertion - Interface in com.google.common.truth.extensions.proto
+
+
Fluent API to perform detailed, customizable comparison of Protocol buffers.
+
+
protos() - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
+
+
Returns a CustomSubjectBuilder.Factory, akin to a Subject.Factory, which can be used to assert on multiple types of + Protos and collections containing them.
+
+
ProtoSubject - Class in com.google.common.truth.extensions.proto
+
+
Truth subject for the full version of Protocol Buffers.
+
+
ProtoSubject(FailureMetadata, Message) - Constructor for class com.google.common.truth.extensions.proto.ProtoSubject
+
 
+
ProtoSubjectBuilder - Class in com.google.common.truth.extensions.proto
+
+
CustomSubjectBuilder which aggregates all Proto-related Subject classes into a single place.
+
+
ProtoTruth - Class in com.google.common.truth.extensions.proto
+
+
A set of static methods to begin a Truth assertion chain for protocol buffers.
+
+
+

R

+
+
re2jString() - Static method in class com.google.common.truth.extensions.re2j.Re2jSubjects
+
+
Returns a subject factory for String subjects which you can use to assert things about + Pattern regexes.
+
+
Re2jSubjects - Class in com.google.common.truth.extensions.re2j
+
+
Truth subjects for re2j regular expressions.
+
+
Re2jSubjects.Re2jStringSubject - Class in com.google.common.truth.extensions.re2j
+
+
Subject for String subjects which you can use to assert things about Pattern regexes.
+
+
reportingMismatchesOnly() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnly() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnly() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnly() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
reportingMismatchesOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
If set, in the event of a comparison failure, the error message printed will list only those + specific fields that did not match between the actual and expected values.
+
+
+

S

+
+
serializedSize() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
+
+
Returns an IntegerSubject on the serialized size of the MessageLite.
+
+
simpleFact(String) - Static method in class com.google.common.truth.Fact
+
+
Creates a fact with no value, which will be printed in the format "key" (with no colon or + value).
+
+
SimpleSubjectBuilder<SubjectT,ActualT> - Class in com.google.common.truth
+
+
In a fluent assertion chain, exposes the most common that method, which accepts a value + under test and returns a Subject.
+
+
StandardSubjectBuilder - Class in com.google.common.truth
+
+
In a fluent assertion chain, an object with which you can do any of the following: + + + Set an optional message with StandardSubjectBuilder.withMessage(java.lang.String).
+
+
startsWith(String) - Method in class com.google.common.truth.StringSubject
+
+
Fails if the string does not start with the given string.
+
+
streams() - Static method in class com.google.common.truth.StreamSubject
+
+
Deprecated. +
Instead of about(streams()).that(...), use just that(...). + Similarly, instead of assertAbout(streams()).that(...), use just + assertThat(...).
+
+
+
StreamSubject - Class in com.google.common.truth
+
+
Propositions for Stream subjects.
+
+
StringSubject - Class in com.google.common.truth
+
+
Propositions for string subjects.
+
+
StringSubject(FailureMetadata, String) - Constructor for class com.google.common.truth.StringSubject
+
+
Constructor for use by subclasses.
+
+
StringSubject.CaseInsensitiveStringComparison - Class in com.google.common.truth
+
+
Case insensitive propositions for string subjects.
+
+
Subject - Class in com.google.common.truth
+
+
An object that lets you perform checks on the value under test.
+
+
Subject(FailureMetadata, Object) - Constructor for class com.google.common.truth.Subject
+
+
Constructor for use by subclasses.
+
+
Subject.Factory<SubjectT,ActualT> - Interface in com.google.common.truth
+
+
In a fluent assertion chain, the argument to the common overload of about, the method that specifies what kind of + Subject to create.
+
+
+

T

+
+
TableSubject - Class in com.google.common.truth
+
+
Propositions for Table subjects.
+
+
that(boolean[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(byte[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(char[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(double[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(float[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(int[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(long[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(short[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(ActualT) - Method in class com.google.common.truth.SimpleSubjectBuilder
+
 
+
that(ComparableT) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Optional<?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Multimap<?, ?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Multimap<?, M>) - Method in class com.google.common.truth.extensions.proto.ProtoSubjectBuilder
+
 
+
that(Multiset<?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Table<?, ?, ?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Message) - Method in class com.google.common.truth.extensions.proto.ProtoSubjectBuilder
+
 
+
that(MessageLite) - Method in class com.google.common.truth.extensions.proto.ProtoSubjectBuilder
+
 
+
that(Boolean) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Class<?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Double) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Float) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Integer) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Iterable<?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Iterable<M>) - Method in class com.google.common.truth.extensions.proto.ProtoSubjectBuilder
+
 
+
that(Long) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Object) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(String) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Throwable) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(BigDecimal) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Path) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Map<?, ?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Map<?, M>) - Method in class com.google.common.truth.extensions.proto.ProtoSubjectBuilder
+
 
+
that(Optional<?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(OptionalDouble) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(OptionalInt) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(OptionalLong) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(IntStream) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(LongStream) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(Stream<?>) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
that(T[]) - Method in class com.google.common.truth.StandardSubjectBuilder
+
 
+
ThrowableSubject - Class in com.google.common.truth
+
+
Propositions for Throwable subjects.
+
+
ThrowableSubject(FailureMetadata, Throwable) - Constructor for class com.google.common.truth.ThrowableSubject
+
+
Constructor for use by subclasses.
+
+
tolerance(double) - Static method in class com.google.common.truth.Correspondence
+
+
Returns a Correspondence between Number instances that considers instances to + correspond (i.e.
+
+
toString() - Method in class com.google.common.truth.Correspondence
+
+
Returns a description of the correspondence, suitable to fill the gap in a failure message of + the form "<some actual element> is an element that ... <some expected element>".
+
+
toString() - Method in class com.google.common.truth.Fact
+
+
Returns a simple string representation for the fact.
+
+
toString() - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
+
+
Deprecated. +
Object.toString() is not supported on Truth subjects.
+
+
+
toString() - Method in class com.google.common.truth.Subject
+
+
Deprecated. +
Object.toString() is not supported on Truth subjects.
+
+
+
transforming(Function<A, ?>, Function<E, ?>, String) - Static method in class com.google.common.truth.Correspondence
+
+
Constructs a Correspondence that compares elements by transforming the actual and the + expected elements using the given functions and testing the transformed values for equality.
+
+
transforming(Function<A, ? extends E>, String) - Static method in class com.google.common.truth.Correspondence
+
+
Constructs a Correspondence that compares elements by transforming the actual elements + using the given function and testing for equality with the expected elements.
+
+
Truth - Class in com.google.common.truth
+
+
The primary entry point for Truth, a library for fluent test + assertions.
+
+
Truth8 - Class in com.google.common.truth
+
+
Deprecated. +
Instead of this class's methods, use the identical methods declared in the main + Truth class. In most cases, you can migrate your whole project + mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;' + Migration is important if you static import assertThat: If you do not migrate, + such static imports will become ambiguous in Truth 1.4.2, breaking your build.
+
+
+
truthFailures() - Static method in class com.google.common.truth.TruthFailureSubject
+
+
Factory for creating TruthFailureSubject instances.
+
+
TruthFailureSubject - Class in com.google.common.truth
+
+
Subject for AssertionError objects thrown by Truth.
+
+
TruthJUnit - Class in com.google.common.truth
+
+
Provides a way to use Truth to perform JUnit "assumptions." An assumption is a check that, if + false, aborts (skips) the test.
+
+
+

U

+
+
unpackingAnyUsing(TypeRegistry, ExtensionRegistry) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsing(TypeRegistry, ExtensionRegistry) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsing(TypeRegistry, ExtensionRegistry) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsing(TypeRegistry, ExtensionRegistry) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Specifies the TypeRegistry and ExtensionRegistry to use for Any messages.
+
+
usingDoubleTolerance(double) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleTolerance(double) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleTolerance(double) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleTolerance(double) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptors(double, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingDoubleToleranceForFields(double, int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFields(double, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForFieldsForValues(double, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares double fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingDoubleToleranceForValues(double) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleToleranceForValues(double) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleToleranceForValues(double) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingDoubleToleranceForValues(double) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares double fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingExactEquality() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
Starts a method chain for a check in which the actual values (i.e.
+
+
usingExactEquality() - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
Starts a method chain for a check in which the actual values (i.e.
+
+
usingFloatTolerance(float) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatTolerance(float) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatTolerance(float) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatTolerance(float) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptors(float, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified fields using the provided absolute + tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldDescriptorsForValues(float, Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFields(float, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForFieldsForValues(float, Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares float fields with these explicitly specified top-level field numbers using the + provided absolute tolerance.
+
+
usingFloatToleranceForValues(float) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatToleranceForValues(float) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatToleranceForValues(float) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingFloatToleranceForValues(float) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Compares float fields as equal if they are both finite and their absolute difference is less + than or equal to tolerance.
+
+
usingTolerance(double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
+
+
Starts a method chain for a check in which the actual values (i.e.
+
+
usingTolerance(double) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
+
+
Starts a method chain for a check in which the actual values (i.e.
+
+
+

V

+
+
valuesForKey(Object) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Returns a context-aware Subject for making assertions about the values for the given + key within the Multimap.
+
+
valuesForKey(Object) - Method in class com.google.common.truth.MultimapSubject
+
+
Returns a context-aware Subject for making assertions about the values for the given + key within the Multimap.
+
+
+

W

+
+
whenTesting() - Method in class com.google.common.truth.ExpectFailure
+
+
Returns a test verb that expects the chained assertion to fail, and makes the failure available + via ExpectFailure.getFailure().
+
+
withMessage(String) - Method in class com.google.common.truth.StandardSubjectBuilder
+
+
Returns a new instance that will output the given message before the main failure message.
+
+
withMessage(String, Object...) - Method in class com.google.common.truth.StandardSubjectBuilder
+
+
Returns a new instance that will output the given message before the main failure message.
+
+
withPartialScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
withPartialScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
+
+
Limits the comparison of Protocol buffers to the defined FieldScope.
+
+
+A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form
+ + + diff --git a/api/1.4.4/index.html b/api/1.4.4/index.html new file mode 100644 index 000000000..734945f53 --- /dev/null +++ b/api/1.4.4/index.html @@ -0,0 +1,88 @@ + + + + +Overview (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Truth HEAD-SNAPSHOT

+
+
Truth is a library for performing assertions in +tests: + +

+assertThat(notificationText).contains("testuser@google.com");
+
+ +

Truth is owned and maintained by the Guava team. It is used in the majority of the tests in Google’s own codebase. + +

For more information, see our introduction and +other docs.

+
+
Packages
+
+
Package
+
Description
+ +
+
Truth is a library for performing assertions in + tests:
+
+ +
+
Custom subjects for testing Protocol + Buffer instances.
+
+ +
 
+
+
+
+ + + diff --git a/api/1.4.4/legal/ADDITIONAL_LICENSE_INFO b/api/1.4.4/legal/ADDITIONAL_LICENSE_INFO new file mode 100644 index 000000000..ff700cd09 --- /dev/null +++ b/api/1.4.4/legal/ADDITIONAL_LICENSE_INFO @@ -0,0 +1,37 @@ + ADDITIONAL INFORMATION ABOUT LICENSING + +Certain files distributed by Oracle America, Inc. and/or its affiliates are +subject to the following clarification and special exception to the GPLv2, +based on the GNU Project exception for its Classpath libraries, known as the +GNU Classpath Exception. + +Note that Oracle includes multiple, independent programs in this software +package. Some of those programs are provided under licenses deemed +incompatible with the GPLv2 by the Free Software Foundation and others. +For example, the package includes programs licensed under the Apache +License, Version 2.0 and may include FreeType. Such programs are licensed +to you under their original licenses. + +Oracle facilitates your further distribution of this package by adding the +Classpath Exception to the necessary parts of its GPLv2 code, which permits +you to use that code in combination with other independent modules not +licensed under the GPLv2. However, note that this would not permit you to +commingle code under an incompatible license with Oracle's GPLv2 licensed +code by, for example, cutting and pasting such code into a file also +containing Oracle's GPLv2 licensed code and then distributing the result. + +Additionally, if you were to remove the Classpath Exception from any of the +files to which it applies and distribute the result, you would likely be +required to license some or all of the other code in that distribution under +the GPLv2 as well, and since the GPLv2 is incompatible with the license terms +of some items included in the distribution by Oracle, removing the Classpath +Exception could therefore effectively compromise your ability to further +distribute the package. + +Failing to distribute notices associated with some files may also create +unexpected legal consequences. + +Proceed with caution and we recommend that you obtain the advice of a lawyer +skilled in open source matters before removing the Classpath Exception or +making modifications to this package which may subsequently be redistributed +and/or involve the use of third party software. diff --git a/api/1.4.4/legal/ASSEMBLY_EXCEPTION b/api/1.4.4/legal/ASSEMBLY_EXCEPTION new file mode 100644 index 000000000..429666664 --- /dev/null +++ b/api/1.4.4/legal/ASSEMBLY_EXCEPTION @@ -0,0 +1,27 @@ + +OPENJDK ASSEMBLY EXCEPTION + +The OpenJDK source code made available by Oracle America, Inc. (Oracle) at +openjdk.org ("OpenJDK Code") is distributed under the terms of the GNU +General Public License version 2 +only ("GPL2"), with the following clarification and special exception. + + Linking this OpenJDK Code statically or dynamically with other code + is making a combined work based on this library. Thus, the terms + and conditions of GPL2 cover the whole combination. + + As a special exception, Oracle gives you permission to link this + OpenJDK Code with certain code licensed by Oracle as indicated at + https://openjdk.org/legal/exception-modules-2007-05-08.html + ("Designated Exception Modules") to produce an executable, + regardless of the license terms of the Designated Exception Modules, + and to copy and distribute the resulting executable under GPL2, + provided that the Designated Exception Modules continue to be + governed by the licenses under which they were offered by Oracle. + +As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code +to build an executable that includes those portions of necessary code that +Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 +with the Classpath exception). If you modify or add to the OpenJDK code, +that new GPL2 code may still be combined with Designated Exception Modules +if the new code is made subject to this exception by its copyright holder. diff --git a/api/1.4.4/legal/LICENSE b/api/1.4.4/legal/LICENSE new file mode 100644 index 000000000..8b400c7ab --- /dev/null +++ b/api/1.4.4/legal/LICENSE @@ -0,0 +1,347 @@ +The GNU General Public License (GPL) + +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share +and change it. By contrast, the GNU General Public License is intended to +guarantee your freedom to share and change free software--to make sure the +software is free for all its users. This General Public License applies to +most of the Free Software Foundation's software and to any other program whose +authors commit to using it. (Some other Free Software Foundation software is +covered by the GNU Library General Public License instead.) You can apply it to +your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom to +distribute copies of free software (and charge for this service if you wish), +that you receive source code or can get it if you want it, that you can change +the software or use pieces of it in new free programs; and that you know you +can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny +you these rights or to ask you to surrender the rights. These restrictions +translate to certain responsibilities for you if you distribute copies of the +software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for +a fee, you must give the recipients all the rights that you have. You must +make sure that they, too, receive or can get the source code. And you must +show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) +offer you this license which gives you legal permission to copy, distribute +and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that +everyone understands that there is no warranty for this free software. If the +software is modified by someone else and passed on, we want its recipients to +know that what they have is not the original, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that redistributors of a free program will +individually obtain patent licenses, in effect making the program proprietary. +To prevent this, we have made it clear that any patent must be licensed for +everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification +follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice +placed by the copyright holder saying it may be distributed under the terms of +this General Public License. The "Program", below, refers to any such program +or work, and a "work based on the Program" means either the Program or any +derivative work under copyright law: that is to say, a work containing the +Program or a portion of it, either verbatim or with modifications and/or +translated into another language. (Hereinafter, translation is included +without limitation in the term "modification".) Each licensee is addressed as +"you". + +Activities other than copying, distribution and modification are not covered by +this License; they are outside its scope. The act of running the Program is +not restricted, and the output from the Program is covered only if its contents +constitute a work based on the Program (independent of having been made by +running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as +you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this License +and to the absence of any warranty; and give any other recipients of the +Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may +at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus +forming a work based on the Program, and copy and distribute such modifications +or work under the terms of Section 1 above, provided that you also meet all of +these conditions: + + a) You must cause the modified files to carry prominent notices stating + that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or + in part contains or is derived from the Program or any part thereof, to be + licensed as a whole at no charge to all third parties under the terms of + this License. + + c) If the modified program normally reads commands interactively when run, + you must cause it, when started running for such interactive use in the + most ordinary way, to print or display an announcement including an + appropriate copyright notice and a notice that there is no warranty (or + else, saying that you provide a warranty) and that users may redistribute + the program under these conditions, and telling the user how to view a copy + of this License. (Exception: if the Program itself is interactive but does + not normally print such an announcement, your work based on the Program is + not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Program, and can be reasonably +considered independent and separate works in themselves, then this License, and +its terms, do not apply to those sections when you distribute them as separate +works. But when you distribute the same sections as part of a whole which is a +work based on the Program, the distribution of the whole must be on the terms +of this License, whose permissions for other licensees extend to the entire +whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise the +right to control the distribution of derivative or collective works based on +the Program. + +In addition, mere aggregation of another work not based on the Program with the +Program (or with a work based on the Program) on a volume of a storage or +distribution medium does not bring the other work under the scope of this +License. + +3. You may copy and distribute the Program (or a work based on it, under +Section 2) in object code or executable form under the terms of Sections 1 and +2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source + code, which must be distributed under the terms of Sections 1 and 2 above + on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to + give any third party, for a charge no more than your cost of physically + performing source distribution, a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of Sections 1 + and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to + distribute corresponding source code. (This alternative is allowed only + for noncommercial distribution and only if you received the program in + object code or executable form with such an offer, in accord with + Subsection b above.) + +The source code for a work means the preferred form of the work for making +modifications to it. For an executable work, complete source code means all +the source code for all modules it contains, plus any associated interface +definition files, plus the scripts used to control compilation and installation +of the executable. However, as a special exception, the source code +distributed need not include anything that is normally distributed (in either +source or binary form) with the major components (compiler, kernel, and so on) +of the operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the source +code from the same place counts as distribution of the source code, even though +third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as +expressly provided under this License. Any attempt otherwise to copy, modify, +sublicense or distribute the Program is void, and will automatically terminate +your rights under this License. However, parties who have received copies, or +rights, from you under this License will not have their licenses terminated so +long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. +However, nothing else grants you permission to modify or distribute the Program +or its derivative works. These actions are prohibited by law if you do not +accept this License. Therefore, by modifying or distributing the Program (or +any work based on the Program), you indicate your acceptance of this License to +do so, and all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), +the recipient automatically receives a license from the original licensor to +copy, distribute or modify the Program subject to these terms and conditions. +You may not impose any further restrictions on the recipients' exercise of the +rights granted herein. You are not responsible for enforcing compliance by +third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), conditions +are imposed on you (whether by court order, agreement or otherwise) that +contradict the conditions of this License, they do not excuse you from the +conditions of this License. If you cannot distribute so as to satisfy +simultaneously your obligations under this License and any other pertinent +obligations, then as a consequence you may not distribute the Program at all. +For example, if a patent license would not permit royalty-free redistribution +of the Program by all those who receive copies directly or indirectly through +you, then the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply and +the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or +other property right claims or to contest validity of any such claims; this +section has the sole purpose of protecting the integrity of the free software +distribution system, which is implemented by public license practices. Many +people have made generous contributions to the wide range of software +distributed through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing to +distribute software through any other system and a licensee cannot impose that +choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain +countries either by patents or by copyrighted interfaces, the original +copyright holder who places the Program under this License may add an explicit +geographical distribution limitation excluding those countries, so that +distribution is permitted only in or among countries not thus excluded. In +such case, this License incorporates the limitation as if written in the body +of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the +General Public License from time to time. Such new versions will be similar in +spirit to the present version, but may differ in detail to address new problems +or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any later +version", you have the option of following the terms and conditions either of +that version or of any later version published by the Free Software Foundation. +If the Program does not specify a version number of this License, you may +choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs +whose distribution conditions are different, write to the author to ask for +permission. For software which is copyrighted by the Free Software Foundation, +write to the Free Software Foundation; we sometimes make exceptions for this. +Our decision will be guided by the two goals of preserving the free status of +all derivatives of our free software and of promoting the sharing and reuse of +software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE +PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, +YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL +ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE +PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR +INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA +BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER +OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible +use to the public, the best way to achieve this is to make it free software +which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach +them to the start of each source file to most effectively convey the exclusion +of warranty; and each file should have at least the "copyright" line and a +pointer to where the full notice is found. + + One line to give the program's name and a brief idea of what it does. + + Copyright (C) + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it +starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes + with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free + software, and you are welcome to redistribute it under certain conditions; + type 'show c' for details. + +The hypothetical commands 'show w' and 'show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may be +called something other than 'show w' and 'show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, +if any, to sign a "copyright disclaimer" for the program, if necessary. Here +is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + 'Gnomovision' (which makes passes at compilers) written by James Hacker. + + signature of Ty Coon, 1 April 1989 + + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General Public +License instead of this License. + + +"CLASSPATH" EXCEPTION TO THE GPL + +Certain source files distributed by Oracle America and/or its affiliates are +subject to the following clarification and special exception to the GPL, but +only where Oracle has expressly included in the particular source file's header +the words "Oracle designates this particular file as subject to the "Classpath" +exception as provided by Oracle in the LICENSE file that accompanied this code." + + Linking this library statically or dynamically with other modules is making + a combined work based on this library. Thus, the terms and conditions of + the GNU General Public License cover the whole combination. + + As a special exception, the copyright holders of this library give you + permission to link this library with independent modules to produce an + executable, regardless of the license terms of these independent modules, + and to copy and distribute the resulting executable under terms of your + choice, provided that you also meet, for each linked independent module, + the terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. If + you modify this library, you may extend this exception to your version of + the library, but you are not obligated to do so. If you do not wish to do + so, delete this exception statement from your version. diff --git a/api/1.4.4/legal/jquery.md b/api/1.4.4/legal/jquery.md new file mode 100644 index 000000000..d468b3183 --- /dev/null +++ b/api/1.4.4/legal/jquery.md @@ -0,0 +1,72 @@ +## jQuery v3.6.1 + +### jQuery License +``` +jQuery v 3.6.1 +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +****************************************** + +The jQuery JavaScript Library v3.6.1 also includes Sizzle.js + +Sizzle.js includes the following license: + +Copyright JS Foundation and other contributors, https://js.foundation/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/sizzle + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +********************* + +``` diff --git a/api/1.4.4/legal/jqueryUI.md b/api/1.4.4/legal/jqueryUI.md new file mode 100644 index 000000000..8bda9d7a8 --- /dev/null +++ b/api/1.4.4/legal/jqueryUI.md @@ -0,0 +1,49 @@ +## jQuery UI v1.13.2 + +### jQuery UI License +``` +Copyright jQuery Foundation and other contributors, https://jquery.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery-ui + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code contained within the demos directory. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +``` diff --git a/api/1.4.4/member-search-index.js b/api/1.4.4/member-search-index.js new file mode 100644 index 000000000..71c0480a9 --- /dev/null +++ b/api/1.4.4/member-search-index.js @@ -0,0 +1 @@ +memberSearchIndex = [{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"about(CustomSubjectBuilder.Factory)","u":"about(com.google.common.truth.CustomSubjectBuilder.Factory)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"about(Subject.Factory)","u":"about(com.google.common.truth.Subject.Factory)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth","c":"StreamSubject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth","c":"Subject","l":"actualCustomStringRepresentation()"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"all()"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"allowingFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"allowingFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"allowingFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"allowingFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"allowingFieldDescriptors(Iterable)","u":"allowingFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"allowingFieldDescriptors(Iterable)","u":"allowingFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"allowingFields(int, int...)","u":"allowingFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"allowingFields(int, int...)","u":"allowingFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"allowingFields(Iterable)","u":"allowingFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"allowingFields(Iterable)","u":"allowingFields(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"Correspondence.BinaryPredicate","l":"apply(A, E)","u":"apply(A,E)"},{"p":"com.google.common.truth","c":"Expect","l":"apply(Statement, Description)","u":"apply(org.junit.runners.model.Statement,org.junit.runner.Description)"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"apply(Statement, Description)","u":"apply(org.junit.runners.model.Statement,org.junit.runner.Description)"},{"p":"com.google.common.truth","c":"ObjectArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"PrimitiveBooleanArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"PrimitiveByteArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"PrimitiveCharArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"PrimitiveIntArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"PrimitiveLongArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"PrimitiveShortArraySubject","l":"asList()"},{"p":"com.google.common.truth","c":"Truth","l":"assert_()"},{"p":"com.google.common.truth","c":"Truth","l":"assertAbout(CustomSubjectBuilder.Factory)","u":"assertAbout(com.google.common.truth.CustomSubjectBuilder.Factory)"},{"p":"com.google.common.truth","c":"Truth","l":"assertAbout(Subject.Factory)","u":"assertAbout(com.google.common.truth.Subject.Factory)"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"assertThat(AssertionError)","u":"assertThat(java.lang.AssertionError)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(BigDecimal)","u":"assertThat(java.math.BigDecimal)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Boolean)","u":"assertThat(java.lang.Boolean)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(boolean[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(byte[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(char[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Class)","u":"assertThat(java.lang.Class)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(ComparableT)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Double)","u":"assertThat(java.lang.Double)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(double[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Float)","u":"assertThat(java.lang.Float)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(float[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(int[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Integer)","u":"assertThat(java.lang.Integer)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(IntStream)","u":"assertThat(java.util.stream.IntStream)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(IntStream)","u":"assertThat(java.util.stream.IntStream)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Iterable)","u":"assertThat(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoTruth","l":"assertThat(Iterable)","u":"assertThat(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Long)","u":"assertThat(java.lang.Long)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(long[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(LongStream)","u":"assertThat(java.util.stream.LongStream)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(LongStream)","u":"assertThat(java.util.stream.LongStream)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Map)","u":"assertThat(java.util.Map)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoTruth","l":"assertThat(Map)","u":"assertThat(java.util.Map)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoTruth","l":"assertThat(Message)","u":"assertThat(com.google.protobuf.Message)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoTruth","l":"assertThat(MessageLite)","u":"assertThat(com.google.protobuf.MessageLite)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoTruth","l":"assertThat(MessageLite)","u":"assertThat(com.google.protobuf.MessageLite)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Multimap)","u":"assertThat(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoTruth","l":"assertThat(Multimap)","u":"assertThat(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Multiset)","u":"assertThat(com.google.common.collect.Multiset)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Object)","u":"assertThat(java.lang.Object)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Optional)","u":"assertThat(com.google.common.base.Optional)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Optional)","u":"assertThat(java.util.Optional)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(Optional)","u":"assertThat(java.util.Optional)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(OptionalDouble)","u":"assertThat(java.util.OptionalDouble)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(OptionalDouble)","u":"assertThat(java.util.OptionalDouble)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(OptionalInt)","u":"assertThat(java.util.OptionalInt)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(OptionalInt)","u":"assertThat(java.util.OptionalInt)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(OptionalLong)","u":"assertThat(java.util.OptionalLong)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(OptionalLong)","u":"assertThat(java.util.OptionalLong)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Path)","u":"assertThat(java.nio.file.Path)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(Path)","u":"assertThat(java.nio.file.Path)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(short[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Stream)","u":"assertThat(java.util.stream.Stream)"},{"p":"com.google.common.truth","c":"Truth8","l":"assertThat(Stream)","u":"assertThat(java.util.stream.Stream)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(String)","u":"assertThat(java.lang.String)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(T[])"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Table)","u":"assertThat(com.google.common.collect.Table)"},{"p":"com.google.common.truth","c":"Truth","l":"assertThat(Throwable)","u":"assertThat(java.lang.Throwable)"},{"p":"com.google.common.truth","c":"Truth","l":"assertWithMessage(String)","u":"assertWithMessage(java.lang.String)"},{"p":"com.google.common.truth","c":"Truth","l":"assertWithMessage(String, Object...)","u":"assertWithMessage(java.lang.String,java.lang.Object...)"},{"p":"com.google.common.truth","c":"TruthJUnit","l":"assume()"},{"p":"com.google.common.truth","c":"Subject","l":"check(String, Object...)","u":"check(java.lang.String,java.lang.Object...)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"ComparableSubject(FailureMetadata, T)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,T)"},{"p":"com.google.common.truth","c":"Correspondence","l":"compare(A, E)","u":"compare(A,E)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"comparingElementsUsing(Correspondence)","u":"comparingElementsUsing(com.google.common.truth.Correspondence)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"comparingExpectedFieldsOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"comparingExpectedFieldsOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"comparingExpectedFieldsOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"comparingExpectedFieldsOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"comparingExpectedFieldsOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"comparingExpectedFieldsOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"comparingExpectedFieldsOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"comparingExpectedFieldsOnlyForValues()"},{"p":"com.google.common.truth","c":"MapSubject","l":"comparingValuesUsing(Correspondence)","u":"comparingValuesUsing(com.google.common.truth.Correspondence)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"comparingValuesUsing(Correspondence)","u":"comparingValuesUsing(com.google.common.truth.Correspondence)"},{"p":"com.google.common.truth","c":"StringSubject.CaseInsensitiveStringComparison","l":"contains(CharSequence)","u":"contains(java.lang.CharSequence)"},{"p":"com.google.common.truth","c":"StringSubject","l":"contains(CharSequence)","u":"contains(java.lang.CharSequence)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"contains(E)"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"contains(int)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"contains(long)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"contains(M)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"contains(Object)","u":"contains(java.lang.Object)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"contains(Object)","u":"contains(java.lang.Object)"},{"p":"com.google.common.truth","c":"TableSubject","l":"contains(Object, Object)","u":"contains(java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsAnyIn(E[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsAnyIn(Iterable)","u":"containsAnyIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsAnyIn(Iterable)","u":"containsAnyIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsAnyIn(Iterable)","u":"containsAnyIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsAnyIn(Iterable)","u":"containsAnyIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsAnyIn(Iterable)","u":"containsAnyIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsAnyIn(Iterable)","u":"containsAnyIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsAnyIn(M[])"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsAnyIn(Object[])","u":"containsAnyIn(java.lang.Object[])"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject.DoubleArrayAsIterable","l":"containsAnyOf(double[])"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsAnyOf(E, E, E...)","u":"containsAnyOf(E,E,E...)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject.FloatArrayAsIterable","l":"containsAnyOf(float[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsAnyOf(int, int, int...)","u":"containsAnyOf(int,int,int...)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsAnyOf(long, long, long...)","u":"containsAnyOf(long,long,long...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsAnyOf(M, M, M...)","u":"containsAnyOf(M,M,M...)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsAnyOf(Object, Object, Object...)","u":"containsAnyOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsAnyOf(Object, Object, Object...)","u":"containsAnyOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject.DoubleArrayAsIterable","l":"containsAtLeast(double[])"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsAtLeast(E, E, E...)","u":"containsAtLeast(E,E,E...)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject.FloatArrayAsIterable","l":"containsAtLeast(float[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsAtLeast(int, int, int...)","u":"containsAtLeast(int,int,int...)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsAtLeast(long, long, long...)","u":"containsAtLeast(long,long,long...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsAtLeast(M, M, M...)","u":"containsAtLeast(M,M,M...)"},{"p":"com.google.common.truth","c":"MapSubject.UsingCorrespondence","l":"containsAtLeast(Object, E, Object...)","u":"containsAtLeast(java.lang.Object,E,java.lang.Object...)"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"containsAtLeast(Object, E, Object...)","u":"containsAtLeast(java.lang.Object,E,java.lang.Object...)"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsAtLeast(Object, Object, Object...)","u":"containsAtLeast(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsAtLeast(Object, Object, Object...)","u":"containsAtLeast(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsAtLeast(Object, Object, Object...)","u":"containsAtLeast(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsAtLeast(Object, Object, Object...)","u":"containsAtLeast(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsAtLeastElementsIn(E[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsAtLeastElementsIn(Iterable)","u":"containsAtLeastElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsAtLeastElementsIn(Iterable)","u":"containsAtLeastElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsAtLeastElementsIn(Iterable)","u":"containsAtLeastElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsAtLeastElementsIn(Iterable)","u":"containsAtLeastElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsAtLeastElementsIn(Iterable)","u":"containsAtLeastElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsAtLeastElementsIn(Iterable)","u":"containsAtLeastElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsAtLeastElementsIn(M[])"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsAtLeastElementsIn(Object[])","u":"containsAtLeastElementsIn(java.lang.Object[])"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsAtLeastEntriesIn(Map)","u":"containsAtLeastEntriesIn(java.util.Map)"},{"p":"com.google.common.truth","c":"MapSubject.UsingCorrespondence","l":"containsAtLeastEntriesIn(Map)","u":"containsAtLeastEntriesIn(java.util.Map)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsAtLeastEntriesIn(Multimap)","u":"containsAtLeastEntriesIn(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"containsAtLeastEntriesIn(Multimap)","u":"containsAtLeastEntriesIn(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth","c":"TableSubject","l":"containsCell(Object, Object, Object)","u":"containsCell(java.lang.Object,java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"TableSubject","l":"containsCell(Table.Cell)","u":"containsCell(com.google.common.collect.Table.Cell)"},{"p":"com.google.common.truth","c":"TableSubject","l":"containsColumn(Object)","u":"containsColumn(java.lang.Object)"},{"p":"com.google.common.truth","c":"MapSubject.UsingCorrespondence","l":"containsEntry(Object, E)","u":"containsEntry(java.lang.Object,E)"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"containsEntry(Object, E)","u":"containsEntry(java.lang.Object,E)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"containsEntry(Object, M)","u":"containsEntry(java.lang.Object,M)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"containsEntry(Object, M)","u":"containsEntry(java.lang.Object,M)"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsEntry(Object, Object)","u":"containsEntry(java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsEntry(Object, Object)","u":"containsEntry(java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"containsExactly()"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsExactly()"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsExactly()"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"containsExactly()"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject.DoubleArrayAsIterable","l":"containsExactly(double[])"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsExactly(E...)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject.FloatArrayAsIterable","l":"containsExactly(float[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsExactly(int...)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsExactly(long...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsExactly(M...)"},{"p":"com.google.common.truth","c":"MapSubject.UsingCorrespondence","l":"containsExactly(Object, E, Object...)","u":"containsExactly(java.lang.Object,E,java.lang.Object...)"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"containsExactly(Object, E, Object...)","u":"containsExactly(java.lang.Object,E,java.lang.Object...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"containsExactly(Object, M, Object...)","u":"containsExactly(java.lang.Object,M,java.lang.Object...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"containsExactly(Object, M, Object...)","u":"containsExactly(java.lang.Object,M,java.lang.Object...)"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsExactly(Object, Object, Object...)","u":"containsExactly(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsExactly(Object, Object, Object...)","u":"containsExactly(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsExactly(Object...)","u":"containsExactly(java.lang.Object...)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsExactly(Object...)","u":"containsExactly(java.lang.Object...)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsExactlyElementsIn(E[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsExactlyElementsIn(Iterable)","u":"containsExactlyElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsExactlyElementsIn(Iterable)","u":"containsExactlyElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsExactlyElementsIn(Iterable)","u":"containsExactlyElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsExactlyElementsIn(Iterable)","u":"containsExactlyElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsExactlyElementsIn(Iterable)","u":"containsExactlyElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsExactlyElementsIn(Iterable)","u":"containsExactlyElementsIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsExactlyElementsIn(M[])"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsExactlyElementsIn(Object[])","u":"containsExactlyElementsIn(java.lang.Object[])"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsExactlyEntriesIn(Map)","u":"containsExactlyEntriesIn(java.util.Map)"},{"p":"com.google.common.truth","c":"MapSubject.UsingCorrespondence","l":"containsExactlyEntriesIn(Map)","u":"containsExactlyEntriesIn(java.util.Map)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"containsExactlyEntriesIn(Map)","u":"containsExactlyEntriesIn(java.util.Map)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsExactlyEntriesIn(Multimap)","u":"containsExactlyEntriesIn(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"containsExactlyEntriesIn(Multimap)","u":"containsExactlyEntriesIn(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"containsExactlyEntriesIn(Multimap)","u":"containsExactlyEntriesIn(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth","c":"MapSubject","l":"containsKey(Object)","u":"containsKey(java.lang.Object)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"containsKey(Object)","u":"containsKey(java.lang.Object)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"containsMatch(Pattern)","u":"containsMatch(com.google.re2j.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"containsMatch(Pattern)","u":"containsMatch(java.util.regex.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"containsMatch(String)","u":"containsMatch(java.lang.String)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"containsMatch(String)","u":"containsMatch(java.lang.String)"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsNoDuplicates()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsNoDuplicates()"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsNoDuplicates()"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsNoDuplicates()"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsNoneIn(E[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsNoneIn(Iterable)","u":"containsNoneIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsNoneIn(Iterable)","u":"containsNoneIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsNoneIn(Iterable)","u":"containsNoneIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsNoneIn(Iterable)","u":"containsNoneIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsNoneIn(Iterable)","u":"containsNoneIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsNoneIn(Iterable)","u":"containsNoneIn(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsNoneIn(M[])"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsNoneIn(Object[])","u":"containsNoneIn(java.lang.Object[])"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject.DoubleArrayAsIterable","l":"containsNoneOf(double[])"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"containsNoneOf(E, E, E...)","u":"containsNoneOf(E,E,E...)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject.FloatArrayAsIterable","l":"containsNoneOf(float[])"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"containsNoneOf(int, int, int...)","u":"containsNoneOf(int,int,int...)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"containsNoneOf(long, long, long...)","u":"containsNoneOf(long,long,long...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"containsNoneOf(M, M, M...)","u":"containsNoneOf(M,M,M...)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"containsNoneOf(Object, Object, Object...)","u":"containsNoneOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"containsNoneOf(Object, Object, Object...)","u":"containsNoneOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"TableSubject","l":"containsRow(Object)","u":"containsRow(java.lang.Object)"},{"p":"com.google.common.truth","c":"TableSubject","l":"containsValue(Object)","u":"containsValue(java.lang.Object)"},{"p":"com.google.common.truth","c":"Expect","l":"create()"},{"p":"com.google.common.truth","c":"Subject.Factory","l":"createSubject(FailureMetadata, ActualT)","u":"createSubject(com.google.common.truth.FailureMetadata,ActualT)"},{"p":"com.google.common.truth","c":"CustomSubjectBuilder.Factory","l":"createSubjectBuilder(FailureMetadata)","u":"createSubjectBuilder(com.google.common.truth.FailureMetadata)"},{"p":"com.google.common.truth","c":"CustomSubjectBuilder","l":"CustomSubjectBuilder(FailureMetadata)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"displayingDiffsPairedBy(Function, Function)","u":"displayingDiffsPairedBy(com.google.common.base.Function,com.google.common.base.Function)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"displayingDiffsPairedBy(Function)","u":"displayingDiffsPairedBy(com.google.common.base.Function)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"displayingDiffsPairedBy(Function)","u":"displayingDiffsPairedBy(com.google.common.base.Function)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"displayingDiffsPairedBy(Function)","u":"displayingDiffsPairedBy(com.google.common.base.Function)"},{"p":"com.google.common.truth","c":"StringSubject.CaseInsensitiveStringComparison","l":"doesNotContain(CharSequence)","u":"doesNotContain(java.lang.CharSequence)"},{"p":"com.google.common.truth","c":"StringSubject","l":"doesNotContain(CharSequence)","u":"doesNotContain(java.lang.CharSequence)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"doesNotContain(E)"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"doesNotContain(int)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"doesNotContain(long)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosUsingCorrespondence","l":"doesNotContain(M)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"doesNotContain(Object)","u":"doesNotContain(java.lang.Object)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"doesNotContain(Object)","u":"doesNotContain(java.lang.Object)"},{"p":"com.google.common.truth","c":"TableSubject","l":"doesNotContain(Object, Object)","u":"doesNotContain(java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"TableSubject","l":"doesNotContainCell(Object, Object, Object)","u":"doesNotContainCell(java.lang.Object,java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"TableSubject","l":"doesNotContainCell(Table.Cell)","u":"doesNotContainCell(com.google.common.collect.Table.Cell)"},{"p":"com.google.common.truth","c":"MapSubject.UsingCorrespondence","l":"doesNotContainEntry(Object, E)","u":"doesNotContainEntry(java.lang.Object,E)"},{"p":"com.google.common.truth","c":"MultimapSubject.UsingCorrespondence","l":"doesNotContainEntry(Object, E)","u":"doesNotContainEntry(java.lang.Object,E)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"doesNotContainEntry(Object, M)","u":"doesNotContainEntry(java.lang.Object,M)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"doesNotContainEntry(Object, M)","u":"doesNotContainEntry(java.lang.Object,M)"},{"p":"com.google.common.truth","c":"MapSubject","l":"doesNotContainEntry(Object, Object)","u":"doesNotContainEntry(java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"doesNotContainEntry(Object, Object)","u":"doesNotContainEntry(java.lang.Object,java.lang.Object)"},{"p":"com.google.common.truth","c":"MapSubject","l":"doesNotContainKey(Object)","u":"doesNotContainKey(java.lang.Object)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"doesNotContainKey(Object)","u":"doesNotContainKey(java.lang.Object)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"doesNotContainMatch(Pattern)","u":"doesNotContainMatch(com.google.re2j.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"doesNotContainMatch(Pattern)","u":"doesNotContainMatch(java.util.regex.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"doesNotContainMatch(String)","u":"doesNotContainMatch(java.lang.String)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"doesNotContainMatch(String)","u":"doesNotContainMatch(java.lang.String)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"doesNotMatch(Pattern)","u":"doesNotMatch(com.google.re2j.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"doesNotMatch(Pattern)","u":"doesNotMatch(java.util.regex.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"doesNotMatch(String)","u":"doesNotMatch(java.lang.String)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"doesNotMatch(String)","u":"doesNotMatch(java.lang.String)"},{"p":"com.google.common.truth","c":"StringSubject","l":"endsWith(String)","u":"endsWith(java.lang.String)"},{"p":"com.google.common.truth","c":"Correspondence","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"DoubleSubject.TolerantDoubleComparison","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"FloatSubject.TolerantFloatComparison","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"IntegerSubject.TolerantIntegerComparison","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"LongSubject.TolerantLongComparison","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"Subject","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"ExpectFailure()","u":"%3Cinit%3E()"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"expectFailure(ExpectFailure.StandardSubjectBuilderCallback)","u":"expectFailure(com.google.common.truth.ExpectFailure.StandardSubjectBuilderCallback)"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"expectFailureAbout(Subject.Factory, ExpectFailure.SimpleSubjectBuilderCallback)","u":"expectFailureAbout(com.google.common.truth.Subject.Factory,com.google.common.truth.ExpectFailure.SimpleSubjectBuilderCallback)"},{"p":"com.google.common.truth","c":"Fact","l":"fact(String, Object)","u":"fact(java.lang.String,java.lang.Object)"},{"p":"com.google.common.truth","c":"TruthFailureSubject","l":"factKeys()"},{"p":"com.google.common.truth","c":"TruthFailureSubject","l":"factValue(String)","u":"factValue(java.lang.String)"},{"p":"com.google.common.truth","c":"TruthFailureSubject","l":"factValue(String, int)","u":"factValue(java.lang.String,int)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"fail()"},{"p":"com.google.common.truth","c":"FailureStrategy","l":"fail(AssertionError)","u":"fail(java.lang.AssertionError)"},{"p":"com.google.common.truth","c":"Subject","l":"failWithActual(Fact, Fact...)","u":"failWithActual(com.google.common.truth.Fact,com.google.common.truth.Fact...)"},{"p":"com.google.common.truth","c":"Subject","l":"failWithActual(String, Object)","u":"failWithActual(java.lang.String,java.lang.Object)"},{"p":"com.google.common.truth","c":"Subject","l":"failWithoutActual(Fact, Fact...)","u":"failWithoutActual(com.google.common.truth.Fact,com.google.common.truth.Fact...)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"forCustomFailureStrategy(FailureStrategy)","u":"forCustomFailureStrategy(com.google.common.truth.FailureStrategy)"},{"p":"com.google.common.truth","c":"Correspondence.DiffFormatter","l":"formatDiff(A, E)","u":"formatDiff(A,E)"},{"p":"com.google.common.truth","c":"Correspondence","l":"formatDiff(A, E)","u":"formatDiff(A,E)"},{"p":"com.google.common.truth","c":"Correspondence","l":"formattingDiffsUsing(Correspondence.DiffFormatter)","u":"formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"formattingDiffsUsing(Correspondence.DiffFormatter)","u":"formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter)"},{"p":"com.google.common.truth","c":"MapSubject","l":"formattingDiffsUsing(Correspondence.DiffFormatter)","u":"formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter)"},{"p":"com.google.common.truth","c":"Correspondence","l":"from(Correspondence.BinaryPredicate, String)","u":"from(com.google.common.truth.Correspondence.BinaryPredicate,java.lang.String)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"fromSetFields(Iterable)","u":"fromSetFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"fromSetFields(Iterable, TypeRegistry, ExtensionRegistry)","u":"fromSetFields(java.lang.Iterable,com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"fromSetFields(Message)","u":"fromSetFields(com.google.protobuf.Message)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"fromSetFields(Message, Message, Message...)","u":"fromSetFields(com.google.protobuf.Message,com.google.protobuf.Message,com.google.protobuf.Message...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"fromSetFields(Message, TypeRegistry, ExtensionRegistry)","u":"fromSetFields(com.google.protobuf.Message,com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"getFailure()"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"hasAllRequiredFields()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"hasAllRequiredFields()"},{"p":"com.google.common.truth","c":"ThrowableSubject","l":"hasCauseThat()"},{"p":"com.google.common.truth","c":"MultisetSubject","l":"hasCount(Object, int)","u":"hasCount(java.lang.Object,int)"},{"p":"com.google.common.truth","c":"Expect","l":"hasFailures()"},{"p":"com.google.common.truth","c":"Correspondence","l":"hashCode()"},{"p":"com.google.common.truth","c":"DoubleSubject.TolerantDoubleComparison","l":"hashCode()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"hashCode()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"hashCode()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"hashCode()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"hashCode()"},{"p":"com.google.common.truth","c":"FloatSubject.TolerantFloatComparison","l":"hashCode()"},{"p":"com.google.common.truth","c":"IntegerSubject.TolerantIntegerComparison","l":"hashCode()"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"hashCode()"},{"p":"com.google.common.truth","c":"LongSubject.TolerantLongComparison","l":"hashCode()"},{"p":"com.google.common.truth","c":"Subject","l":"hashCode()"},{"p":"com.google.common.truth","c":"ObjectArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveBooleanArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveByteArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveCharArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveIntArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveLongArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"PrimitiveShortArraySubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"StringSubject","l":"hasLength(int)"},{"p":"com.google.common.truth","c":"ThrowableSubject","l":"hasMessageThat()"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"MapSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"TableSubject","l":"hasSize(int)"},{"p":"com.google.common.truth","c":"OptionalDoubleSubject","l":"hasValue(double)"},{"p":"com.google.common.truth","c":"OptionalIntSubject","l":"hasValue(int)"},{"p":"com.google.common.truth","c":"OptionalLongSubject","l":"hasValue(long)"},{"p":"com.google.common.truth","c":"GuavaOptionalSubject","l":"hasValue(Object)","u":"hasValue(java.lang.Object)"},{"p":"com.google.common.truth","c":"OptionalSubject","l":"hasValue(Object)","u":"hasValue(java.lang.Object)"},{"p":"com.google.common.truth","c":"Subject","l":"ignoreCheck()"},{"p":"com.google.common.truth","c":"StringSubject","l":"ignoringCase()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringExtraRepeatedFieldElements()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringExtraRepeatedFieldElements()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringExtraRepeatedFieldElements()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringExtraRepeatedFieldElements()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFields(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringExtraRepeatedFieldElementsOfFields(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFields(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringExtraRepeatedFieldElementsOfFields(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFields(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringExtraRepeatedFieldElementsOfFields(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFields(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringExtraRepeatedFieldElementsOfFields(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int, int...)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable)","u":"ignoringExtraRepeatedFieldElementsOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldAbsence()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldAbsence()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldAbsence()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldAbsence()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldAbsenceForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldAbsenceForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldAbsenceOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptors(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldAbsenceOfFieldDescriptors(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptors(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldAbsenceOfFieldDescriptors(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldDescriptorsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldAbsenceOfFields(int, int...)","u":"ignoringFieldAbsenceOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldAbsenceOfFields(int, int...)","u":"ignoringFieldAbsenceOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldAbsenceOfFields(int, int...)","u":"ignoringFieldAbsenceOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldAbsenceOfFields(int, int...)","u":"ignoringFieldAbsenceOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldAbsenceOfFields(Iterable)","u":"ignoringFieldAbsenceOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldAbsenceOfFields(Iterable)","u":"ignoringFieldAbsenceOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldAbsenceOfFields(Iterable)","u":"ignoringFieldAbsenceOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldAbsenceOfFields(Iterable)","u":"ignoringFieldAbsenceOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldsForValues(int, int...)","u":"ignoringFieldAbsenceOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldsForValues(int, int...)","u":"ignoringFieldAbsenceOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldsForValues(int, int...)","u":"ignoringFieldAbsenceOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldsForValues(int, int...)","u":"ignoringFieldAbsenceOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldAbsenceOfFieldsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldAbsenceOfFieldsForValues(Iterable)","u":"ignoringFieldAbsenceOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"ignoringFieldDescriptors(Iterable)","u":"ignoringFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"ignoringFieldDescriptors(Iterable)","u":"ignoringFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldDescriptors(Iterable)","u":"ignoringFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldDescriptors(Iterable)","u":"ignoringFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldDescriptors(Iterable)","u":"ignoringFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldDescriptors(Iterable)","u":"ignoringFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldDescriptorsForValues(Iterable)","u":"ignoringFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldDescriptorsForValues(Iterable)","u":"ignoringFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldDescriptorsForValues(Iterable)","u":"ignoringFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldDescriptorsForValues(Iterable)","u":"ignoringFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"ignoringFields(int, int...)","u":"ignoringFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"ignoringFields(int, int...)","u":"ignoringFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFields(int, int...)","u":"ignoringFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFields(int, int...)","u":"ignoringFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFields(int, int...)","u":"ignoringFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFields(int, int...)","u":"ignoringFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScope","l":"ignoringFields(Iterable)","u":"ignoringFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"ignoringFields(Iterable)","u":"ignoringFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFields(Iterable)","u":"ignoringFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFields(Iterable)","u":"ignoringFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFields(Iterable)","u":"ignoringFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFields(Iterable)","u":"ignoringFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringFieldScope(FieldScope)","u":"ignoringFieldScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringFieldScope(FieldScope)","u":"ignoringFieldScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringFieldScope(FieldScope)","u":"ignoringFieldScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringFieldScope(FieldScope)","u":"ignoringFieldScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldScopeForValues(FieldScope)","u":"ignoringFieldScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldScopeForValues(FieldScope)","u":"ignoringFieldScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldScopeForValues(FieldScope)","u":"ignoringFieldScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldScopeForValues(FieldScope)","u":"ignoringFieldScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldsForValues(int, int...)","u":"ignoringFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldsForValues(int, int...)","u":"ignoringFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldsForValues(int, int...)","u":"ignoringFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldsForValues(int, int...)","u":"ignoringFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringFieldsForValues(Iterable)","u":"ignoringFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringFieldsForValues(Iterable)","u":"ignoringFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringFieldsForValues(Iterable)","u":"ignoringFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringFieldsForValues(Iterable)","u":"ignoringFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringRepeatedFieldOrder()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringRepeatedFieldOrder()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringRepeatedFieldOrder()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringRepeatedFieldOrder()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptors(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptors(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringRepeatedFieldOrderOfFields(int, int...)","u":"ignoringRepeatedFieldOrderOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringRepeatedFieldOrderOfFields(int, int...)","u":"ignoringRepeatedFieldOrderOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringRepeatedFieldOrderOfFields(int, int...)","u":"ignoringRepeatedFieldOrderOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringRepeatedFieldOrderOfFields(int, int...)","u":"ignoringRepeatedFieldOrderOfFields(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"ignoringRepeatedFieldOrderOfFields(Iterable)","u":"ignoringRepeatedFieldOrderOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"ignoringRepeatedFieldOrderOfFields(Iterable)","u":"ignoringRepeatedFieldOrderOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"ignoringRepeatedFieldOrderOfFields(Iterable)","u":"ignoringRepeatedFieldOrderOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ignoringRepeatedFieldOrderOfFields(Iterable)","u":"ignoringRepeatedFieldOrderOfFields(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldsForValues(int, int...)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldsForValues(int, int...)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldsForValues(int, int...)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldsForValues(int, int...)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"ignoringRepeatedFieldOrderOfFieldsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"ignoringRepeatedFieldOrderOfFieldsForValues(Iterable)","u":"ignoringRepeatedFieldOrderOfFieldsForValues(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"Ordered","l":"inOrder()"},{"p":"com.google.common.truth","c":"IntegerSubject","l":"IntegerSubject(FailureMetadata, Integer)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.Integer)"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"intStreams()"},{"p":"com.google.common.truth","c":"ExpectFailure.SimpleSubjectBuilderCallback","l":"invokeAssertion(SimpleSubjectBuilder)","u":"invokeAssertion(com.google.common.truth.SimpleSubjectBuilder)"},{"p":"com.google.common.truth","c":"ExpectFailure.StandardSubjectBuilderCallback","l":"invokeAssertion(StandardSubjectBuilder)","u":"invokeAssertion(com.google.common.truth.StandardSubjectBuilder)"},{"p":"com.google.common.truth","c":"GuavaOptionalSubject","l":"isAbsent()"},{"p":"com.google.common.truth","c":"Subject","l":"isAnyOf(Object, Object, Object...)","u":"isAnyOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"ClassSubject","l":"isAssignableTo(Class)","u":"isAssignableTo(java.lang.Class)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isAtLeast(int)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isAtLeast(int)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isAtLeast(int)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isAtLeast(T)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isAtMost(int)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isAtMost(int)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isAtMost(int)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isAtMost(T)"},{"p":"com.google.common.truth","c":"ObjectArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveBooleanArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveByteArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveCharArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveIntArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveLongArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveShortArraySubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"MapSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"OptionalDoubleSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"OptionalIntSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"OptionalLongSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"OptionalSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"StringSubject","l":"isEmpty()"},{"p":"com.google.common.truth","c":"TableSubject","l":"isEmpty()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"isEqualTo(Message)","u":"isEqualTo(com.google.protobuf.Message)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"isEqualTo(MessageLite.Builder)","u":"isEqualTo(com.google.protobuf.MessageLite.Builder)"},{"p":"com.google.common.truth","c":"BigDecimalSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"MapSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"Subject","l":"isEqualTo(Object)","u":"isEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"StringSubject.CaseInsensitiveStringComparison","l":"isEqualTo(String)","u":"isEqualTo(java.lang.String)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"isEqualToDefaultInstance()"},{"p":"com.google.common.truth","c":"BigDecimalSubject","l":"isEqualToIgnoringScale(BigDecimal)","u":"isEqualToIgnoringScale(java.math.BigDecimal)"},{"p":"com.google.common.truth","c":"BigDecimalSubject","l":"isEqualToIgnoringScale(long)"},{"p":"com.google.common.truth","c":"BigDecimalSubject","l":"isEqualToIgnoringScale(String)","u":"isEqualToIgnoringScale(java.lang.String)"},{"p":"com.google.common.truth","c":"BigDecimalSubject","l":"isEquivalentAccordingToCompareTo(BigDecimal)","u":"isEquivalentAccordingToCompareTo(java.math.BigDecimal)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isEquivalentAccordingToCompareTo(Double)","u":"isEquivalentAccordingToCompareTo(java.lang.Double)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isEquivalentAccordingToCompareTo(Float)","u":"isEquivalentAccordingToCompareTo(java.lang.Float)"},{"p":"com.google.common.truth","c":"IntegerSubject","l":"isEquivalentAccordingToCompareTo(Integer)","u":"isEquivalentAccordingToCompareTo(java.lang.Integer)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isEquivalentAccordingToCompareTo(Long)","u":"isEquivalentAccordingToCompareTo(java.lang.Long)"},{"p":"com.google.common.truth","c":"StringSubject","l":"isEquivalentAccordingToCompareTo(String)","u":"isEquivalentAccordingToCompareTo(java.lang.String)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isEquivalentAccordingToCompareTo(T)"},{"p":"com.google.common.truth","c":"BooleanSubject","l":"isFalse()"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isFinite()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isFinite()"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isGreaterThan(int)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isGreaterThan(int)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isGreaterThan(int)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isGreaterThan(T)"},{"p":"com.google.common.truth","c":"Subject","l":"isIn(Iterable)","u":"isIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isIn(Range)","u":"isIn(com.google.common.collect.Range)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"isInOrder()"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"isInOrder()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isInOrder()"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"isInOrder()"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isInOrder()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isInOrder(Comparator)","u":"isInOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isInOrder(Comparator)","u":"isInOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"isInOrder(Comparator)","u":"isInOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"isInOrder(Comparator)","u":"isInOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"Subject","l":"isInstanceOf(Class)","u":"isInstanceOf(java.lang.Class)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"isInStrictOrder()"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"isInStrictOrder()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isInStrictOrder()"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"isInStrictOrder()"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isInStrictOrder()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isInStrictOrder(Comparator)","u":"isInStrictOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isInStrictOrder(Comparator)","u":"isInStrictOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"isInStrictOrder(Comparator)","u":"isInStrictOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"isInStrictOrder(Comparator)","u":"isInStrictOrder(java.util.Comparator)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isLessThan(int)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isLessThan(int)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isLessThan(int)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isLessThan(T)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isNaN()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isNaN()"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isNegativeInfinity()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isNegativeInfinity()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isNoneOf(Object, Object, Object...)","u":"isNoneOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"Subject","l":"isNoneOf(Object, Object, Object...)","u":"isNoneOf(java.lang.Object,java.lang.Object,java.lang.Object...)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isNonZero()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isNonZero()"},{"p":"com.google.common.truth","c":"ObjectArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveBooleanArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveByteArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveCharArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveIntArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveLongArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"PrimitiveShortArraySubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"IntStreamSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"MapSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"StringSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth","c":"TableSubject","l":"isNotEmpty()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"isNotEqualTo(Message)","u":"isNotEqualTo(com.google.protobuf.Message)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"isNotEqualTo(MessageLite.Builder)","u":"isNotEqualTo(com.google.protobuf.MessageLite.Builder)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"Subject","l":"isNotEqualTo(Object)","u":"isNotEqualTo(java.lang.Object)"},{"p":"com.google.common.truth","c":"StringSubject.CaseInsensitiveStringComparison","l":"isNotEqualTo(String)","u":"isNotEqualTo(java.lang.String)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"isNotEqualToDefaultInstance()"},{"p":"com.google.common.truth","c":"IterableSubject","l":"isNotIn(Iterable)","u":"isNotIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"Subject","l":"isNotIn(Iterable)","u":"isNotIn(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"ComparableSubject","l":"isNotIn(Range)","u":"isNotIn(com.google.common.collect.Range)"},{"p":"com.google.common.truth","c":"Subject","l":"isNotInstanceOf(Class)","u":"isNotInstanceOf(java.lang.Class)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isNotNaN()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isNotNaN()"},{"p":"com.google.common.truth","c":"Subject","l":"isNotNull()"},{"p":"com.google.common.truth","c":"Subject","l":"isNotSameInstanceAs(Object)","u":"isNotSameInstanceAs(java.lang.Object)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isNotWithin(double)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isNotWithin(float)"},{"p":"com.google.common.truth","c":"IntegerSubject","l":"isNotWithin(int)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isNotWithin(long)"},{"p":"com.google.common.truth","c":"Subject","l":"isNull()"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isPositiveInfinity()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isPositiveInfinity()"},{"p":"com.google.common.truth","c":"GuavaOptionalSubject","l":"isPresent()"},{"p":"com.google.common.truth","c":"OptionalDoubleSubject","l":"isPresent()"},{"p":"com.google.common.truth","c":"OptionalIntSubject","l":"isPresent()"},{"p":"com.google.common.truth","c":"OptionalLongSubject","l":"isPresent()"},{"p":"com.google.common.truth","c":"OptionalSubject","l":"isPresent()"},{"p":"com.google.common.truth","c":"Subject","l":"isSameInstanceAs(Object)","u":"isSameInstanceAs(java.lang.Object)"},{"p":"com.google.common.truth","c":"BooleanSubject","l":"isTrue()"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isWithin(double)"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isWithin(float)"},{"p":"com.google.common.truth","c":"IntegerSubject","l":"isWithin(int)"},{"p":"com.google.common.truth","c":"LongSubject","l":"isWithin(long)"},{"p":"com.google.common.truth","c":"DoubleSubject","l":"isZero()"},{"p":"com.google.common.truth","c":"FloatSubject","l":"isZero()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"IterableOfProtosSubject(FailureMetadata, Iterable)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.Iterable)"},{"p":"com.google.common.truth","c":"IterableSubject","l":"IterableSubject(FailureMetadata, Iterable)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoTruth","l":"liteProtos()"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"LiteProtoSubject(FailureMetadata, MessageLite)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,com.google.protobuf.MessageLite)"},{"p":"com.google.common.truth","c":"LongStreamSubject","l":"longStreams()"},{"p":"com.google.common.truth","c":"LongSubject","l":"LongSubject(FailureMetadata, Long)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.Long)"},{"p":"com.google.common.truth","c":"MapSubject","l":"MapSubject(FailureMetadata, Map)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.util.Map)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"MapWithProtoValuesSubject(FailureMetadata, Map)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.util.Map)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"matches(Pattern)","u":"matches(com.google.re2j.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"matches(Pattern)","u":"matches(java.util.regex.Pattern)"},{"p":"com.google.common.truth","c":"StringSubject","l":"matches(String)","u":"matches(java.lang.String)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects.Re2jStringSubject","l":"matches(String)","u":"matches(java.lang.String)"},{"p":"com.google.common.truth","c":"CustomSubjectBuilder","l":"metadata()"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"MultimapSubject(FailureMetadata, Multimap)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,com.google.common.collect.Multimap)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"MultimapWithProtoValuesSubject(FailureMetadata, Multimap)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,com.google.common.collect.Multimap)"},{"p":"com.google.common.truth.extensions.proto","c":"FieldScopes","l":"none()"},{"p":"com.google.common.truth","c":"DoubleSubject.TolerantDoubleComparison","l":"of(double)"},{"p":"com.google.common.truth","c":"FloatSubject.TolerantFloatComparison","l":"of(float)"},{"p":"com.google.common.truth","c":"IntegerSubject.TolerantIntegerComparison","l":"of(int)"},{"p":"com.google.common.truth","c":"LongSubject.TolerantLongComparison","l":"of(long)"},{"p":"com.google.common.truth","c":"OptionalDoubleSubject","l":"optionalDoubles()"},{"p":"com.google.common.truth","c":"OptionalIntSubject","l":"optionalInts()"},{"p":"com.google.common.truth","c":"OptionalLongSubject","l":"optionalLongs()"},{"p":"com.google.common.truth","c":"OptionalSubject","l":"optionals()"},{"p":"com.google.common.truth","c":"PathSubject","l":"paths()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoTruth","l":"protos()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"ProtoSubject(FailureMetadata, Message)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,com.google.protobuf.Message)"},{"p":"com.google.common.truth.extensions.re2j","c":"Re2jSubjects","l":"re2jString()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"reportingMismatchesOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"reportingMismatchesOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"reportingMismatchesOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"reportingMismatchesOnly()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"reportingMismatchesOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"reportingMismatchesOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"reportingMismatchesOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"reportingMismatchesOnlyForValues()"},{"p":"com.google.common.truth.extensions.proto","c":"LiteProtoSubject","l":"serializedSize()"},{"p":"com.google.common.truth","c":"Fact","l":"simpleFact(String)","u":"simpleFact(java.lang.String)"},{"p":"com.google.common.truth","c":"StringSubject","l":"startsWith(String)","u":"startsWith(java.lang.String)"},{"p":"com.google.common.truth","c":"StreamSubject","l":"streams()"},{"p":"com.google.common.truth","c":"StringSubject","l":"StringSubject(FailureMetadata, String)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.String)"},{"p":"com.google.common.truth","c":"Subject","l":"Subject(FailureMetadata, Object)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.Object)"},{"p":"com.google.common.truth","c":"SimpleSubjectBuilder","l":"that(ActualT)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(BigDecimal)","u":"that(java.math.BigDecimal)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Boolean)","u":"that(java.lang.Boolean)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(boolean[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(byte[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(char[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Class)","u":"that(java.lang.Class)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(ComparableT)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Double)","u":"that(java.lang.Double)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(double[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Float)","u":"that(java.lang.Float)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(float[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(int[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Integer)","u":"that(java.lang.Integer)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(IntStream)","u":"that(java.util.stream.IntStream)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Iterable)","u":"that(java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubjectBuilder","l":"that(Iterable)","u":"that(java.lang.Iterable)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Long)","u":"that(java.lang.Long)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(long[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(LongStream)","u":"that(java.util.stream.LongStream)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Map)","u":"that(java.util.Map)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubjectBuilder","l":"that(Map)","u":"that(java.util.Map)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubjectBuilder","l":"that(Message)","u":"that(com.google.protobuf.Message)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubjectBuilder","l":"that(MessageLite)","u":"that(com.google.protobuf.MessageLite)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Multimap)","u":"that(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubjectBuilder","l":"that(Multimap)","u":"that(com.google.common.collect.Multimap)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Multiset)","u":"that(com.google.common.collect.Multiset)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Object)","u":"that(java.lang.Object)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Optional)","u":"that(com.google.common.base.Optional)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Optional)","u":"that(java.util.Optional)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(OptionalDouble)","u":"that(java.util.OptionalDouble)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(OptionalInt)","u":"that(java.util.OptionalInt)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(OptionalLong)","u":"that(java.util.OptionalLong)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Path)","u":"that(java.nio.file.Path)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(short[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Stream)","u":"that(java.util.stream.Stream)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(String)","u":"that(java.lang.String)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(T[])"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Table)","u":"that(com.google.common.collect.Table)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"that(Throwable)","u":"that(java.lang.Throwable)"},{"p":"com.google.common.truth","c":"ThrowableSubject","l":"ThrowableSubject(FailureMetadata, Throwable)","u":"%3Cinit%3E(com.google.common.truth.FailureMetadata,java.lang.Throwable)"},{"p":"com.google.common.truth","c":"Correspondence","l":"tolerance(double)"},{"p":"com.google.common.truth","c":"Correspondence","l":"toString()"},{"p":"com.google.common.truth","c":"Fact","l":"toString()"},{"p":"com.google.common.truth","c":"IterableSubject.UsingCorrespondence","l":"toString()"},{"p":"com.google.common.truth","c":"Subject","l":"toString()"},{"p":"com.google.common.truth","c":"Correspondence","l":"transforming(Function, Function, String)","u":"transforming(com.google.common.base.Function,com.google.common.base.Function,java.lang.String)"},{"p":"com.google.common.truth","c":"Correspondence","l":"transforming(Function, String)","u":"transforming(com.google.common.base.Function,java.lang.String)"},{"p":"com.google.common.truth","c":"TruthFailureSubject","l":"truthFailures()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"unpackingAnyUsing(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsing(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"unpackingAnyUsing(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsing(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"unpackingAnyUsing(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsing(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"unpackingAnyUsing(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsing(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsingForValues(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsingForValues(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsingForValues(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"unpackingAnyUsingForValues(TypeRegistry, ExtensionRegistry)","u":"unpackingAnyUsingForValues(com.google.protobuf.TypeRegistry,com.google.protobuf.ExtensionRegistry)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingDoubleTolerance(double)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingDoubleTolerance(double)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingDoubleTolerance(double)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingDoubleTolerance(double)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptors(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptors(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptors(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingDoubleToleranceForFieldDescriptors(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptors(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingDoubleToleranceForFieldDescriptors(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptors(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingDoubleToleranceForFieldDescriptors(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptors(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingDoubleToleranceForFieldDescriptors(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptors(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingDoubleToleranceForFieldDescriptors(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptors(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldDescriptorsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldDescriptorsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingDoubleToleranceForFields(double, int, int...)","u":"usingDoubleToleranceForFields(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingDoubleToleranceForFields(double, int, int...)","u":"usingDoubleToleranceForFields(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingDoubleToleranceForFields(double, int, int...)","u":"usingDoubleToleranceForFields(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingDoubleToleranceForFields(double, int, int...)","u":"usingDoubleToleranceForFields(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingDoubleToleranceForFields(double, Iterable)","u":"usingDoubleToleranceForFields(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingDoubleToleranceForFields(double, Iterable)","u":"usingDoubleToleranceForFields(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingDoubleToleranceForFields(double, Iterable)","u":"usingDoubleToleranceForFields(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingDoubleToleranceForFields(double, Iterable)","u":"usingDoubleToleranceForFields(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldsForValues(double, int, int...)","u":"usingDoubleToleranceForFieldsForValues(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldsForValues(double, int, int...)","u":"usingDoubleToleranceForFieldsForValues(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldsForValues(double, int, int...)","u":"usingDoubleToleranceForFieldsForValues(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldsForValues(double, int, int...)","u":"usingDoubleToleranceForFieldsForValues(double,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForFieldsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingDoubleToleranceForFieldsForValues(double, Iterable)","u":"usingDoubleToleranceForFieldsForValues(double,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForValues(double)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingDoubleToleranceForValues(double)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingDoubleToleranceForValues(double)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingDoubleToleranceForValues(double)"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"usingExactEquality()"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"usingExactEquality()"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingFloatTolerance(float)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingFloatTolerance(float)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingFloatTolerance(float)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingFloatTolerance(float)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptors(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptors(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptors(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingFloatToleranceForFieldDescriptors(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptors(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingFloatToleranceForFieldDescriptors(float, Iterable)","u":"usingFloatToleranceForFieldDescriptors(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingFloatToleranceForFieldDescriptors(float, Iterable)","u":"usingFloatToleranceForFieldDescriptors(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingFloatToleranceForFieldDescriptors(float, Iterable)","u":"usingFloatToleranceForFieldDescriptors(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingFloatToleranceForFieldDescriptors(float, Iterable)","u":"usingFloatToleranceForFieldDescriptors(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,com.google.protobuf.Descriptors.FieldDescriptor,com.google.protobuf.Descriptors.FieldDescriptor...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Iterable)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Iterable)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Iterable)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingFloatToleranceForFieldDescriptorsForValues(float, Iterable)","u":"usingFloatToleranceForFieldDescriptorsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingFloatToleranceForFields(float, int, int...)","u":"usingFloatToleranceForFields(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingFloatToleranceForFields(float, int, int...)","u":"usingFloatToleranceForFields(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingFloatToleranceForFields(float, int, int...)","u":"usingFloatToleranceForFields(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingFloatToleranceForFields(float, int, int...)","u":"usingFloatToleranceForFields(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"usingFloatToleranceForFields(float, Iterable)","u":"usingFloatToleranceForFields(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"usingFloatToleranceForFields(float, Iterable)","u":"usingFloatToleranceForFields(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"usingFloatToleranceForFields(float, Iterable)","u":"usingFloatToleranceForFields(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"usingFloatToleranceForFields(float, Iterable)","u":"usingFloatToleranceForFields(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldsForValues(float, int, int...)","u":"usingFloatToleranceForFieldsForValues(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingFloatToleranceForFieldsForValues(float, int, int...)","u":"usingFloatToleranceForFieldsForValues(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldsForValues(float, int, int...)","u":"usingFloatToleranceForFieldsForValues(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingFloatToleranceForFieldsForValues(float, int, int...)","u":"usingFloatToleranceForFieldsForValues(float,int,int...)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldsForValues(float, Iterable)","u":"usingFloatToleranceForFieldsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingFloatToleranceForFieldsForValues(float, Iterable)","u":"usingFloatToleranceForFieldsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForFieldsForValues(float, Iterable)","u":"usingFloatToleranceForFieldsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingFloatToleranceForFieldsForValues(float, Iterable)","u":"usingFloatToleranceForFieldsForValues(float,java.lang.Iterable)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForValues(float)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"usingFloatToleranceForValues(float)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"usingFloatToleranceForValues(float)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"usingFloatToleranceForValues(float)"},{"p":"com.google.common.truth","c":"PrimitiveDoubleArraySubject","l":"usingTolerance(double)"},{"p":"com.google.common.truth","c":"PrimitiveFloatArraySubject","l":"usingTolerance(double)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"valuesForKey(Object)","u":"valuesForKey(java.lang.Object)"},{"p":"com.google.common.truth","c":"MultimapSubject","l":"valuesForKey(Object)","u":"valuesForKey(java.lang.Object)"},{"p":"com.google.common.truth","c":"ExpectFailure","l":"whenTesting()"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"withMessage(String)","u":"withMessage(java.lang.String)"},{"p":"com.google.common.truth","c":"StandardSubjectBuilder","l":"withMessage(String, Object...)","u":"withMessage(java.lang.String,java.lang.Object...)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosFluentAssertion","l":"withPartialScope(FieldScope)","u":"withPartialScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"IterableOfProtosSubject","l":"withPartialScope(FieldScope)","u":"withPartialScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoFluentAssertion","l":"withPartialScope(FieldScope)","u":"withPartialScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"ProtoSubject","l":"withPartialScope(FieldScope)","u":"withPartialScope(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesFluentAssertion","l":"withPartialScopeForValues(FieldScope)","u":"withPartialScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MapWithProtoValuesSubject","l":"withPartialScopeForValues(FieldScope)","u":"withPartialScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesFluentAssertion","l":"withPartialScopeForValues(FieldScope)","u":"withPartialScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"},{"p":"com.google.common.truth.extensions.proto","c":"MultimapWithProtoValuesSubject","l":"withPartialScopeForValues(FieldScope)","u":"withPartialScopeForValues(com.google.common.truth.extensions.proto.FieldScope)"}];updateSearchResults(); \ No newline at end of file diff --git a/api/1.4.4/module-search-index.js b/api/1.4.4/module-search-index.js new file mode 100644 index 000000000..0d59754fc --- /dev/null +++ b/api/1.4.4/module-search-index.js @@ -0,0 +1 @@ +moduleSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/api/1.4.4/overview-summary.html b/api/1.4.4/overview-summary.html new file mode 100644 index 000000000..8d6ae24a0 --- /dev/null +++ b/api/1.4.4/overview-summary.html @@ -0,0 +1,25 @@ + + + + +Truth HEAD-SNAPSHOT + + + + + + + + + + +
+ +

index.html

+
+ + diff --git a/api/1.4.4/overview-tree.html b/api/1.4.4/overview-tree.html new file mode 100644 index 000000000..167141505 --- /dev/null +++ b/api/1.4.4/overview-tree.html @@ -0,0 +1,192 @@ + + + + +Class Hierarchy (Truth HEAD-SNAPSHOT) + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For All Packages

+
+Package Hierarchies: + +
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ +
+ + diff --git a/api/1.4.4/package-search-index.js b/api/1.4.4/package-search-index.js new file mode 100644 index 000000000..a1b319a8a --- /dev/null +++ b/api/1.4.4/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"com.google.common.truth"},{"l":"com.google.common.truth.extensions.proto"},{"l":"com.google.common.truth.extensions.re2j"}];updateSearchResults(); \ No newline at end of file diff --git a/api/1.4.4/resource-files/copy.svg b/api/1.4.4/resource-files/copy.svg new file mode 100644 index 000000000..7c46ab15f --- /dev/null +++ b/api/1.4.4/resource-files/copy.svg @@ -0,0 +1,33 @@ + + + + + + + + diff --git a/api/1.4.4/resource-files/glass.png b/api/1.4.4/resource-files/glass.png new file mode 100644 index 0000000000000000000000000000000000000000..a7f591f467a1c0c949bbc510156a0c1afb860a6e GIT binary patch literal 499 zcmVJoRsvExf%rEN>jUL}qZ_~k#FbE+Q;{`;0FZwVNX2n-^JoI; zP;4#$8DIy*Yk-P>VN(DUKmPse7mx+ExD4O|;?E5D0Z5($mjO3`*anwQU^s{ZDK#Lz zj>~{qyaIx5K!t%=G&2IJNzg!ChRpyLkO7}Ry!QaotAHAMpbB3AF(}|_f!G-oI|uK6 z`id_dumai5K%C3Y$;tKS_iqMPHg<*|-@e`liWLAggVM!zAP#@l;=c>S03;{#04Z~5 zN_+ss=Yg6*hTr59mzMwZ@+l~q!+?ft!fF66AXT#wWavHt30bZWFCK%!BNk}LN?0Hg z1VF_nfs`Lm^DjYZ1(1uD0u4CSIr)XAaq + + + + + + + diff --git a/api/1.4.4/resource-files/stylesheet.css b/api/1.4.4/resource-files/stylesheet.css new file mode 100644 index 000000000..46c39a091 --- /dev/null +++ b/api/1.4.4/resource-files/stylesheet.css @@ -0,0 +1,1275 @@ +/* + * Javadoc style sheet + */ + +@import url('fonts/dejavu.css'); + +/* + * These CSS custom properties (variables) define the core color and font + * properties used in this stylesheet. + */ +:root { + /* body, block and code fonts */ + --body-font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + --block-font-family: 'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + --code-font-family: 'DejaVu Sans Mono', monospace; + /* Base font sizes for body and code elements */ + --body-font-size: 14px; + --code-font-size: 14px; + /* Text colors for body and block elements */ + --body-text-color: #353833; + --block-text-color: #474747; + /* Background colors for various structural elements */ + --body-background-color: #ffffff; + --section-background-color: #f8f8f8; + --detail-background-color: #ffffff; + /* Colors for navigation bar and table captions */ + --navbar-background-color: #4D7A97; + --navbar-text-color: #ffffff; + /* Background color for subnavigation and various headers */ + --subnav-background-color: #dee3e9; + /* Background and text colors for selected tabs and navigation items */ + --selected-background-color: #f8981d; + --selected-text-color: #253441; + --selected-link-color: #1f389c; + /* Background colors for generated tables */ + --even-row-color: #ffffff; + --odd-row-color: #eeeeef; + /* Text color for page title */ + --title-color: #2c4557; + /* Text colors for links */ + --link-color: #4A6782; + --link-color-active: #bb7a2a; + /* Snippet colors */ + --snippet-background-color: #ebecee; + --snippet-text-color: var(--block-text-color); + --snippet-highlight-color: #f7c590; + /* Border colors for structural elements and user defined tables */ + --border-color: #ededed; + --table-border-color: #000000; + /* Search input colors */ + --search-input-background-color: #ffffff; + --search-input-text-color: #000000; + --search-input-placeholder-color: #909090; + /* Highlight color for active search tag target */ + --search-tag-highlight-color: #ffff00; + /* Adjustments for icon and active background colors of copy-to-clipboard buttons */ + --copy-icon-brightness: 100%; + --copy-button-background-color-active: rgba(168, 168, 176, 0.3); + /* Colors for invalid tag notifications */ + --invalid-tag-background-color: #ffe6e6; + --invalid-tag-text-color: #000000; +} +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ +body { + background-color:var(--body-background-color); + color:var(--body-text-color); + font-family:var(--body-font-family); + font-size:var(--body-font-size); + margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; +} +:not(input)[id] { + scroll-margin-top: 78px; +} +a:link, a:visited { + text-decoration:none; + color:var(--link-color); +} +a[href]:hover, a[href]:focus { + text-decoration:none; + color:var(--link-color-active); +} +pre { + font-family:var(--code-font-family); + font-size:1em; +} +h1 { + font-size:1.428em; +} +h2 { + font-size:1.285em; +} +h3 { + font-size:1.14em; +} +h4 { + font-size:1.072em; +} +h5 { + font-size:1.001em; +} +h6 { + font-size:0.93em; +} +/* Disable font boosting for selected elements */ +h1, h2, h3, h4, h5, h6, div.member-signature { + max-height: 1000em; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:var(--code-font-family); +} +:not(h1, h2, h3, h4, h5, h6) > code, +:not(h1, h2, h3, h4, h5, h6) > tt { + font-size:var(--code-font-size); + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:var(--code-font-family); + font-size:1em; + padding-top:4px; +} +.summary-table dt code { + font-family:var(--code-font-family); + font-size:1em; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +button { + font-family: var(--body-font-family); + font-size: 1em; +} +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ + +/* + * Styles for document title and copyright. + */ +.about-language { + float:right; + padding:0 21px 8px 8px; + font-size:0.915em; + margin-top:-9px; + height:2.9em; +} +.legal-copy { + margin-left:.5em; +} +/* + * Styles for navigation bar. + */ +@media screen { + header { + position:sticky; + top:0; + z-index:1; + background: var(--body-background-color); + } +} +.top-nav { + background-color:var(--navbar-background-color); + color:var(--navbar-text-color); + float:left; + width:100%; + clear:right; + min-height:2.8em; + padding:10px 0 0 0; + overflow:hidden; + font-size:0.857em; +} +button#navbar-toggle-button { + display:none; +} +ul.sub-nav-list-small { + display: none; +} +.sub-nav { + background-color:var(--subnav-background-color); + float:left; + width:100%; + overflow:hidden; + font-size:0.857em; +} +.sub-nav div { + clear:left; + float:left; + padding:6px; + text-transform:uppercase; +} +.sub-nav .sub-nav-list { + padding-top:4px; +} +ul.nav-list { + display:block; + margin:0 25px 0 0; + padding:0; +} +ul.sub-nav-list { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.nav-list li { + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list-search { + float:right; + margin:0; + padding:6px; + clear:none; + text-align:right; + position:relative; +} +ul.sub-nav-list li { + list-style:none; + float:left; +} +.top-nav a:link, .top-nav a:active, .top-nav a:visited { + color:var(--navbar-text-color); + text-decoration:none; + text-transform:uppercase; +} +.top-nav a:hover { + color:var(--link-color-active); +} +.nav-bar-cell1-rev { + background-color:var(--selected-background-color); + color:var(--selected-text-color); + margin: auto 5px; +} +.skip-nav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* + * Hide navigation links and search box in print layout + */ +@media print { + ul.nav-list, div.sub-nav { + display:none; + } +} +/* + * Styles for page header. + */ +.title { + color:var(--title-color); + margin:10px 0; +} +.sub-title { + margin:5px 0 0 0; +} +ul.contents-list { + margin: 0 0 15px 0; + padding: 0; + list-style: none; +} +ul.contents-list li { + font-size:0.93em; +} +/* + * Styles for headings. + */ +body.class-declaration-page .summary h2, +body.class-declaration-page .details h2, +body.class-use-page h2, +body.module-declaration-page .block-list h2 { + font-style: italic; + padding:0; + margin:15px 0; +} +body.class-declaration-page .summary h3, +body.class-declaration-page .details h3 { + background-color:var(--subnav-background-color); + border:1px solid var(--border-color); + margin:0 0 6px -8px; + padding:7px 5px; + overflow-x:auto; +} +/* + * Styles for page layout containers. + */ +main { + clear:both; + padding:10px 20px; + position:relative; +} +section[id$=-description] :is(dl, ol, ul, p, div, blockquote, pre):last-child, +section[id$=-description] :is(dl, ol, ul):last-child > :is(li, dd):last-child { + margin-bottom:4px; +} +dl.notes > dt { + font-family: var(--body-font-family); + font-size:0.856em; + font-weight:bold; + margin:10px 0 0 0; + color:var(--body-text-color); +} +dl.notes > dd { + margin:5px 10px 10px 0; + font-size:1em; + font-family:var(--block-font-family) +} +dl.name-value > dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +dl.name-value > dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* + * Styles for lists. + */ +li.circle { + list-style:circle; +} +ul.horizontal li { + display:inline; + font-size:0.9em; +} +div.inheritance { + margin:0; + padding:0; +} +div.inheritance div.inheritance { + margin-left:2em; +} +ul.block-list, +ul.details-list, +ul.member-list, +ul.summary-list { + margin:10px 0 10px 0; + padding:0; +} +ul.block-list > li, +ul.details-list > li, +ul.member-list > li, +ul.summary-list > li { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.ref-list { + padding:0; + margin:0; +} +ul.ref-list > li { + list-style:none; +} +.summary-table dl, .summary-table dl dt, .summary-table dl dd { + margin-top:0; + margin-bottom:1px; +} +ul.tag-list, ul.tag-list-long { + padding-left: 0; + list-style: none; +} +ul.tag-list li { + display: inline; +} +ul.tag-list li:not(:last-child):after, +ul.tag-list-long li:not(:last-child):after +{ + content: ", "; + white-space: pre-wrap; +} +ul.preview-feature-list { + list-style: none; + margin:0; + padding:0.1em; + line-height: 1.6em; +} +/* + * Styles for tables. + */ +.summary-table, .details-table { + width:100%; + border-spacing:0; + border:1px solid var(--border-color); + border-top:0; + padding:0; +} +.caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:var(--selected-text-color); + clear:none; + overflow:hidden; + padding: 10px 0 0 1px; + margin:0; +} +.caption a:link, .caption a:visited { + color:var(--selected-link-color); +} +.caption a:hover, +.caption a:active { + color:var(--navbar-text-color); +} +.caption span { + font-weight:bold; + white-space:nowrap; + padding:5px 12px 7px 12px; + display:inline-block; + float:left; + background-color:var(--selected-background-color); + border: none; + height:16px; +} +div.table-tabs { + padding: 10px 0 0 1px; + margin: 0; +} +div.table-tabs > button { + border: none; + cursor: pointer; + padding: 5px 12px 7px 12px; + font-weight: bold; + margin-right: 8px; +} +div.table-tabs > .active-table-tab { + background: var(--selected-background-color); + color: var(--selected-text-color); +} +div.table-tabs > button.table-tab { + background: var(--navbar-background-color); + color: var(--navbar-text-color); +} +.two-column-search-results { + display: grid; + grid-template-columns: minmax(400px, max-content) minmax(400px, auto); +} +div.checkboxes { + line-height: 2em; +} +div.checkboxes > span { + margin-left: 10px; +} +div.checkboxes > label { + margin-left: 8px; + white-space: nowrap; +} +div.checkboxes > label > input { + margin: 0 2px; +} +.two-column-summary { + display: grid; + grid-template-columns: minmax(25%, max-content) minmax(25%, auto); +} +.three-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(20%, max-content) minmax(20%, auto); +} +.three-column-release-summary { + display: grid; + grid-template-columns: minmax(40%, max-content) minmax(10%, max-content) minmax(40%, auto); +} +.four-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, max-content) minmax(15%, auto); +} +@media screen and (max-width: 1000px) { + .four-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); + } +} +@media screen and (max-width: 800px) { + .two-column-search-results { + display: grid; + grid-template-columns: minmax(40%, max-content) minmax(40%, auto); + } + .three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(25%, auto); + } + .three-column-release-summary { + display: grid; + grid-template-columns: minmax(70%, max-content) minmax(30%, max-content) + } + .three-column-summary .col-last, + .three-column-release-summary .col-last{ + grid-column-end: span 2; + } +} +@media screen and (max-width: 600px) { + .two-column-summary { + display: grid; + grid-template-columns: 1fr; + } +} +.summary-table > div, .details-table > div { + text-align:left; + padding: 8px 3px 3px 7px; + overflow: auto hidden; + scrollbar-width: thin; +} +.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { + vertical-align:top; + padding-right:0; + padding-top:8px; + padding-bottom:3px; +} +.table-header { + background:var(--subnav-background-color); + font-weight: bold; +} +/* Sortable table columns */ +.table-header[onclick] { + cursor: pointer; +} +.table-header[onclick]::after { + content:""; + display:inline-block; + background-image:url('data:image/svg+xml; utf8, \ + \ + '); + background-size:100% 100%; + width:9px; + height:14px; + margin-left:4px; + margin-bottom:-3px; +} +.table-header[onclick].sort-asc::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); + +} +.table-header[onclick].sort-desc::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); +} +.col-first, .col-first { + font-size:0.93em; +} +.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { + font-size:0.93em; +} +.col-first, .col-second, .col-constructor-name { + vertical-align:top; + overflow: auto; +} +.col-last { + white-space:normal; +} +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-constructor-name a:link, .col-constructor-name a:visited, +.col-summary-item-name a:link, .col-summary-item-name a:visited { + font-weight:bold; +} +.even-row-color, .even-row-color .table-header { + background-color:var(--even-row-color); +} +.odd-row-color, .odd-row-color .table-header { + background-color:var(--odd-row-color); +} +/* + * Styles for contents. + */ +div.block { + font-size:var(--body-font-size); + font-family:var(--block-font-family); +} +.col-last div { + padding-top:0; +} +.col-last a { + padding-bottom:3px; +} +.module-signature, +.package-signature, +.type-signature, +.member-signature { + font-family:var(--code-font-family); + font-size:1em; + margin:8px 0 14px 0; + white-space: pre-wrap; +} +.module-signature, +.package-signature, +.type-signature { + margin-top: 0; +} +.member-signature .type-parameters-long, +.member-signature .parameters, +.member-signature .exceptions { + display: inline-block; + vertical-align: top; + white-space: pre; +} +.member-signature .type-parameters { + white-space: normal; +} +/* + * Styles for formatting effect. + */ +.source-line-no { + /* Color of line numbers in source pages can be set via custom property below */ + color:var(--source-linenumber-color, green); + padding:0 30px 0 0; +} +.block { + display:block; + margin:0 10px 5px 0; + color:var(--block-text-color); +} +.deprecated-label, .description-from-type-label, .implementation-label, .member-name-link, +.module-label-in-package, .module-label-in-type, .package-label-in-type, +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label, .restricted-label { + font-weight:bold; +} +.deprecation-comment, .help-footnote, .preview-comment, .restricted-comment { + font-style:italic; +} +.deprecation-block, .preview-block, .restricted-block { + font-size:1em; + font-family:var(--block-font-family); + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecation-comment { + font-style:normal; +} +details.invalid-tag, span.invalid-tag { + font-size:1em; + font-family:var(--block-font-family); + color: var(--invalid-tag-text-color); + background: var(--invalid-tag-background-color); + border: thin solid var(--table-border-color); + border-radius:2px; + padding: 2px 4px; + display:inline-block; +} +details summary { + cursor: pointer; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +nav { + overflow:hidden; +} +/* + * Styles for javadoc search. + */ +.ui-menu .ui-state-active { + /* Overrides the color of selection used in jQuery UI */ + background: var(--selected-background-color); + color: var(--selected-text-color); + /* Workaround for browser bug, see JDK-8275889 */ + margin: -1px 0; + border-top: 1px solid var(--selected-background-color); + border-bottom: 1px solid var(--selected-background-color); +} +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:var(--navbar-background-color); + color:var(--navbar-text-color); + box-sizing: border-box; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:auto; + overflow-x:auto; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); + overscroll-behavior: contain; +} +ul.ui-autocomplete { + position:fixed; + z-index:1; + background-color: var(--body-background-color); +} +ul.ui-autocomplete li { + float:left; + clear:both; + min-width:100%; + box-sizing: border-box; +} +ul.ui-autocomplete li.ui-static-link { + position:sticky; + bottom:0; + left:0; + background: var(--subnav-background-color); + padding: 5px 0; + font-family: var(--body-font-family); + font-size: 0.93em; + font-weight: bolder; + z-index: 2; +} +li.ui-static-link a, li.ui-static-link a:visited { + text-decoration:none; + color:var(--link-color); + float:right; + margin-right:20px; +} +.ui-autocomplete .result-item { + font-size: inherit; +} +.ui-autocomplete .result-highlight { + font-weight:bold; +} +.ui-menu .ui-menu-item-wrapper { + padding-top: 0.4em; + padding-bottom: 0.4em; +} +#search-input, #page-search-input { + background-image:url('glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + background-color: var(--search-input-background-color); + color: var(--search-input-text-color); + border-color: var(--border-color); + padding-left:20px; + width: 250px; + margin: 0; +} +#search-input { + margin-left: 4px; +} +#reset-button { + background-color: transparent; + background-image:url('x.png'); + background-repeat:no-repeat; + background-size:contain; + border:0; + border-radius:0; + width:12px; + height:12px; + position:absolute; + right:12px; + top:10px; + font-size:0; +} +::placeholder { + color:var(--search-input-placeholder-color); + opacity: 1; +} +.search-tag-desc-result { + font-style:italic; + font-size:11px; +} +.search-tag-holder-result { + font-style:italic; + font-size:12px; +} +.search-tag-result:target { + background-color:var(--search-tag-highlight-color); +} +details.page-search-details { + display: inline-block; +} +div#result-container { + font-size: 1em; +} +div#result-container a.search-result-link { + padding: 0; + margin: 4px 0; + width: 100%; +} +#result-container .result-highlight { + font-weight:bolder; +} +.page-search-info { + background-color: var(--subnav-background-color); + border-radius: 3px; + border: 0 solid var(--border-color); + padding: 0 8px; + overflow: hidden; + height: 0; + transition: all 0.2s ease; +} +div.table-tabs > button.table-tab { + background: var(--navbar-background-color); + color: var(--navbar-text-color); +} +.page-search-header { + padding: 5px 12px 7px 12px; + font-weight: bold; + margin-right: 3px; + background-color:var(--navbar-background-color); + color:var(--navbar-text-color); + display: inline-block; +} +button.page-search-header { + border: none; + cursor: pointer; +} +span#page-search-link { + text-decoration: underline; +} +.module-graph span, .sealed-graph span { + display:none; + position:absolute; +} +.module-graph:hover span, .sealed-graph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.inherited-list { + margin: 10px 0 10px 0; +} +.horizontal-scroll { + overflow: auto hidden; +} +section.class-description { + line-height: 1.4; +} +.summary section[class$="-summary"], .details section[class$="-details"], +.class-uses .detail, .serialized-class-details { + padding: 0 20px 5px 10px; + border: 1px solid var(--border-color); + background-color: var(--section-background-color); +} +.inherited-list, section[class$="-details"] .detail { + padding:0 0 5px 8px; + background-color:var(--detail-background-color); + border:none; +} +.vertical-separator { + padding: 0 5px; +} +ul.help-section-list { + margin: 0; +} +ul.help-subtoc > li { + display: inline-block; + padding-right: 5px; + font-size: smaller; +} +ul.help-subtoc > li::before { + content: "\2022" ; + padding-right:2px; +} +.help-note { + font-style: italic; +} +/* + * Indicator icon for external links. + */ +main a[href*="://"]::after { + content:""; + display:inline-block; + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); + background-size:100% 100%; + width:7px; + height:7px; + margin-left:2px; + margin-bottom:4px; +} +main a[href*="://"]:hover::after, +main a[href*="://"]:focus::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); +} +/* + * Styles for header/section anchor links + */ +a.anchor-link { + opacity: 0; + transition: opacity 0.1s; +} +:hover > a.anchor-link { + opacity: 80%; +} +a.anchor-link:hover, +a.anchor-link:focus-visible, +a.anchor-link.visible { + opacity: 100%; +} +a.anchor-link > img { + width: 0.9em; + height: 0.9em; +} +/* + * Styles for copy-to-clipboard buttons + */ +button.copy { + opacity: 70%; + border: none; + border-radius: 3px; + position: relative; + background:none; + transition: opacity 0.3s; + cursor: pointer; +} +:hover > button.copy { + opacity: 80%; +} +button.copy:hover, +button.copy:active, +button.copy:focus-visible, +button.copy.visible { + opacity: 100%; +} +button.copy img { + position: relative; + background: none; + filter: brightness(var(--copy-icon-brightness)); +} +button.copy:active { + background-color: var(--copy-button-background-color-active); +} +button.copy span { + color: var(--body-text-color); + position: relative; + top: -0.1em; + transition: all 0.1s; + font-size: 0.76rem; + line-height: 1.2em; + opacity: 0; +} +button.copy:hover span, +button.copy:focus-visible span, +button.copy.visible span { + opacity: 100%; +} +/* search page copy button */ +button#page-search-copy { + margin-left: 0.4em; + padding:0.3em; + top:0.13em; +} +button#page-search-copy img { + width: 1.2em; + height: 1.2em; + padding: 0.01em 0; + top: 0.15em; +} +button#page-search-copy span { + color: var(--body-text-color); + line-height: 1.2em; + padding: 0.2em; + top: -0.18em; +} +div.page-search-info:hover button#page-search-copy span { + opacity: 100%; +} +/* snippet copy button */ +button.snippet-copy { + position: absolute; + top: 6px; + right: 6px; + height: 1.7em; + padding: 2px; +} +button.snippet-copy img { + width: 18px; + height: 18px; + padding: 0.05em 0; +} +button.snippet-copy span { + line-height: 1.2em; + padding: 0.2em; + position: relative; + top: -0.5em; +} +div.snippet-container:hover button.snippet-copy span { + opacity: 100%; +} +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ + +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid var(--table-border-color); +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid var(--table-border-color); +} +table.striped { + border-collapse: collapse; + border: 1px solid var(--table-border-color); +} +table.striped > thead { + background-color: var(--subnav-background-color); +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid var(--table-border-color); +} +table.striped > tbody > tr:nth-child(even) { + background-color: var(--odd-row-color) +} +table.striped > tbody > tr:nth-child(odd) { + background-color: var(--even-row-color) +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid var(--table-border-color); + border-right: 1px solid var(--table-border-color); +} +table.striped > tbody > tr > th { + font-weight: normal; +} +/** + * Tweak style for small screens. + */ +@media screen and (max-width: 920px) { + header { + max-height: 100vh; + overflow-y: auto; + } + div#navbar-top { + height: 2.8em; + transition: height 0.35s ease; + } + ul.nav-list { + display: block; + width: 40%; + float:left; + clear: left; + margin: 10px 0 0 0; + padding: 0; + } + ul.nav-list li { + float: none; + padding: 6px; + margin-left: 10px; + margin-top: 2px; + } + ul.sub-nav-list-small { + display:block; + height: 100%; + width: 50%; + float: right; + clear: right; + background-color: var(--subnav-background-color); + color: var(--body-text-color); + margin: 6px 0 0 0; + padding: 0; + } + ul.sub-nav-list-small ul { + padding-left: 20px; + } + ul.sub-nav-list-small a:link, ul.sub-nav-list-small a:visited { + color:var(--link-color); + } + ul.sub-nav-list-small a:hover { + color:var(--link-color-active); + } + ul.sub-nav-list-small li { + list-style:none; + float:none; + padding: 6px; + margin-top: 1px; + text-transform:uppercase; + } + ul.sub-nav-list-small > li { + margin-left: 10px; + } + ul.sub-nav-list-small li p { + margin: 5px 0; + } + div#navbar-sub-list { + display: none; + } + .top-nav a:link, .top-nav a:active, .top-nav a:visited { + display: block; + } + button#navbar-toggle-button { + width: 3.4em; + height: 2.8em; + background-color: transparent; + display: block; + float: left; + border: 0; + margin: 0 10px; + cursor: pointer; + font-size: 10px; + } + button#navbar-toggle-button .nav-bar-toggle-icon { + display: block; + width: 24px; + height: 3px; + margin: 1px 0 4px 0; + border-radius: 2px; + transition: all 0.1s; + background-color: var(--navbar-text-color); + } + button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(1) { + transform: rotate(45deg); + transform-origin: 10% 10%; + width: 26px; + } + button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(2) { + opacity: 0; + } + button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(3) { + transform: rotate(-45deg); + transform-origin: 10% 90%; + width: 26px; + } +} +@media screen and (max-width: 800px) { + .about-language { + padding-right: 16px; + } + ul.nav-list li { + margin-left: 5px; + } + ul.sub-nav-list-small > li { + margin-left: 5px; + } + main { + padding: 10px; + } + .summary section[class$="-summary"], .details section[class$="-details"], + .class-uses .detail, .serialized-class-details { + padding: 0 8px 5px 8px; + } + body { + -webkit-text-size-adjust: none; + } +} +@media screen and (max-width: 400px) { + .about-language { + font-size: 10px; + padding-right: 12px; + } +} +@media screen and (max-width: 400px) { + .nav-list-search { + width: 94%; + } + #search-input, #page-search-input { + width: 70%; + } +} +@media screen and (max-width: 320px) { + .nav-list-search > label { + display: none; + } + .nav-list-search { + width: 90%; + } + #search-input, #page-search-input { + width: 80%; + } +} + +pre.snippet { + background-color: var(--snippet-background-color); + color: var(--snippet-text-color); + padding: 10px; + margin: 12px 0; + overflow: auto; + white-space: pre; +} +div.snippet-container { + position: relative; +} +@media screen and (max-width: 800px) { + pre.snippet { + padding-top: 26px; + } + button.snippet-copy { + top: 4px; + right: 4px; + } +} +pre.snippet .italic { + font-style: italic; +} +pre.snippet .bold { + font-weight: bold; +} +pre.snippet .highlighted { + background-color: var(--snippet-highlight-color); + border-radius: 10%; +} diff --git a/api/1.4.4/resource-files/x.png b/api/1.4.4/resource-files/x.png new file mode 100644 index 0000000000000000000000000000000000000000..30548a756e151be4e927e8d28c508cc5b3514bf3 GIT binary patch literal 394 zcmV;50d@X~P)W6IT{!St5~1{i=i}zAy76p%_|w8rh@@c0Axr!ns=D-X+|*sY6!@wacG9%)Qn*O zl0sa739kT-&_?#oVxXF6tOnqTD)cZ}2vi$`ZU8RLAlo8=_z#*P3xI~i!lEh+Pdu-L zx{d*wgjtXbnGX_Yf@Tc7Q3YhLhPvc8noGJs2DA~1DySiA&6V{5JzFt ojAY1KXm~va;tU{v7C?Xj0BHw!K;2aXV*mgE07*qoM6N<$f;4TDA^-pY literal 0 HcmV?d00001 diff --git a/api/1.4.4/script-files/jquery-3.6.1.min.js b/api/1.4.4/script-files/jquery-3.6.1.min.js new file mode 100644 index 000000000..2c69bc908 --- /dev/null +++ b/api/1.4.4/script-files/jquery-3.6.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",v.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n
"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(E(s),E(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0n?0",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("