public class RepeatUntilExpectedExceptionRule extends Object implements org.junit.rules.TestRule
| Constructor and Description |
|---|
RepeatUntilExpectedExceptionRule() |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
void |
expect(Class<? extends Throwable> type) |
void |
expect(org.hamcrest.Matcher<?> matcher) |
void |
expectMessage(org.hamcrest.Matcher<String> matcher) |
void |
expectMessage(String substring) |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic void expectMessage(org.hamcrest.Matcher<String> matcher)
public void expect(org.hamcrest.Matcher<?> matcher)
public void expectMessage(String substring)
Copyright © 2013–2016. All rights reserved.