Class VerifyListTestRule

java.lang.Object
net.sf.lightair.internal.junit.AbstractTestRule<Verify.List>
net.sf.lightair.internal.junit.VerifyListTestRule

public class VerifyListTestRule extends AbstractTestRule<Verify.List>
Test rule helper to verify the database with multiple @Verify annotations after test method execution.
  • Constructor Details

    • VerifyListTestRule

      public VerifyListTestRule(Method testMethod)
      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:
      after in class AbstractTestRule<Verify.List>
    • setVerifyExecutor

      public void setVerifyExecutor(VerifyExecutor verifyExecutor)
      Set the verify executor.
      Parameters:
      verifyExecutor - executor