public static class Expect.ExpectationGatherer extends AbstractFailureStrategy
| Constructor and Description | 
|---|
ExpectationGatherer()  | 
ExpectationGatherer(boolean showStackTrace)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
fail(String message,
    Throwable cause)
Report an assertion failure with a text message and a throwable that indicates the cause of the
 failure. 
 | 
void | 
failComparing(String message,
             CharSequence expected,
             CharSequence actual,
             Throwable cause)
Convenience method to report string-comparison failures with more detail (e.g. 
 | 
List<com.google.common.truth.Expect.ExpectationFailure> | 
getMessages()  | 
String | 
toString()  | 
fail, failComparingpublic ExpectationGatherer()
public ExpectationGatherer(boolean showStackTrace)
public void failComparing(String message, CharSequence expected, CharSequence actual, Throwable cause)
FailureStrategyfailComparing in class AbstractFailureStrategypublic void fail(String message, Throwable cause)
FailureStrategyfail in class FailureStrategypublic List<com.google.common.truth.Expect.ExpectationFailure> getMessages()
Copyright © 2017. All rights reserved.