Package | Description |
---|---|
com.google.common.truth.extensions.proto |
Custom subjects for testing Protocol
Buffer instances.
|
Modifier and Type | Method and Description |
---|---|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.comparingExpectedFieldsOnly()
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.comparingExpectedFieldsOnly()
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.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.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.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.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringFieldAbsence()
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringFieldAbsence()
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
com.google.protobuf.Descriptors.FieldDescriptor... rest)
Excludes all message fields matching the given
Descriptors.FieldDescriptor s from the comparison. |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
com.google.protobuf.Descriptors.FieldDescriptor... rest)
Excludes all message fields matching the given
Descriptors.FieldDescriptor s from the comparison. |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Excludes all message fields matching the given
Descriptors.FieldDescriptor s from the comparison. |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Excludes all message fields matching the given
Descriptors.FieldDescriptor s from the comparison. |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringFields(int firstFieldNumber,
int... rest)
Excludes the top-level message fields with the given tag numbers from the comparison.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringFields(int firstFieldNumber,
int... rest)
Excludes the top-level message fields with the given tag numbers from the comparison.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringFields(Iterable<Integer> fieldNumbers)
Excludes the top-level message fields with the given tag numbers from the comparison.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringFields(Iterable<Integer> fieldNumbers)
Excludes the top-level message fields with the given tag numbers from the comparison.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argument
FieldScope from the comparison. |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argument
FieldScope from the comparison. |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.ignoringRepeatedFieldOrder()
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.ignoringRepeatedFieldOrder()
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.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.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.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.
|
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.usingDoubleTolerance(double tolerance)
Compares double fields as equal if they are both finite and their absolute difference is less
than or equal to
tolerance . |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.usingDoubleTolerance(double tolerance)
Compares double fields as equal if they are both finite and their absolute difference is less
than or equal to
tolerance . |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.usingFloatTolerance(float tolerance)
Compares float fields as equal if they are both finite and their absolute difference is less
than or equal to
tolerance . |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.usingFloatTolerance(float tolerance)
Compares float fields as equal if they are both finite and their absolute difference is less
than or equal to
tolerance . |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosSubject.withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the defined
FieldScope . |
IterableOfProtosFluentAssertion<M> |
IterableOfProtosFluentAssertion.withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the defined
FieldScope . |
Copyright © 2018. All rights reserved.