use of org.mamute.migration.MigrationRunner in project mamute by caelum.
the class MigrationRunnerTest method setup.
@Before
public void setup() throws IOException {
executor = mock(MigrationExecutor.class);
m1 = mock(SchemaMigration.class);
m2 = mock(SchemaMigration.class);
extractor = mock(NumberExtractor.class);
when(extractor.from(m1)).thenReturn(1);
when(extractor.from(m2)).thenReturn(2);
runner = new MigrationRunner(asList(m1, m2), extractor, executor, new DefaultEnvironment(PRODUCTION));
}
Aggregations