Class VerifyTestRule
java.lang.Object
net.sf.lightair.internal.junit.AbstractTestRule<Verify>
net.sf.lightair.internal.junit.VerifyTestRule
Test rule helper to verify the database after test method execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()If the method is annotated with @Verify, verify the database.voidsetVerifyExecutor(VerifyExecutor verifyExecutor) Set the verify executor.Methods inherited from class AbstractTestRule
before, getAnnotation, getTestMethod
-
Constructor Details
-
VerifyTestRule
Constructor.- Parameters:
testMethod- Method on which the test rule is being applied
-
-
Method Details
-
after
public void after()If the method is annotated with @Verify, verify the database.- Overrides:
afterin classAbstractTestRule<Verify>
-
setVerifyExecutor
Set the verify executor.- Parameters:
verifyExecutor- executor
-