Package net.sourceforge.cruisecontrol

Examples of net.sourceforge.cruisecontrol.Modification$ModifiedFile


        entry.add("Version 10");
        entry.add("User: Etucker      Date:  7/03/01   Time:  3:24p");
        entry.add("Checked in $/Eclipse/src/main/com/itxc/eclipse/some/path/here");
        entry.add("Comment: updated country codes for Colombia and Slovokia");

        Modification mod = vss.handleEntry(entry);
        assertEquals(mod.getFileName(), "ttyp_direct.properties");
        assertEquals(mod.getFolderName(), "/Eclipse/src/main/com/itxc/eclipse/some/path/here");
        assertEquals(mod.comment, "Comment: updated country codes for Colombia and Slovokia");
        assertEquals(mod.userName, "Etucker");

        Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0);
        assertEquals(modfile.action, "checkin");
View Full Code Here


        entry.add("*****  a  *****");
        entry.add("Version 19");
        entry.add("User: Etucker      Date:  7/03/01   Time: 11:16a");
        entry.add("$/Users/jfredrick/test1/b/move.file.2 shared");

        Modification mod = vss.handleEntry(entry);
        assertEquals(mod.getFileName(), "$/Users/jfredrick/test1/b/move.file.2");
        assertEquals(mod.userName, "Etucker");
        assertEquals(mod.getFolderName(), "$\\vsspath\\a");

        Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0);
        assertEquals(modfile.action, "share");
    }
View Full Code Here

        entry.add("*****  core  *****");
        entry.add("Version 19");
        entry.add("User: Etucker      Date:  7/03/01   Time: 11:16a");
        entry.add("SessionIdGenerator.java branched");

        Modification mod = vss.handleEntry(entry);
        assertEquals(mod.getFileName(), "SessionIdGenerator.java");
        assertEquals(mod.userName, "Etucker");
        assertEquals(mod.getFolderName(), "$\\vsspath\\core");
        assertEquals(mod.type, "vss");

        Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0);
        assertEquals(modfile.action, "branch");
    }
View Full Code Here

         entry.add("*****  branch.file.1  *****");
         entry.add("Version 19");
         entry.add("User: Etucker      Date:  7/03/01   Time: 11:16a");
         entry.add("Branched");

         Modification mod = vss.handleEntry(entry);
         assertNull(mod);

     }
View Full Code Here

        entry.add("*****  core  *****");
        entry.add("Version 19");
        entry.add("User: Etucker      Date:  7/03/01   Time: 11:16a");
        entry.add("SessionIdGenerator.java added");

        Modification mod = vss.handleEntry(entry);
        assertEquals(mod.getFileName(), "SessionIdGenerator.java");
        assertEquals(mod.userName, "Etucker");
        assertEquals(mod.getFolderName(), "$\\vsspath\\core");

        Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0);
        assertEquals(modfile.action, "add");
    }
View Full Code Here

           vss.setVsspath("\\vsspath");
           entry.add("*****************  Version 19  *****************");
           entry.add("User: MStave      Date:  7/03/01   Time: 11:16a");
           entry.add("SessionIdGenerator.java added");

           Modification mod = vss.handleEntry(entry);
           assertEquals(mod.getFileName(), "SessionIdGenerator.java");
           assertEquals(mod.userName, "MStave");
           assertEquals(mod.getFolderName(), "$\\vsspath");

           Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0);
           assertEquals(modfile.action, "add");
       }
View Full Code Here

            entry.add("*****  core  *****");
            entry.add("Version 19");
            entry.add("User: Etucker      Date:  7/03/01   Time: 11:16a");
            entry.add("SessionIdGenerator.java renamed to SessionId.java");

            Modification modification = vss.handleEntry(entry);
            assertEquals(
                "SessionIdGenerator.java renamed to SessionId.java",
                modification.getFileName());
            assertEquals("Etucker", modification.userName);

            Modification.ModifiedFile modfile = (Modification.ModifiedFile) modification.files.get(0);
            assertEquals("rename", modfile.action);

View Full Code Here

        entry.add("*****  installer_vms  *****");
        entry.add("Version 42");
        entry.add("User: Sfrolich      Date:  11/19/02   Time: 1:40p");
        entry.add("IBMJDK130AIX_with_xerces.jar.vm destroyed");

        Modification modification = vss.handleEntry(entry);
        assertEquals("IBMJDK130AIX_with_xerces.jar.vm", modification.getFileName());
        assertEquals("Sfrolich", modification.userName);

        Modification.ModifiedFile modfile = (Modification.ModifiedFile) modification.files.get(0);
        assertEquals("destroy", modfile.action);

View Full Code Here

        entry.add("Label: \"KonaBuild_452\"");
        entry.add("User: Cm           Date:  4/29/03   Time: 12:03a");
        entry.add("Labeled");
        entry.add("Label comment: AutoBuild KonaBuild_452");

        Modification modification = vss.handleEntry(entry);
        assertNull(modification);
       
        // Labeled root directory
        entry = new ArrayList();
        entry.add("*****************  Version 222  *****************");
 
View Full Code Here

        entry.add("Version: 5");
        entry.add("User: Etucker         Date:  7/06/01  Time:  2:11p");
        entry.add("Checked in");
        entry.add("Comment: Making cc email users when build failed");
       
        Modification mod = element.handleEntry(entry);
        assertEquals(mod.getFileName(), "cruisecontrol.properties");
        assertEquals(mod.getFolderName(), "$/AutoBuild/conf");
        assertEquals(mod.comment, "Comment: Making cc email users when build failed");
        assertEquals(mod.userName, "Etucker");
        assertEquals(mod.type, "vss");

        Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0);
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.Modification$ModifiedFile

Copyright © 2018 www.massapicom. 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.