Search in sources :

Example 1 with ProcessStdErrEventDto

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

the class TestServiceClientTest method processStdErr.

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

Aggregations

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