Examples of MigrationInfoService


Examples of org.flywaydb.core.api.MigrationInfoService

    private static final Log LOG = LogFactory.getLog(RepeatableFlywayInfoTest.class);

    @Test
    public void testInfo() {
        flyway.migrate();
        MigrationInfoService migrationInfo = flyway.info();
        MigrationInfo[] pending = migrationInfo.pending();
        Assert.assertTrue(pending.length == 2);
    }
View Full Code Here

Examples of org.flywaydb.core.api.MigrationInfoService

    @Test
    public void testAdvancedInfo() {
        int firstMigration = flyway.migrate();
        Assert.assertEquals(10, firstMigration);

        MigrationInfoService migrationInfo = flyway.info();
        //after an info, validation should still be ok!
        try {
            flyway.validate();
        } catch (FlywayException fe) {
            Assert.fail(fe.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.