Search in sources :

Example 11 with AbstractMigrationTask

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));
}
Also used : MigrationTask(com.mulesoft.tools.migration.task.MigrationTask) AbstractMigrationTask(com.mulesoft.tools.migration.task.AbstractMigrationTask) MunitMigrationTask(com.mulesoft.tools.migration.library.munit.tasks.MunitMigrationTask) AbstractMigrationTask(com.mulesoft.tools.migration.task.AbstractMigrationTask) PreprocessMuleApplication(com.mulesoft.tools.migration.library.mule.tasks.PreprocessMuleApplication) Test(org.junit.Test)

Aggregations

AbstractMigrationTask (com.mulesoft.tools.migration.task.AbstractMigrationTask)11 ArrayList (java.util.ArrayList)6 Lists.newArrayList (com.google.common.collect.Lists.newArrayList)4 MunitMigrationTask (com.mulesoft.tools.migration.library.munit.tasks.MunitMigrationTask)4 DbMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.DbMigrationTask)3 DomainAppMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.DomainAppMigrationTask)3 EndpointsMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.EndpointsMigrationTask)3 HTTPCleanupTask (com.mulesoft.tools.migration.library.mule.tasks.HTTPCleanupTask)3 HTTPMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.HTTPMigrationTask)3 JmsDomainMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.JmsDomainMigrationTask)3 JmsMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.JmsMigrationTask)3 MigrationCleanTask (com.mulesoft.tools.migration.library.mule.tasks.MigrationCleanTask)3 MuleCoreComponentsMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.MuleCoreComponentsMigrationTask)3 PostprocessGeneral (com.mulesoft.tools.migration.library.mule.tasks.PostprocessGeneral)3 PostprocessMuleApplication (com.mulesoft.tools.migration.library.mule.tasks.PostprocessMuleApplication)3 SecurityFiltersMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.SecurityFiltersMigrationTask)3 SpringMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.SpringMigrationTask)3 ApikitMigrationTask (com.mulesoft.tools.migration.library.apikit.tasks.ApikitMigrationTask)2 CompressionMigrationTask (com.mulesoft.tools.migration.library.mule.steps.compression.CompressionMigrationTask)2 AmqpMigrationTask (com.mulesoft.tools.migration.library.mule.tasks.AmqpMigrationTask)2