Interface IAssertLifecycle
- All Known Implementing Classes:
Assertion, LoggingAssert, SoftAssert
public interface IAssertLifecycle
Life cycle methods for the assertion class.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAssert(IAssert<?> assertCommand) Run the assert command in parameter.voidonAfterAssert(IAssert<?> assertCommand) Invoked after an assert is run.voidonAssertFailure(IAssert<?> assertCommand, AssertionError ex) Invoked when an assert fails.voidonAssertSuccess(IAssert<?> assertCommand) Invoked when an assert succeeds.voidonBeforeAssert(IAssert<?> assertCommand) Invoked before an assert is run.
-
Method Details
-
executeAssert
Run the assert command in parameter.- Parameters:
assertCommand- The assertion
-
onAssertSuccess
Invoked when an assert succeeds.- Parameters:
assertCommand- The assertion
-
onAssertFailure
Invoked when an assert fails.- Parameters:
assertCommand- The assertionex- The error
-
onBeforeAssert
Invoked before an assert is run.- Parameters:
assertCommand- The assertion
-
onAfterAssert
Invoked after an assert is run.- Parameters:
assertCommand- The assertion
-