Examples of copyProject()


Examples of org.eclipse.ui.actions.CopyProjectOperation.copyProject()

        if (resourceData != null && resourceData.length > 0) {
            if (resourceData[0].getType() == IResource.PROJECT) {
                // enablement checks for all projects
                for (int i = 0; i < resourceData.length; i++) {
                    CopyProjectOperation operation = new CopyProjectOperation(this.shell);
                    operation.copyProject((IProject) resourceData[i]);
                }
            } else {
                // enablement should ensure that we always have access to a container
                IContainer container = getContainer();
View Full Code Here

Examples of org.hudsonci.service.ProjectService.copyProject()

        // make method succeed
        doReturn(false).when(inst).projectExists("toProject");
        when(hudson.copy(project, "toProject")).thenReturn(toProject);

        // test
        inst.copyProject(project, "toProject");

        // verify
        Mockito.verify(securityService).checkPermission(Item.CREATE);
        Mockito.verify(securityService).checkPermission(project, Item.EXTENDED_READ);
View Full Code Here

Examples of org.hudsonci.service.ProjectService.copyProject()

    @Test(expected = SystemIntegrityViolationException.class)
    public void copyProjectToProjectAlreadyExists() throws IOException {
        ProjectService inst = spy(getInst());
        doReturn(true).when(inst).projectExists("toProject");
        inst.copyProject(project, "toProject");
    }

    @Test(expected = ServiceRuntimeException.class)
    public void copyProjectIOException() throws IOException {
View Full Code Here

Examples of org.hudsonci.service.ProjectService.copyProject()

        // make method succeed
        doReturn(false).when(inst).projectExists("toProject");
        when(hudson.copy(project, "toProject")).thenThrow(new IOException());

        // test
        inst.copyProject(project, "toProject");

    }

    // createProjectfromXml ------
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.