Class AwaitListTestRule

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

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

    • AwaitListTestRule

      public AwaitListTestRule(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.List>
    • setAwaitExecutor

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