Annotation Interface Await


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface Await
Verifies the database after an asynchronous test. Verifies the database repeatedly until either the result is successful or timeout has expired.

Annotate a test method with @Await to verify database after the asynchronous test method executed. Annotate the whole test class to have all its test methods verify the database asynchronously. For example:

@Test @Await
public void myTestMethod {
}

The datasets to be verified are located in exactly the same manner as when using the @Verify annotation and must conform to exactly the same format.

Use @Await.List to define multiple @Await annotations on the same element.

See http://lightair.sourceforge.net/features/await.html for more info.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Defines several @Await annotations on the same element.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of the profile.
    Names of files with datasets.
  • Element Details

    • value

      String[] value
      Names of files with datasets.
      Returns:
      datasets
      Default:
      {}
    • profile

      String profile
      Name of the profile.

      A profile lets you connect to a different database. A profile must be defined in the LightAir properties file and must have its own properties file which defines the connection to the profile database.

      Returns:
      profile
      Default:
      ""