use of org.eclipse.che.api.environment.server.exception.EnvironmentStartInterruptedException in project che by eclipse.
the class WorkspaceRuntimesTest method cancelsWorkspaceStartIfEnvironmentStartIsInterrupted.
@Test
public void cancelsWorkspaceStartIfEnvironmentStartIsInterrupted() throws Exception {
WorkspaceImpl workspace = newWorkspace("workspace", "env-name");
rejectEnvironmentStart(workspace, "env-name", new EnvironmentStartInterruptedException(workspace.getId(), "env-name"));
CompletableFuture<WorkspaceRuntimeImpl> cmpFuture = runtimes.startAsync(workspace, "env-name", false);
captureAndVerifyRuntimeStateAfterInterruption(workspace, cmpFuture);
}
Aggregations