Package net.sourceforge.cruisecontrol

Examples of net.sourceforge.cruisecontrol.Modification


        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.fileName);
        assertEquals("Sfrolich", modification.userName);
        assertEquals("destroy", modification.type);
        Hashtable properties = vss.getProperties();
        String setThisValue = (String) properties.get("setThis");
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.fileName, "cruisecontrol.properties");
        assertEquals(mod.folderName, "$/AutoBuild/conf");
        assertEquals(mod.comment, "Comment: Making cc email users when build failed");
        assertEquals(mod.userName, "Etucker");
        assertEquals(mod.type, "checkin");               
View Full Code Here

        entry.add("$/WILD/Client/English");
        entry.add("Version: 15");
        entry.add("User: Ddavis          Date:  7/10/01  Time: 10:41a");
        entry.add("body3.htm renamed to step3.htm ");
       
        Modification mod = element.handleEntry(entry);
        assertEquals(mod.fileName, "body3.htm");
        assertEquals(mod.folderName, "$/WILD/Client/English");
        assertEquals(mod.comment, "");
        assertEquals(mod.userName, "Ddavis");
        assertEquals(mod.type, "delete");               
View Full Code Here

        entry.add("Version: 7");
        entry.add("User: Etucker         Date:  7/06/01  Time: 10:28a");
        entry.add("Labeled test_label");
        entry.add("Comment: Just testing to see what all gets put in the log file");
       
        Modification mod = element.handleEntry(entry);
       
        assertEquals("Label entry added. Labels shouldn't be added.",
                     null, mod);
    }
View Full Code Here

        assertEquals(0, modifications.size());
    }

    private void checkSingleModif(List modifications, String userName, Date expectedModifiedTime) {
        assertEquals(1, modifications.size());
        Modification modification = (Modification) modifications.get(0);
        assertEquals(userName, modification.userName);
        // assertEquals(expectedModifiedTime, modification.modifiedTime);
        // this one is redundant but it helps when debugging.
        assertEquals(expectedModifiedTime.getTime(), modification.modifiedTime.getTime());
    }
View Full Code Here

                + "</log>";

        Modification[] modifications = SVN.SVNLogXMLParser.parse(new StringReader(svnLog));
        assertEquals(5, modifications.length);

        Modification modification =
            createModification(
                SVN.SVN_DATE_FORMAT_OUT.parse("2003-04-30T10:01:42.349"),
                "lee",
                "bli",
                "663",
View Full Code Here

            new GregorianCalendar(2003, Calendar.JULY, 29, 18, 0, 0).getTime();

        List modifications = SVN.SVNLogXMLParser.parseAndFilter(new StringReader(svnLog), julyTwentynineSixPM2003);
        assertEquals(2, modifications.size());

        Modification modification =
            createModification(
                SVN.SVN_DATE_FORMAT_OUT.parse("2003-08-02T10:01:13.349"),
                "lee",
                "bli",
                "663",
View Full Code Here

        String comment,
        String revision,
        String folder,
        String file,
        String type) {
        Modification modification = new Modification("svn");
        Modification.ModifiedFile modifiedFile = modification.createModifiedFile(file, folder);
        modifiedFile.action = type;
        modifiedFile.revision = revision;

        modification.modifiedTime = date;
        modification.userName = user;
View Full Code Here

        mods = fsystem.getModifications(lastBuild, now);
        assertNotNull(mods);
        assertEquals(1, mods.size());

        //Using this one mod, check the modification information for correctness.
        Modification modification = (Modification) mods.get(0);
        assertEquals(tempFile.getName(), modification.fileName);
        assertEquals(getDirectory(tempFile).getPath(), modification.folderName);
        assertEquals(tempFile.lastModified(), modification.modifiedTime.getTime());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.Modification

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.