public class ExpectedTestFailureWatcher
extends java.lang.Object
implements org.junit.rules.TestRule
Constructor and Description |
---|
ExpectedTestFailureWatcher() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
expectedExceptionMessageIs(java.lang.String message) |
void |
expectedExceptionTypeIs(java.lang.Class<? extends java.lang.Throwable> t) |
static ExpectedTestFailureWatcher |
instance()
Static factory to an instance of this watcher
|
void |
onlyMatchStartOfMessage() |
public static ExpectedTestFailureWatcher instance()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public void expectedExceptionTypeIs(java.lang.Class<? extends java.lang.Throwable> t)
public void expectedExceptionMessageIs(java.lang.String message)
public void onlyMatchStartOfMessage()