Class AwaitTestRule
Test rule helper to verify the database after test method execution with asynchronous functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()If the method is annotated with @Await, verify the database asynchronously.voidsetAwaitExecutor(AwaitExecutor awaitExecutor) Set await executor.Methods inherited from class AbstractTestRule
before, getAnnotation, getTestMethod
-
Constructor Details
-
AwaitTestRule
Constructor.- Parameters:
testMethod- Method on which the test rule is being applied
-
-
Method Details
-
after
public void after()If the method is annotated with @Await, verify the database asynchronously.- Overrides:
afterin classAbstractTestRule<Await>
-
setAwaitExecutor
Set await executor.- Parameters:
awaitExecutor- executor
-