@Retention(value=RUNTIME) @Repeatable(value=FlywayTests.class) public @interface FlywayTest
org.flywaydb.core.Flyway#clean()org.flywaydb.core.Flyway#baseline()org.flywaydb.core.Flyway#migrate()org.flywaydb.test.junit.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
org.flywaydb.core.Flyway configuration property
org.flywaydb.core.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
org.flywaydb.core.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
org.flywaydb.core.Flyway#clean().
Default: truepublic abstract boolean invokeBaselineDB
org.flywaydb.core.Flyway configuration property
org.flywaydb.core.Flyway#baselineVersion.
It will invoke org.flywaydb.core.Flyway#baseline().
Default: falsepublic abstract boolean invokeMigrateDB
org.flywaydb.core.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
org.flywaydb.core.Flyway of the
application context are used.
If the name of the org.flywaydb.core.Flyway instance are not part of the application
context, the test will fail with org.springframework.beans.factory.NoSuchBeanDefinitionException.
Default: empty stringCopyright © 2020. All rights reserved.