Package | Description |
---|---|
com.google.common.truth |
Truth is an open source, fluent testing framework for Java that is designed to make your test
assertions and failure messages more readable.
|
com.google.common.truth.extensions.proto |
Custom subjects for testing Protocol
Buffer instances.
|
Modifier and Type | Method and Description |
---|---|
protected FailureMetadata |
CustomSubjectBuilder.metadata()
|
Modifier and Type | Method and Description |
---|---|
SubjectT |
Subject.Factory.createSubject(FailureMetadata metadata,
ActualT actual)
Creates a new
Subject . |
CustomSubjectBuilderT |
CustomSubjectBuilder.Factory.createSubjectBuilder(FailureMetadata metadata)
Creates a new
CustomSubjectBuilder of the appropriate type. |
Constructor and Description |
---|
ComparableSubject(FailureMetadata metadata,
T actual)
Constructor for use by subclasses.
|
CustomSubjectBuilder(FailureMetadata metadata)
Constructor for use by subclasses.
|
IntegerSubject(FailureMetadata metadata,
Integer integer)
Constructor for use by subclasses.
|
IterableSubject(FailureMetadata metadata,
Iterable<?> iterable)
Constructor for use by subclasses.
|
LongSubject(FailureMetadata metadata,
Long actual)
Constructor for use by subclasses.
|
StringSubject(FailureMetadata metadata,
String string)
Constructor for use by subclasses.
|
Subject(FailureMetadata metadata,
T actual)
Constructor for use by subclasses.
|
Constructor and Description |
---|
IterableOfProtosSubject(FailureMetadata failureMetadata,
C messages) |
ListMultimapWithProtoValuesSubject(FailureMetadata failureMetadata,
C multimap) |
LiteProtoSubject(FailureMetadata failureMetadata,
M messageLite) |
MapWithProtoValuesSubject(FailureMetadata failureMetadata,
C map) |
MultimapWithProtoValuesSubject(FailureMetadata failureMetadata,
C multimap) |
ProtoSubject(FailureMetadata failureMetadata,
M message) |
SetMultimapWithProtoValuesSubject(FailureMetadata failureMetadata,
C multimap) |
Copyright © 2018. All rights reserved.