@Retention(value=RUNTIME) @Repeatable(value=FlywayTests.class) public @interface FlywayTest
Flyway.clean()Flyway.baseline()Flyway.migrate()FlywayTestExecutionListener.| Modifier and Type | Optional Element and Description |
|---|---|
String |
flywayName
Reference the flyway bean name.
|
boolean |
invokeBaselineDB
invoke flyway command baseline before a migrate call
Baseline will create the schema_version table with a initialization entry
depending on
Flyway configuration property
Flyway.baselineVersion. |
boolean |
invokeCleanDB
invoke flyway command clean before a init/migrate call.
|
boolean |
invokeMigrateDB
invoke flyway command migrate
If set to true it will invoke
Flyway.migrate(). |
String[] |
locationsForMigrate
Support to add locations to the default location settings.
|
boolean |
overrideLocations
With this attribute the handling of the locationsForMigrate can be changed.
|
public abstract boolean invokeCleanDB
Flyway.clean().
Default: truepublic abstract boolean invokeBaselineDB
Flyway configuration property
Flyway.baselineVersion.
It will invoke Flyway.baseline().
Default: falsepublic abstract boolean invokeMigrateDB
Flyway.migrate().
Default: truepublic abstract String[] locationsForMigrate
overrideLocations() returns true the complete locations will
be changed.
Default: empty list public abstract boolean overrideLocations
public abstract String flywayName
Flyway of the
application context are used.
If the name of the Flyway instance are not part of the application
context, the test will fail with org.springframework.beans.factory.NoSuchBeanDefinitionException.
Default: empty stringCopyright © 2017. All rights reserved.