Package org.testng.asserts
Interface IAssertLifecycle
-
- All Known Implementing Classes:
Assertion
,LoggingAssert
,SoftAssert
public interface IAssertLifecycle
Life cycle methods for the assertion class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeAssert(IAssert<?> assertCommand)
Run the assert command in parameter.void
onAfterAssert(IAssert<?> assertCommand)
Invoked after an assert is run.void
onAssertFailure(IAssert<?> assertCommand, java.lang.AssertionError ex)
Invoked when an assert fails.void
onAssertSuccess(IAssert<?> assertCommand)
Invoked when an assert succeeds.void
onBeforeAssert(IAssert<?> assertCommand)
Invoked before an assert is run.
-
-
-
Method Detail
-
executeAssert
void executeAssert(IAssert<?> assertCommand)
Run the assert command in parameter.- Parameters:
assertCommand
- The assertion
-
onAssertSuccess
void onAssertSuccess(IAssert<?> assertCommand)
Invoked when an assert succeeds.- Parameters:
assertCommand
- The assertion
-
onAssertFailure
void onAssertFailure(IAssert<?> assertCommand, java.lang.AssertionError ex)
Invoked when an assert fails.- Parameters:
assertCommand
- The assertionex
- The error
-
onBeforeAssert
void onBeforeAssert(IAssert<?> assertCommand)
Invoked before an assert is run.- Parameters:
assertCommand
- The assertion
-
onAfterAssert
void onAfterAssert(IAssert<?> assertCommand)
Invoked after an assert is run.- Parameters:
assertCommand
- The assertion
-
-