Class AwaitListTestRule
java.lang.Object
net.sf.lightair.internal.junit.AbstractTestRule<Await.List>
net.sf.lightair.internal.junit.AwaitListTestRule
Test rule helper to verify the database with multiple
@Await
annotations 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
-
AwaitListTestRule
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.List>
-
setAwaitExecutor
Set await executor.- Parameters:
awaitExecutor- executor
-