Search in sources :

Example 1 with FlywayConfigurationForTests

use of org.flywaydb.core.internal.resolver.FlywayConfigurationForTests in project flyway by flyway.

the class SqlMigrationResolverSmallTest method resolveMigrationsRoot.

@Test
public void resolveMigrationsRoot() {
    FlywayConfigurationForTests configuration = FlywayConfigurationForTests.createWithPrefix("CheckValidate");
    configuration.setRepeatableSqlMigrationPrefix("X");
    SqlMigrationResolver sqlMigrationResolver = new SqlMigrationResolver(null, scanner, new Location(""), PlaceholderReplacer.NO_PLACEHOLDERS, configuration);
    // changed to 3 as new test cases are added for SybaseASE and DB2
    assertEquals(3, sqlMigrationResolver.resolveMigrations().size());
}
Also used : FlywayConfigurationForTests(org.flywaydb.core.internal.resolver.FlywayConfigurationForTests) Location(org.flywaydb.core.internal.util.Location) Test(org.junit.Test)

Aggregations

FlywayConfigurationForTests (org.flywaydb.core.internal.resolver.FlywayConfigurationForTests)1 Location (org.flywaydb.core.internal.util.Location)1 Test (org.junit.Test)1