Package | Description |
---|---|
com.google.common.truth.extensions.proto |
Custom subjects for testing Protocol
Buffer instances.
|
Modifier and Type | Method and Description |
---|---|
static FieldScope |
FieldScopes.all()
Returns a
FieldScope which matches all fields without exception. |
static FieldScope |
FieldScopes.allowingFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
com.google.protobuf.Descriptors.FieldDescriptor... rest)
Returns a
FieldScope which matches nothing except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.allowingFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
com.google.protobuf.Descriptors.FieldDescriptor... rest)
Returns a
FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptor s. |
static FieldScope |
FieldScopes.allowingFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Returns a
FieldScope which matches nothing except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.allowingFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Returns a
FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptor s. |
static FieldScope |
FieldScopes.allowingFields(int firstFieldNumber,
int... rest)
Returns a
FieldScope which matches nothing except the provided field numbers for the
top level message type. |
abstract FieldScope |
FieldScope.allowingFields(int firstFieldNumber,
int... rest)
Returns a
FieldScope equivalent to this one, plus all fields defined by the given field
numbers. |
static FieldScope |
FieldScopes.allowingFields(Iterable<Integer> fieldNumbers)
Returns a
FieldScope which matches nothing except the provided field numbers for the
top level message type. |
abstract FieldScope |
FieldScope.allowingFields(Iterable<Integer> fieldNumbers)
Returns a
FieldScope equivalent to this one, plus all fields defined by the given field
numbers. |
static FieldScope |
FieldScopes.fromSetFields(Iterable<? extends com.google.protobuf.Message> messages)
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) . |
static FieldScope |
FieldScopes.fromSetFields(com.google.protobuf.Message message)
Returns a
FieldScope which is constrained to precisely those specific field paths that
are explicitly set in the message. |
static FieldScope |
FieldScopes.fromSetFields(com.google.protobuf.Message firstMessage,
com.google.protobuf.Message secondMessage,
com.google.protobuf.Message... rest)
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) . |
static FieldScope |
FieldScopes.ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
com.google.protobuf.Descriptors.FieldDescriptor... rest)
Returns a
FieldScope which matches everything except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.ignoringFieldDescriptors(com.google.protobuf.Descriptors.FieldDescriptor firstFieldDescriptor,
com.google.protobuf.Descriptors.FieldDescriptor... rest)
Returns a
FieldScope equivalent to this one, minus all fields matching the given Descriptors.FieldDescriptor s. |
static FieldScope |
FieldScopes.ignoringFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Returns a
FieldScope which matches everything except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.ignoringFieldDescriptors(Iterable<com.google.protobuf.Descriptors.FieldDescriptor> fieldDescriptors)
Returns a
FieldScope equivalent to this one, minus all fields defined by the given
field numbers. |
static FieldScope |
FieldScopes.ignoringFields(int firstFieldNumber,
int... rest)
Returns a
FieldScope which matches everything except the provided field numbers for the
top level message type. |
abstract FieldScope |
FieldScope.ignoringFields(int firstFieldNumber,
int... rest)
Returns a
FieldScope equivalent to this one, minus all fields defined by the given
field numbers. |
static FieldScope |
FieldScopes.ignoringFields(Iterable<Integer> fieldNumbers)
Returns a
FieldScope which matches everything except the provided field numbers for the
top level message type. |
abstract FieldScope |
FieldScope.ignoringFields(Iterable<Integer> fieldNumbers)
Returns a
FieldScope equivalent to this one, minus all fields defined by the given
field numbers. |
static FieldScope |
FieldScopes.none()
Returns a
FieldScope which matches no fields. |
Modifier and Type | Method and Description |
---|---|
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. |
ProtoFluentAssertion |
ProtoSubject.ignoringFieldScope(FieldScope fieldScope) |
ProtoFluentAssertion |
ProtoFluentAssertion.ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argument
FieldScope from the comparison. |
MultimapWithProtoValuesFluentAssertion<M> |
MultimapWithProtoValuesSubject.ignoringFieldScopeForValues(FieldScope fieldScope)
Excludes all specific field paths under the argument
FieldScope from the comparison. |
MultimapWithProtoValuesFluentAssertion<M> |
MultimapWithProtoValuesFluentAssertion.ignoringFieldScopeForValues(FieldScope fieldScope)
Excludes all specific field paths under the argument
FieldScope 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. |
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 . |
ProtoFluentAssertion |
ProtoSubject.withPartialScope(FieldScope fieldScope) |
ProtoFluentAssertion |
ProtoFluentAssertion.withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the defined
FieldScope . |
MultimapWithProtoValuesFluentAssertion<M> |
MultimapWithProtoValuesSubject.withPartialScopeForValues(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the defined
FieldScope . |
MultimapWithProtoValuesFluentAssertion<M> |
MultimapWithProtoValuesFluentAssertion.withPartialScopeForValues(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the defined
FieldScope . |
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.