Search in sources :

Example 26 with RuntimeImpl

use of org.eclipse.che.api.workspace.server.model.impl.RuntimeImpl in project devspaces-images by redhat-developer.

the class PreviewUrlLinksVariableGeneratorTest method createWorkspaceWithCommands.

private WorkspaceImpl createWorkspaceWithCommands(List<CommandImpl> commands) {
    RuntimeImpl runtime = new RuntimeImpl("", Collections.emptyMap(), "", commands, new ArrayList<>());
    WorkspaceImpl w = new WorkspaceImpl();
    w.setRuntime(runtime);
    return w;
}
Also used : WorkspaceImpl(org.eclipse.che.api.workspace.server.model.impl.WorkspaceImpl) RuntimeImpl(org.eclipse.che.api.workspace.server.model.impl.RuntimeImpl)

Aggregations

RuntimeImpl (org.eclipse.che.api.workspace.server.model.impl.RuntimeImpl)26 WorkspaceImpl (org.eclipse.che.api.workspace.server.model.impl.WorkspaceImpl)22 MachineImpl (org.eclipse.che.api.workspace.server.model.impl.MachineImpl)18 Test (org.testng.annotations.Test)18 Response (io.restassured.response.Response)14 WorkspaceDto (org.eclipse.che.api.workspace.shared.dto.WorkspaceDto)14 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)14 Machine (org.eclipse.che.api.core.model.workspace.runtime.Machine)12 Server (org.eclipse.che.api.core.model.workspace.runtime.Server)10 ServerImpl (org.eclipse.che.api.workspace.server.model.impl.ServerImpl)10 MachineDto (org.eclipse.che.api.workspace.shared.dto.MachineDto)10 RuntimeDto (org.eclipse.che.api.workspace.shared.dto.RuntimeDto)10 HashMap (java.util.HashMap)6 ArrayList (java.util.ArrayList)2 WorkspaceConfig (org.eclipse.che.api.core.model.workspace.WorkspaceConfig)2 EnvironmentImpl (org.eclipse.che.api.workspace.server.model.impl.EnvironmentImpl)2 MachineConfigImpl (org.eclipse.che.api.workspace.server.model.impl.MachineConfigImpl)2 WarningImpl (org.eclipse.che.api.workspace.server.model.impl.WarningImpl)2