| 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 | Interface and Description |
|---|---|
static interface |
CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder>
|
interface |
CustomSubjectBuilderFactory<CustomSubjectBuilderT extends CustomSubjectBuilder>
Deprecated.
When you switch your
Subject implementations from accepting a FailureStrategy to accepting a FailureMetadata, you'll switch their CustomSubjectBuilder to start using FailureMetadata, too, and so you'll switch to
creating it with CustomSubjectBuilder.Factory instead of CustomSubjectBuilderFactory. |
| Modifier and Type | Method and Description |
|---|---|
<CustomSubjectBuilderT extends CustomSubjectBuilder> |
StandardSubjectBuilder.about(CustomSubjectBuilder.Factory<CustomSubjectBuilderT> factory) |
<CustomSubjectBuilderT extends CustomSubjectBuilder> |
StandardSubjectBuilder.about(CustomSubjectBuilderFactory<CustomSubjectBuilderT> factory)
Deprecated.
When you switch from
CustomSubjectBuilderFactory to CustomSubjectBuilder.Factory, you'll switch from this overload to the CustomSubjectBuilder.Factory overload. |
static <CustomSubjectBuilderT extends CustomSubjectBuilder> |
Truth.assertAbout(CustomSubjectBuilder.Factory<CustomSubjectBuilderT> factory)
A generic, advanced method of extension of Truth to new types, which is documented on
CustomSubjectBuilder. |
static <CustomSubjectBuilderT extends CustomSubjectBuilder> |
Truth.assertAbout(CustomSubjectBuilderFactory<CustomSubjectBuilderT> factory)
Deprecated.
When you switch from
CustomSubjectBuilderFactory to CustomSubjectBuilder.Factory, you'll switch from this overload to the CustomSubjectBuilder.Factory overload. |
| Modifier and Type | Class and Description |
|---|---|
class |
ProtoSubjectBuilder
CustomSubjectBuilder which aggregates all Proto-related Subject classes into a single place. |
Copyright © 2017. All rights reserved.