Search in sources :

Example 1 with EBAddTasks

use of io.spine.test.event.command.EBAddTasks in project core-java by SpineEventEngine.

the class EventBusTestEnv method addTasks.

public static EBAddTasks addTasks(Task... tasks) {
    final EBAddTasks.Builder builder = ((EBAddTasks.Builder) Sample.builderForType(EBAddTasks.class)).setProjectId(PROJECT_ID).clearTask();
    for (Task task : tasks) {
        builder.addTask(task);
    }
    final EBAddTasks command = builder.build();
    return command;
}
Also used : Task(io.spine.test.event.Task) EBAddTasks(io.spine.test.event.command.EBAddTasks)

Aggregations

Task (io.spine.test.event.Task)1 EBAddTasks (io.spine.test.event.command.EBAddTasks)1