Skip to content

Usage of Annotation FlywayTest

Florian edited this page Dec 28, 2017 · 6 revisions

Introduction

With the annotation you get the possibility to reset your database.
See also the source code FlywayTest or a usage example UsageFlywaySpringTest.

Features

  • invokeCleanDB
    execute flyway command clean.
    Default value is true

  • invokeBaselineDB
    execute flyway command baseline.
    Default value is false

  • invokeMigrateDB
    execute flyway command migrate.
    Default value is true

  • locationForMigrate
    extend the default directory with the list of directories.

  • overrideLocations
    if it is set to true the content of locationsForMigrate will complete replace the search path for migration files.
    Default value is false