Package org.testng.asserts
Interface IAssertLifecycle
-
- All Known Implementing Classes:
Assertion,LoggingAssert,SoftAssert
public interface IAssertLifecycleLife cycle methods for the assertion class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidexecuteAssert(IAssert<?> assertCommand)Run the assert command in parameter.voidonAfterAssert(IAssert<?> assertCommand)Invoked after an assert is run.voidonAssertFailure(IAssert<?> assertCommand)Deprecated.use onAssertFailure(IAssert assertCommand, AssertionError ex) instead of.voidonAssertFailure(IAssert<?> assertCommand, java.lang.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 Detail
-
executeAssert
void executeAssert(IAssert<?> assertCommand)
Run the assert command in parameter.
-
onAssertSuccess
void onAssertSuccess(IAssert<?> assertCommand)
Invoked when an assert succeeds.
-
onAssertFailure
void onAssertFailure(IAssert<?> assertCommand)
Deprecated.use onAssertFailure(IAssert assertCommand, AssertionError ex) instead of.Invoked when an assert fails.
-
onAssertFailure
void onAssertFailure(IAssert<?> assertCommand, java.lang.AssertionError ex)
Invoked when an assert fails.
-
onBeforeAssert
void onBeforeAssert(IAssert<?> assertCommand)
Invoked before an assert is run.
-
onAfterAssert
void onAfterAssert(IAssert<?> assertCommand)
Invoked after an assert is run.
-
-