Search in sources :

Example 36 with ProjectImpl

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

the class ProjectConverterTest method testCloningIntoProjectsRootFails.

@Test(expectedExceptions = DevfileException.class)
public void testCloningIntoProjectsRootFails() throws Exception {
    ProjectImpl devfileProject = new ProjectImpl("myProject", new SourceImpl("git", "https://github.com/eclipse/che.git", "master", null, null, null, null), "not/../in/root/../..");
    projectConverter.toWorkspaceProject(devfileProject);
}
Also used : ProjectImpl(org.eclipse.che.api.workspace.server.model.impl.devfile.ProjectImpl) SourceImpl(org.eclipse.che.api.workspace.server.model.impl.devfile.SourceImpl) Test(org.testng.annotations.Test)

Aggregations

ProjectImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.ProjectImpl)36 SourceImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.SourceImpl)30 Test (org.testng.annotations.Test)24 DevfileImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.DevfileImpl)16 ComponentImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.ComponentImpl)14 ProjectConfigImpl (org.eclipse.che.api.workspace.server.model.impl.ProjectConfigImpl)12 ActionImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.ActionImpl)12 EndpointImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.EndpointImpl)10 EntrypointImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.EntrypointImpl)10 EnvImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.EnvImpl)10 MetadataImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.MetadataImpl)10 UserDevfileImpl (org.eclipse.che.api.devfile.server.model.impl.UserDevfileImpl)8 CommandImpl (org.eclipse.che.api.workspace.server.model.impl.devfile.CommandImpl)8 CommandImpl (org.eclipse.che.api.workspace.server.model.impl.CommandImpl)6 SourceStorageImpl (org.eclipse.che.api.workspace.server.model.impl.SourceStorageImpl)6 VolumeImpl (org.eclipse.che.api.workspace.server.model.impl.VolumeImpl)4 WorkspaceConfigImpl (org.eclipse.che.api.workspace.server.model.impl.WorkspaceConfigImpl)4 AccountImpl (org.eclipse.che.account.spi.AccountImpl)2 Command (org.eclipse.che.api.core.model.workspace.devfile.Command)2 FileContentProvider (org.eclipse.che.api.workspace.server.devfile.FileContentProvider)2