Class VerifyTestRule

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

public class VerifyTestRule extends AbstractTestRule<Verify>
Test rule helper to verify the database after test method execution.
  • Constructor Details

    • VerifyTestRule

      public VerifyTestRule(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>
    • setVerifyExecutor

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