package ch.inftec.flyway.core;
import org.flywaydb.core.api.MigrationInfo;
import org.flywaydb.core.api.MigrationInfoService;
import org.flywaydb.core.internal.util.logging.Log;
import org.flywaydb.core.internal.util.logging.LogFactory;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by rotscher on 4/30/14.
*/
public class RepeatableFlywayInfoTest extends AbstractRepeatableFlywayTest {
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);
}
}