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.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
ExpectFailure.AssertionCallback<B extends TestVerb>
Deprecated.
Implement
ExpectFailure.StandardSubjectBuilderCallback , which is identical except that
its parameter is a StandardSubjectBuilder , the new name of TestVerb . |
Modifier and Type | Class and Description |
---|---|
class |
Expect
A
TestRule that batches up all failures encountered during a test, and reports them all
together at the end. |
class |
StandardSubjectBuilder
In a fluent assertion chain, an object with which you can do any of the following:
Set an optional message with
StandardSubjectBuilder.withMessage(java.lang.String) . |
Modifier and Type | Method and Description |
---|---|
TestVerb |
TestVerb.withMessage(String messageToPrepend)
Deprecated.
|
TestVerb |
TestVerb.withMessage(String format,
Object... args)
Deprecated.
Returns a
TestVerb that will prepend the formatted message using the specified
arguments to the failure message in the event of a test failure. |
Copyright © 2017. All rights reserved.