assertEquals("Should have returned 5 modifications.",
5,
modifications.size());
Modification mod1 = new Modification("cvs");
Modification.ModifiedFile mod1file = mod1.createModifiedFile("log4j.properties", null);
mod1file.action = "modified";
mod1.revision = "1.2";
mod1.modifiedTime = parseLogDateFormat("2002/03/13 13:45:50 GMT-6:00");
mod1.userName = "alden";
mod1.comment =
"Shortening ConversionPattern so we don't use up all of the available screen space.";
mod1.emailAddress = "alden@users.sourceforge.net";
Modification mod2 = new Modification("cvs");
Modification.ModifiedFile mod2file = mod2.createModifiedFile("build.xml", null);
mod2file.action = "modified";
mod2.revision = "1.41";
mod2.modifiedTime = parseLogDateFormat("2002/03/13 19:56:34 GMT-6:00");
mod2.userName = "alden";
mod2.comment = "Added target to clean up test results.";
mod2.emailAddress = "alden@users.sourceforge.net";
Modification mod3 = new Modification("cvs");
Modification.ModifiedFile mod3file = mod3.createModifiedFile("build.xml", "main");
mod3file.action = "modified";
mod3.revision = "1.42";
mod3.modifiedTime = parseLogDateFormat("2002/03/15 13:20:28 GMT-6:00");
mod3.userName = "alden";
mod3.comment = "enabled debug info when compiling tests.";
mod3.emailAddress = "alden@users.sourceforge.net";
Modification mod4 = new Modification("cvs");
Modification.ModifiedFile mod4file = mod4.createModifiedFile("kungfu.xml", "main");
mod4file.action = "deleted";
mod4.revision = "1.2";
mod4.modifiedTime = parseLogDateFormat("2002/03/13 13:45:42 GMT-6:00");
mod4.userName = "alden";
mod4.comment = "Hey, look, a deleted file.";
mod4.emailAddress = "alden@users.sourceforge.net";
Modification mod5 = new Modification("cvs");
Modification.ModifiedFile mod5file = mod5.createModifiedFile("stuff.xml", "main");
mod5file.action = "deleted";
mod5.revision = "1.4";
mod5.modifiedTime = parseLogDateFormat("2002/03/13 13:38:42 GMT-6:00");
mod5.userName = "alden";
mod5.comment = "Hey, look, another deleted file.";