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