Search in sources :

Example 1 with Version3dot5

use of org.flywaydb.core.internal.resolver.spring.dummy.Version3dot5 in project flyway by flyway.

the class SpringJdbcMigrationResolverSmallTest method explicitInfo.

@Test
public void explicitInfo() {
    SpringJdbcMigrationResolver springJdbcMigrationResolver = new SpringJdbcMigrationResolver(scanner, null, null);
    ResolvedMigration migrationInfo = springJdbcMigrationResolver.extractMigrationInfo(new Version3dot5());
    assertEquals("3.5", migrationInfo.getVersion().toString());
    assertEquals("Three Dot Five", migrationInfo.getDescription());
    assertEquals(35, migrationInfo.getChecksum().intValue());
}
Also used : ResolvedMigration(org.flywaydb.core.api.resolver.ResolvedMigration) Version3dot5(org.flywaydb.core.internal.resolver.spring.dummy.Version3dot5) Test(org.junit.Test)

Aggregations

ResolvedMigration (org.flywaydb.core.api.resolver.ResolvedMigration)1 Version3dot5 (org.flywaydb.core.internal.resolver.spring.dummy.Version3dot5)1 Test (org.junit.Test)1