Package hudson.model

Examples of hudson.model.FreeStyleProject.renameTo()


            assertFalse(f.getOriginal().getName().equals(oldUpstreamName));
        }
        
        // Verify that usage entry in fingerprint record is changed after
        // sink project is renamed
        downstream.renameTo(renamedProject2);
        upstream.renameTo(renamedProject1);
        action = upstreamBuild.getAction(Fingerprinter.FingerprintAction.class);
        assertNotNull(action);
        fingerprints = action.getFingerprints().values();
        for (Fingerprint f: fingerprints) {
View Full Code Here


            assertBuildStatusSuccess(b);
            b.delete();
        }
       
        // Rename
        p2.renameTo("ProjectB-renamed");
        assertEquals("ProjectB-renamed", p2.getName());
       
        // assertRenamed
        assertEquals(
                p2.getName(),
View Full Code Here

            assertBuildStatusSuccess(b);
            b.delete();
        }
       
        // Rename
        p2.renameTo("ProjectB-renamed");
        assertEquals("ProjectB-renamed", p2.getName());
       
        // assertRenamed
        assertEquals(
                String.format("%s/%s", folder2.getName(), p2.getName()),
View Full Code Here

            assertBuildStatusSuccess(b);
            b.delete();
        }
       
        // Rename
        p2.renameTo("ProjectB-renamed");
        assertEquals("ProjectB-renamed", p2.getName());
       
        // assertRenamed
        assertEquals(
                String.format("../%s", p2.getName()),
View Full Code Here

    public void testProjectRename() throws Exception {
        QueueDecisionHandlerImpl h = QueueDecisionHandlerImpl.all().get(QueueDecisionHandlerImpl.class);

        FreeStyleProject project = DuplicatesUtil.createGerritTriggeredJob(j, "projectX");

        project.renameTo("anotherName");
        j.configRoundtrip((Item)project);

        assertEquals(0, h.countTrigger);

        PluginImpl p = PluginImpl.getInstance();
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.