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;
}
Aggregations