public final class ProtoTruth extends Object
Note: Usage of different failure strategies such as assume and expect should
 rely on AbstractVerb.about(SubjectFactory) to begin a chain with those alternative
 behaviors.
| Modifier and Type | Method and Description | 
|---|---|
static <M extends com.google.protobuf.Message>  | 
assertThat(Iterable<M> messages)  | 
static ProtoSubject<?,com.google.protobuf.Message> | 
assertThat(com.google.protobuf.Message message)  | 
static LiteProtoSubject<?,com.google.protobuf.MessageLite> | 
assertThat(com.google.protobuf.MessageLite messageLite)  | 
static <M extends com.google.protobuf.Message>  | 
iterablesOfProtos(Class<M> messageClass)
Returns a  
SubjectFactory for Iterables of protocol buffers. | 
static LiteProtoSubject.Factory<?,com.google.protobuf.MessageLite> | 
liteProtos()
Returns a  
SubjectFactory for the lite version of protocol buffers. | 
static ProtoSubject.Factory<?,com.google.protobuf.Message> | 
protos()
Returns a  
SubjectFactory for protocol buffers. | 
public static LiteProtoSubject<?,com.google.protobuf.MessageLite> assertThat(@Nullable com.google.protobuf.MessageLite messageLite)
public static ProtoSubject<?,com.google.protobuf.Message> assertThat(@Nullable com.google.protobuf.Message message)
public static <M extends com.google.protobuf.Message> IterableOfProtosSubject<?,M,Iterable<M>> assertThat(@Nullable Iterable<M> messages)
public static LiteProtoSubject.Factory<?,com.google.protobuf.MessageLite> liteProtos()
SubjectFactory for the lite version of protocol buffers.public static ProtoSubject.Factory<?,com.google.protobuf.Message> protos()
SubjectFactory for protocol buffers.public static <M extends com.google.protobuf.Message> IterableOfProtosSubject.Factory<IterableOfProtosSubject.IterableOfMessagesSubject<M>,M,Iterable<M>> iterablesOfProtos(Class<M> messageClass)
SubjectFactory for Iterables of protocol buffers.messageClass - an explicit type specifier for the SubjectFactory.Copyright © 2016. All rights reserved.