blob: 095b0ee5b0bc97fff3b9f0d56510a147ad25562a [file] [log] [blame]
package org.testng.asserts;
/**
* Life cycle methods for the assertion class.
*/
public interface IAssertLifecycle {
/**
* Run the assert command in parameter.
*/
void executeAssert(IAssert<?> assertCommand);
/**
* Invoked when an assert succeeds.
*/
void onAssertSuccess(IAssert<?> assertCommand);
/**
* Invoked when an assert fails.
*
* @deprecated use onAssertFailure(IAssert assertCommand, AssertionError ex) instead of.
*/
void onAssertFailure(IAssert<?> assertCommand);
/**
* Invoked when an assert fails.
*
*/
void onAssertFailure(IAssert<?> assertCommand, AssertionError ex);
/**
* Invoked before an assert is run.
*/
void onBeforeAssert(IAssert<?> assertCommand);
/**
* Invoked after an assert is run.
*/
void onAfterAssert(IAssert<?> assertCommand);
}