Interface AssertAction
- All Known Subinterfaces:
AssertConsumer<T>
- All Known Implementing Classes:
AssertConsumeCount
,AssertConsumeExactly
,AssertConsumeNone
,AssertConsumeOnly
public interface AssertAction
Interface for classes that are used to test methods that accept actions (i.e. suppliers, consumers, etc.).
- Since:
- 1.0
- Author:
- evanbergstrom
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
An assertion method that is called after a method had used the action and returned.
-
Method Details
-
assertCheck
default void assertCheck()An assertion method that is called after a method had used the action and returned. This is used to test assertions on the aggregate effect of calling an action multiple times during the execution of a method.- Throws:
org.opentest4j.AssertionFailedError
- if the assertion fails.
-