Search in sources :

Example 1 with ProcessStdOutEventDto

use of org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessStdOutEventDto in project che by eclipse.

the class TestServiceClientTest method processStdOut.

private ProcessStdOutEventDto processStdOut(String text) {
    ProcessStdOutEventDto event = mock(ProcessStdOutEventDto.class);
    when(event.getText()).thenReturn(text);
    when(event.toString()).thenReturn("StdOut - " + text);
    return event;
}
Also used : ProcessStdOutEventDto(org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessStdOutEventDto)

Aggregations

ProcessStdOutEventDto (org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessStdOutEventDto)1