| Package | Description | 
|---|---|
| com.google.common.truth.extensions.proto | 
 Custom subjects for testing Protocol
 Buffer instances. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
ProtoSubject<S extends ProtoSubject<S,M>,M extends com.google.protobuf.Message>
Truth subject for the full version of Protocol Buffers. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ProtoFluentAssertion | 
ProtoSubject.comparingExpectedFieldsOnly()  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.comparingExpectedFieldsOnly()
Limits the comparison of Protocol buffers to the fields set in the expected proto(s). 
 | 
ProtoFluentAssertion | 
ProtoSubject.ignoringExtraRepeatedFieldElements()  | 
ProtoFluentAssertion | 
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. 
 | 
ProtoFluentAssertion | 
ProtoSubject.ignoringFieldAbsence()  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringFieldAbsence()
Specifies that the 'has' bit of individual fields should be ignored when comparing for
 equality. 
 | 
ProtoFluentAssertion | 
ProtoSubject.ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
                        com.google.protobuf.Descriptors.FieldDescriptor... rest)  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
                        com.google.protobuf.Descriptors.FieldDescriptor... rest)
Excludes all message fields matching the given  
Descriptors.FieldDescriptors from the comparison. | 
ProtoFluentAssertion | 
ProtoSubject.ignoringFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Excludes all message fields matching the given  
Descriptors.FieldDescriptors from the comparison. | 
ProtoFluentAssertion | 
ProtoSubject.ignoringFields(int firstFieldNumber,
              int... rest)  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringFields(int firstFieldNumber,
              int... rest)
Excludes the top-level message fields with the given tag numbers from the comparison. 
 | 
ProtoFluentAssertion | 
ProtoSubject.ignoringFields(Iterable<Integer> fieldNumbers)  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringFields(Iterable<Integer> fieldNumbers)
Excludes the top-level message fields with the given tag numbers from the comparison. 
 | 
ProtoFluentAssertion | 
ProtoSubject.ignoringFieldScope(FieldScope fieldScope)  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argument  
FieldScope from the comparison. | 
ProtoFluentAssertion | 
ProtoSubject.ignoringRepeatedFieldOrder()  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.ignoringRepeatedFieldOrder()
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
 for equality. 
 | 
ProtoFluentAssertion | 
ProtoSubject.reportingMismatchesOnly()  | 
ProtoFluentAssertion | 
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. 
 | 
ProtoFluentAssertion | 
ProtoSubject.usingDoubleTolerance(double tolerance)  | 
ProtoFluentAssertion | 
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. | 
ProtoFluentAssertion | 
ProtoSubject.usingFloatTolerance(float tolerance)  | 
ProtoFluentAssertion | 
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. | 
ProtoFluentAssertion | 
ProtoSubject.withPartialScope(FieldScope fieldScope)  | 
ProtoFluentAssertion | 
ProtoFluentAssertion.withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the defined  
FieldScope. | 
Copyright © 2018. All rights reserved.