Annotation Type Data


Use with ActiveObjectsJUnitRunner to specify schema initialization behavior.

The class specified by this annotation must implement DatabaseUpdater, and must have a no-args constructor. The test runner will instantiate this class and call its DatabaseUpdater.update(net.java.ao.EntityManager) method whenever the database is to be reinitialized (once at the beginning of each test class that uses a unique database configuration, and once after each test method that is marked with @NonTransactional). Normally the DatabaseUpdater.update(net.java.ao.EntityManager) method should just call EntityManager.migrate(Class...) with a list of entity classes; it can also add any data that should exist before running tests.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details