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(Descriptors.FieldDescriptor firstFieldDescriptor,
Descriptors.FieldDescriptor... rest)
Returns a
FieldScope which matches nothing except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor,
Descriptors.FieldDescriptor... rest)
Returns a
FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptor s. |
static FieldScope |
FieldScopes.allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
Returns a
FieldScope which matches nothing except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.allowingFieldDescriptors(Iterable<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 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(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(Message firstMessage,
Message secondMessage,
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(Descriptors.FieldDescriptor firstFieldDescriptor,
Descriptors.FieldDescriptor... rest)
Returns a
FieldScope which matches everything except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor,
Descriptors.FieldDescriptor... rest)
Returns a
FieldScope equivalent to this one, minus all fields matching the given Descriptors.FieldDescriptor s. |
static FieldScope |
FieldScopes.ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
Returns a
FieldScope which matches everything except the provided field descriptors for
the message. |
abstract FieldScope |
FieldScope.ignoringFieldDescriptors(Iterable<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)
Excludes all specific field paths under the argument
FieldScope from the comparison. |
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)
Limits the comparison of Protocol buffers to the defined
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 © 2019. All rights reserved.