code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors( float tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.usingFloatToleranceForFieldDescriptors(tolerance, fieldDescriptors)); }
Compares float fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> ignoringFields(int firstFieldNumber, int... rest) { return ignoringFields(asList(firstFieldNumber, rest)); }
Excludes the top-level message fields with the given tag numbers from the comparison. <p>This method adds on any previous {@link 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 {@code M} will also have these field numbers ignored. <p>If an invalid field number is supplied, the terminal comparison operation will throw a runtime exception.
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> ignoringFields(Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringFields(fieldNumbers)); }
Excludes the top-level message fields with the given tag numbers from the comparison. <p>This method adds on any previous {@link 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 {@code M} will also have these field numbers ignored. <p>If an invalid field number is supplied, the terminal comparison operation will throw a runtime exception.
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return ignoringFieldDescriptors(asList(firstFieldDescriptor, rest)); }
Excludes all message fields matching the given {@link FieldDescriptor}s from the comparison. <p>This method adds on any previous {@link 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. <p>If a field descriptor which does not, or cannot occur in the proto structure is supplied, it is silently ignored.
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.ignoringFieldDescriptors(fieldDescriptors)); }
Excludes all message fields matching the given {@link FieldDescriptor}s from the comparison. <p>This method adds on any previous {@link 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. <p>If a field descriptor which does not, or cannot occur in the proto structure is supplied, it is silently ignored.
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> ignoringFieldScope(FieldScope fieldScope) { return usingConfig(config.ignoringFieldScope(checkNotNull(fieldScope, "fieldScope"))); }
Excludes all specific field paths under the argument {@link FieldScope} from the comparison. <p>This method is additive and has well-defined ordering semantics. If the invoking {@link ProtoFluentAssertion} is already scoped to a {@link FieldScope} {@code X}, and this method is invoked with {@link FieldScope} {@code Y}, the resultant {@link ProtoFluentAssertion} is constrained to the subtraction of {@code X - Y}. <p>By default, {@link ProtoFluentAssertion} is constrained to {@link FieldScopes#all()}, that is, no fields are excluded from comparison.
ignoringFieldScope
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> reportingMismatchesOnly() { return usingConfig(config.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. <p>This a purely cosmetic setting, and it has no effect on the behavior of the test.
reportingMismatchesOnly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
public IterableOfProtosFluentAssertion<M> unpackingAnyUsing( TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry) { return usingConfig(config.unpackingAnyUsing(typeRegistry, extensionRegistry)); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>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. </ul> <p>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 {@link ExtensionRegistry}. @since 1.1
unpackingAnyUsing
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @Deprecated public final void isInStrictOrder() { throw new ClassCastException( "Protos do not implement Comparable, so you must supply a Comparator."); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInStrictOrder(Comparator) supply a comparator}. @throws ClassCastException always
isInStrictOrder
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @Deprecated public final void isInOrder() { throw new ClassCastException( "Protos do not implement Comparable, so you must supply a Comparator."); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
isInOrder
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
private IterableSubject.UsingCorrespondence<M, M> delegate(Iterable<? extends M> messages) { IterableSubject.UsingCorrespondence<M, M> usingCorrespondence = subject.comparingElementsUsing( subject .config .withExpectedMessages(messages) .<M>toCorrespondence(FieldScopeUtil.getSingleDescriptor(subject.actual))); if (keyFunction != null) { usingCorrespondence = usingCorrespondence.displayingDiffsPairedBy(keyFunction); } return usingCorrespondence; }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
delegate
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosUsingCorrespondence<M> displayingDiffsPairedBy( Function<? super M, ?> keyFunction) { return new UsingCorrespondence<M>(subject, checkNotNull(keyFunction)); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
displayingDiffsPairedBy
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void contains(@Nullable M expected) { delegate(Arrays.asList(expected)).contains(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
contains
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void doesNotContain(@Nullable M excluded) { delegate(Arrays.asList(excluded)).doesNotContain(excluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
doesNotContain
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsExactly(@Nullable M... expected) { return delegate(Arrays.asList(expected)).containsExactly(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsExactly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsExactlyElementsIn(Iterable<? extends M> expected) { return delegate(expected).containsExactlyElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsExactlyElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsExactlyElementsIn(M[] expected) { return delegate(Arrays.asList(expected)).containsExactlyElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsExactlyElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsAtLeast(@Nullable M first, @Nullable M second, @Nullable M... rest) { return delegate(Lists.asList(first, second, rest)).containsAtLeast(first, second, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAtLeast
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsAtLeastElementsIn(Iterable<? extends M> expected) { return delegate(expected).containsAtLeastElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAtLeastElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsAtLeastElementsIn(M[] expected) { return delegate(Arrays.asList(expected)).containsAtLeastElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAtLeastElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsAnyOf(@Nullable M first, @Nullable M second, @Nullable M... rest) { delegate(Lists.asList(first, second, rest)).containsAnyOf(first, second, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAnyOf
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsAnyIn(Iterable<? extends M> expected) { delegate(expected).containsAnyIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAnyIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsAnyIn(M[] expected) { delegate(Arrays.asList(expected)).containsAnyIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAnyIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsNoneOf( @Nullable M firstExcluded, @Nullable M secondExcluded, @Nullable M... restOfExcluded) { delegate(Lists.asList(firstExcluded, secondExcluded, restOfExcluded)) .containsNoneOf(firstExcluded, secondExcluded, restOfExcluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsNoneOf
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsNoneIn(Iterable<? extends M> excluded) { delegate(excluded).containsNoneIn(excluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsNoneIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsNoneIn(M[] excluded) { delegate(Arrays.asList(excluded)).containsNoneIn(excluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsNoneIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
private IterableOfProtosUsingCorrespondence<M> usingCorrespondence() { return new UsingCorrespondence<M>(this, /* keyFunction= */ null); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingCorrespondence
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldAbsence() { return subject.ignoringFieldAbsence(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldAbsence
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFields( int firstFieldNumber, int... rest) { return subject.ignoringFieldAbsenceOfFields(firstFieldNumber, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldAbsenceOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFields( Iterable<Integer> fieldNumbers) { return subject.ignoringFieldAbsenceOfFields(fieldNumbers); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldAbsenceOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.ignoringFieldAbsenceOfFieldDescriptors(firstFieldDescriptor, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldAbsenceOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return subject.ignoringFieldAbsenceOfFieldDescriptors(fieldDescriptors); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldAbsenceOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrder() { return subject.ignoringRepeatedFieldOrder(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringRepeatedFieldOrder
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFields( int firstFieldNumber, int... rest) { return subject.ignoringRepeatedFieldOrderOfFields(firstFieldNumber, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringRepeatedFieldOrderOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFields( Iterable<Integer> fieldNumbers) { return subject.ignoringRepeatedFieldOrderOfFields(fieldNumbers); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringRepeatedFieldOrderOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.ignoringRepeatedFieldOrderOfFieldDescriptors(firstFieldDescriptor, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringRepeatedFieldOrderOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return subject.ignoringRepeatedFieldOrderOfFieldDescriptors(fieldDescriptors); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringRepeatedFieldOrderOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElements() { return subject.ignoringExtraRepeatedFieldElements(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringExtraRepeatedFieldElements
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFields( int firstFieldNumber, int... rest) { return subject.ignoringExtraRepeatedFieldElementsOfFields(firstFieldNumber, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringExtraRepeatedFieldElementsOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFields( Iterable<Integer> fieldNumbers) { return subject.ignoringExtraRepeatedFieldElementsOfFields(fieldNumbers); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringExtraRepeatedFieldElementsOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.ignoringExtraRepeatedFieldElementsOfFieldDescriptors( firstFieldDescriptor, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringExtraRepeatedFieldElementsOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return subject.ignoringExtraRepeatedFieldElementsOfFieldDescriptors(fieldDescriptors); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringExtraRepeatedFieldElementsOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingDoubleTolerance(double tolerance) { return subject.usingDoubleTolerance(tolerance); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingDoubleTolerance
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFields( double tolerance, int firstFieldNumber, int... rest) { return subject.usingDoubleToleranceForFields(tolerance, firstFieldNumber, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingDoubleToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFields( double tolerance, Iterable<Integer> fieldNumbers) { return subject.usingDoubleToleranceForFields(tolerance, fieldNumbers); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingDoubleToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFieldDescriptors( double tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.usingDoubleToleranceForFieldDescriptors(tolerance, firstFieldDescriptor, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingDoubleToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingDoubleToleranceForFieldDescriptors( double tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return subject.usingDoubleToleranceForFieldDescriptors(tolerance, fieldDescriptors); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingDoubleToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingFloatTolerance(float tolerance) { return subject.usingFloatTolerance(tolerance); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingFloatTolerance
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFields( float tolerance, int firstFieldNumber, int... rest) { return subject.usingFloatToleranceForFields(tolerance, firstFieldNumber, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingFloatToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFields( float tolerance, Iterable<Integer> fieldNumbers) { return subject.usingFloatToleranceForFields(tolerance, fieldNumbers); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingFloatToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors( float tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.usingFloatToleranceForFieldDescriptors(tolerance, firstFieldDescriptor, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> usingFloatToleranceForFieldDescriptors( float tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return subject.usingFloatToleranceForFieldDescriptors(tolerance, fieldDescriptors); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> comparingExpectedFieldsOnly() { return subject.comparingExpectedFieldsOnly(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
comparingExpectedFieldsOnly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> withPartialScope(FieldScope fieldScope) { return subject.withPartialScope(fieldScope); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
withPartialScope
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFields(int firstFieldNumber, int... rest) { return subject.ignoringFields(firstFieldNumber, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFields(Iterable<Integer> fieldNumbers) { return subject.ignoringFields(fieldNumbers); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.ignoringFieldDescriptors(firstFieldDescriptor, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return subject.ignoringFieldDescriptors(fieldDescriptors); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> ignoringFieldScope(FieldScope fieldScope) { return subject.ignoringFieldScope(fieldScope); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
ignoringFieldScope
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> reportingMismatchesOnly() { return subject.reportingMismatchesOnly(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
reportingMismatchesOnly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosFluentAssertion<M> unpackingAnyUsing( TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry) { return subject.unpackingAnyUsing(typeRegistry, extensionRegistry); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
unpackingAnyUsing
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public IterableOfProtosUsingCorrespondence<M> displayingDiffsPairedBy( Function<? super M, ?> keyFunction) { return usingCorrespondence().displayingDiffsPairedBy(keyFunction); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
displayingDiffsPairedBy
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void contains(@Nullable M expected) { usingCorrespondence().contains(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
contains
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void doesNotContain(@Nullable M excluded) { usingCorrespondence().doesNotContain(excluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
doesNotContain
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public Ordered containsExactly(@Nullable M... expected) { return usingCorrespondence().containsExactly(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsExactly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public Ordered containsExactlyElementsIn(Iterable<? extends M> expected) { return usingCorrespondence().containsExactlyElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsExactlyElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public Ordered containsExactlyElementsIn(M[] expected) { return usingCorrespondence().containsExactlyElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsExactlyElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public Ordered containsAtLeast(@Nullable M first, @Nullable M second, @Nullable M... rest) { return usingCorrespondence().containsAtLeast(first, second, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAtLeast
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public Ordered containsAtLeastElementsIn(Iterable<? extends M> expected) { return usingCorrespondence().containsAtLeastElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAtLeastElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public Ordered containsAtLeastElementsIn(M[] expected) { return usingCorrespondence().containsAtLeastElementsIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAtLeastElementsIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsAnyOf(@Nullable M first, @Nullable M second, @Nullable M... rest) { usingCorrespondence().containsAnyOf(first, second, rest); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAnyOf
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsAnyIn(Iterable<? extends M> expected) { usingCorrespondence().containsAnyIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAnyIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsAnyIn(M[] expected) { usingCorrespondence().containsAnyIn(expected); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsAnyIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsNoneOf( @Nullable M firstExcluded, @Nullable M secondExcluded, @Nullable M... restOfExcluded) { usingCorrespondence().containsNoneOf(firstExcluded, secondExcluded, restOfExcluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsNoneOf
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsNoneIn(Iterable<? extends M> excluded) { usingCorrespondence().containsNoneIn(excluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsNoneIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@Override public void containsNoneIn(M[] excluded) { usingCorrespondence().containsNoneIn(excluded); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
containsNoneIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@SuppressWarnings("DoNotCall") @Override @Deprecated public boolean equals(Object o) { return subject.equals(o); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
equals
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
@SuppressWarnings("DoNotCall") @Override @Deprecated public int hashCode() { return subject.hashCode(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
hashCode
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
private final IterableOfProtosUsingCorrespondence<M> usingCorrespondence() { return subject.usingCorrespondence(); }
@deprecated Protos do not implement {@link Comparable}, so you must {@linkplain #isInOrder(Comparator) supply a comparator}. @throws ClassCastException always
usingCorrespondence
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/IterableOfProtosSubject.java
Apache-2.0
MapWithProtoValuesFluentAssertion<M> usingConfig(FluentEqualityConfig newConfig) { return new MapWithProtoValuesFluentAssertionImpl<>( new MapWithProtoValuesSubject<>(metadata, newConfig, actual)); }
Truth subject for maps with protocol buffers for values. <p>{@code ProtoTruth.assertThat(actual).containsExactlyEntriesIn(expected)} performs the same assertion as {@code 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. {@code ProtoTruth.assertThat(actual).ignoringRepeatedFieldOrder().containsExactly(expected)}. <p>By default, floating-point fields are compared using exact equality, which is <a href="https://truth.dev/floating_point">probably not what you want</a> if the values are the results of some arithmetic. To check for approximate equality, use {@link #usingDoubleToleranceForValues}, {@link #usingFloatToleranceForValues}, and {@linkplain #usingDoubleToleranceForFieldsForValues(double, int, int...) their per-field equivalents}. <p>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. @param <M> the type of the message values in the map
usingConfig
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues( int firstFieldNumber, int... rest) { return usingConfig(config.ignoringFieldAbsenceOfFields(asList(firstFieldNumber, 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 {@link FieldDescriptor}) if they are to be ignored as well. <p>Use {@link #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsenceForValues() for details
ignoringFieldAbsenceOfFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues( Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringFieldAbsenceOfFields(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 {@link FieldDescriptor}) if they are to be ignored as well. <p>Use {@link #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsenceForValues() for details
ignoringFieldAbsenceOfFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.ignoringFieldAbsenceOfFieldDescriptors(asList(firstFieldDescriptor, 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. <p>Use {@link #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsenceForValues() for details
ignoringFieldAbsenceOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.ignoringFieldAbsenceOfFieldDescriptors(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. <p>Use {@link #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsenceForValues() for details
ignoringFieldAbsenceOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues() { return usingConfig(config.ignoringRepeatedFieldOrder()); }
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing for equality. <p>This setting applies to all repeated fields recursively, but it does not ignore structure. For example, with {@link #ignoringRepeatedFieldOrderForValues()}, a repeated {@code int32} field {@code bar}, set inside a repeated message field {@code foo}, the following protos will all compare equal: <pre>{@code 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 } } }</pre> <p>However, the following message will compare equal to none of these: <pre>{@code message4: { foo: { bar: 1 bar: 3 } foo: { bar: 2 bar: 4 } } }</pre> <p>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.
ignoringRepeatedFieldOrderForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues( int firstFieldNumber, int... rest) { return usingConfig(config.ignoringRepeatedFieldOrderOfFields(asList(firstFieldNumber, 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 {@link FieldDescriptor}) if their orders are to be ignored as well. <p>Use {@link #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrderForValues() for details.
ignoringRepeatedFieldOrderOfFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues( Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringRepeatedFieldOrderOfFields(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 {@link FieldDescriptor}) if their orders are to be ignored as well. <p>Use {@link #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrderForValues() for details.
ignoringRepeatedFieldOrderOfFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.ignoringRepeatedFieldOrderOfFieldDescriptors(asList(firstFieldDescriptor, 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. <p>Use {@link #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrderForValues() for details.
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldDescriptorsForValues( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.ignoringRepeatedFieldOrderOfFieldDescriptors(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. <p>Use {@link #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrderForValues() for details.
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues() { return usingConfig(config.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 {@link #comparingExpectedFieldsOnlyForValues}. <p>This rule is applied independently from {@link #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.)
ignoringExtraRepeatedFieldElementsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues( int firstFieldNumber, int... rest) { return usingConfig( config.ignoringExtraRepeatedFieldElementsOfFields(asList(firstFieldNumber, 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 {@link FieldDescriptor}) if their extra elements are to be ignored as well. <p>Use {@link #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElementsForValues() for details.
ignoringExtraRepeatedFieldElementsOfFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues( Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringExtraRepeatedFieldElementsOfFields(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 {@link FieldDescriptor}) if their extra elements are to be ignored as well. <p>Use {@link #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElementsForValues() for details.
ignoringExtraRepeatedFieldElementsOfFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.ignoringExtraRepeatedFieldElementsOfFieldDescriptors( asList(firstFieldDescriptor, 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. <p>Use {@link #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElementsForValues() for details.
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig( config.ignoringExtraRepeatedFieldElementsOfFieldDescriptors(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. <p>Use {@link #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElementsForValues() for details.
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance) { return usingConfig(config.usingDoubleTolerance(tolerance)); }
Compares double fields as equal if they are both finite and their absolute difference is less than or equal to {@code tolerance}. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues( double tolerance, int firstFieldNumber, int... rest) { return usingConfig( config.usingDoubleToleranceForFields(tolerance, asList(firstFieldNumber, rest))); }
Compares double fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues( double tolerance, Iterable<Integer> fieldNumbers) { return usingConfig(config.usingDoubleToleranceForFields(tolerance, fieldNumbers)); }
Compares double fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues( double tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.usingDoubleToleranceForFieldDescriptors( tolerance, asList(firstFieldDescriptor, rest))); }
Compares double fields with these explicitly specified fields using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues( double tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.usingDoubleToleranceForFieldDescriptors(tolerance, fieldDescriptors)); }
Compares double fields with these explicitly specified fields using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0
public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(float tolerance) { return usingConfig(config.usingFloatTolerance(tolerance)); }
Compares float fields as equal if they are both finite and their absolute difference is less than or equal to {@code tolerance}. @param tolerance A finite, non-negative tolerance.
usingFloatToleranceForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
Apache-2.0