Class AwaitTestRule

java.lang.Object
net.sf.lightair.internal.junit.AbstractTestRule<Await>
net.sf.lightair.internal.junit.AwaitTestRule

public class AwaitTestRule extends AbstractTestRule<Await>
Test rule helper to verify the database after test method execution with asynchronous functionality.
  • Constructor Details

    • AwaitTestRule

      public AwaitTestRule(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 @Await, verify the database asynchronously.
      Overrides:
      after in class AbstractTestRule<Await>
    • setAwaitExecutor

      public void setAwaitExecutor(AwaitExecutor awaitExecutor)
      Set await executor.
      Parameters:
      awaitExecutor - executor