org.mockito.internal.verification
public class Description extends Object implements VerificationMode
Constructor and Description |
---|
Description(VerificationMode verification,
String description)
Constructs a verification mode which wraps the given verification mode.
|
Modifier and Type | Method and Description |
---|---|
VerificationMode |
description(String description)
Description will be prepended to the assertion error if verification fails.
|
void |
verify(VerificationData data)
Performs verification using the wrapped verification mode implementation.
|
public Description(VerificationMode verification, String description)
verification
- The implementation to use for verificationdescription
- The failure message to prepend if verification failspublic void verify(VerificationData data)
verify
in interface VerificationMode
data
- public VerificationMode description(String description)
VerificationMode
description
in interface VerificationMode
description
- The custom failure message