public final class ProtoSubjectBuilder extends CustomSubjectBuilder
CustomSubjectBuilder
which aggregates all Proto-related Subject
classes into a single place.
To obtain an instance, call assertAbout(ProtoTruth.protos())
.
Modifier and Type | Method and Description |
---|---|
<M extends com.google.protobuf.Message> |
that(Iterable<M> messages) |
<K,M extends com.google.protobuf.Message> |
that(ListMultimap<K,M> map) |
<K,M extends com.google.protobuf.Message> |
that(Map<K,M> map) |
ProtoSubject<?,com.google.protobuf.Message> |
that(com.google.protobuf.Message message) |
LiteProtoSubject<?,com.google.protobuf.MessageLite> |
that(com.google.protobuf.MessageLite messageLite) |
<K,M extends com.google.protobuf.Message> |
that(Multimap<K,M> map) |
<K,M extends com.google.protobuf.Message> |
that(SetMultimap<K,M> map) |
metadata
public LiteProtoSubject<?,com.google.protobuf.MessageLite> that(@NullableDecl com.google.protobuf.MessageLite messageLite)
public ProtoSubject<?,com.google.protobuf.Message> that(@NullableDecl com.google.protobuf.Message message)
public <M extends com.google.protobuf.Message> IterableOfProtosSubject<?,M,Iterable<M>> that(@NullableDecl Iterable<M> messages)
public <K,M extends com.google.protobuf.Message> MapWithProtoValuesSubject<?,K,M,Map<K,M>> that(@NullableDecl Map<K,M> map)
public <K,M extends com.google.protobuf.Message> MultimapWithProtoValuesSubject<?,K,M,Multimap<K,M>> that(@NullableDecl Multimap<K,M> map)
public <K,M extends com.google.protobuf.Message> ListMultimapWithProtoValuesSubject<?,K,M,ListMultimap<K,M>> that(@NullableDecl ListMultimap<K,M> map)
public <K,M extends com.google.protobuf.Message> SetMultimapWithProtoValuesSubject<?,K,M,SetMultimap<K,M>> that(@NullableDecl SetMultimap<K,M> map)
Copyright © 2018. All rights reserved.