Package org.flywaydb.core.api

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


    @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

Related Classes of org.flywaydb.core.api.MigrationInfoService

Copyright © 2018 www.massapicom. 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.