use of com.mulesoft.tools.migration.task.AbstractMigrationTask in project mule-migration-assistant by mulesoft.
the class MigrationTaskLocatorTest method locate.
@Test
public void locate() {
MigrationTaskLocator migrationTaskLocator = new MigrationTaskLocator(from, to);
List<AbstractMigrationTask> migrationTaskList = migrationTaskLocator.locate();
assertThat("The number of migration task is wrong", migrationTaskList.size(), greaterThan(0));
MigrationTask migrationTask = migrationTaskList.get(0);
assertThat("The migration task type is wrong", migrationTask, instanceOf(PreprocessMuleApplication.class));
assertThat("The migration task from is wrong", isVersionGreaterOrEquals(migrationTask.getFrom(), from), is(true));
assertThat("The migration task to is wrong", isVersionGreaterOrEquals(to, migrationTask.getTo()), is(true));
assertThat("The migration task project type is wrong", migrationTask.getProjectType(), is(projectType));
}
Aggregations