Class ResettableExpectedExceptionRule
java.lang.Object
com.atlassian.bamboo.testutils.junit.rule.ResettableExpectedExceptionRule
- All Implemented Interfaces:
org.junit.rules.TestRule
A wrapper around
ExpectedException rule which allows state reset. Necessary for some tests due to the
stateful nature of the RepeatRule.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) voidvoidexpectMessage(String substring) voidexpectMessage(org.hamcrest.Matcher<String> matcher) voidreset()
-
Constructor Details
-
ResettableExpectedExceptionRule
public ResettableExpectedExceptionRule()
-
-
Method Details
-
reset
public void reset() -
expect
-
expectMessage
-
expectMessage
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-