Search in sources :

Example 1 with TaskType

use of org.contextmapper.dsl.generator.sketchminer.model.TaskType in project context-mapper-dsl by ContextMapper.

the class TaskTest method canCreateNormalTask.

@Test
public void canCreateNormalTask() {
    // given
    String name = "MyTask";
    TaskType type = TaskType.COMMAND;
    // when
    Task task = new Task(name, type);
    // then
    assertEquals("MyTask", task.getName());
    assertEquals("MyTask", task.toString());
    assertEquals(TaskType.COMMAND, task.getType());
}
Also used : Task(org.contextmapper.dsl.generator.sketchminer.model.Task) TaskType(org.contextmapper.dsl.generator.sketchminer.model.TaskType) Test(org.junit.jupiter.api.Test)

Aggregations

Task (org.contextmapper.dsl.generator.sketchminer.model.Task)1 TaskType (org.contextmapper.dsl.generator.sketchminer.model.TaskType)1 Test (org.junit.jupiter.api.Test)1