/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/**
*
* @author austvik
*/
public class PerforceHistoryParserTest {
public PerforceHistoryParserTest() {
}
}
}
public void setUp() {
}
public void tearDown() {
}
/**
* Test of parseChanges method, of class PerforceHistoryParser.
*/
@Test
String output = "Change 1234 on 2008/10/13 11:30:00 by ADMIN@UserWorkspaceName 'Comment given to changelist within single qoutes, this is change one'\n" +
"Change 6543 on 2008/10/08 18:25:38 by USER@USER_WS 'Comment given to changelist within single qoutes'\n" +
"Change 7654 on 2008/09/30 01:00:01 by USER@USER_WS 'Comment given to changelist within single qoutes'\n" +
"Change 2345 on 2008/09/30 17:45:33 by ADMIN@Workspace2 'Comment given to changelist within single qoutes'\n";
// Bug #16660: Months used to be off by one. Verify that they match
// the dates in the sample output above.
}
/**
* Test of parseFileLog method, of class PerforceHistoryParser.
*/
@Test
"\n" +
"... #4 change 1234 edit on 2008/08/19 11:30:00 by User@UserWorkspaceName (text)\n" +
"\n" +
" Comment for the change number 4\n" +
"\n" +
"... #3 change 5678 edit on 2008/08/19 18:25:38 by ADMIN@UserWorkspaceName (text)\n" +
"\n" +
" Comment for the change\n" +
"\n" +
"... #2 change 8765 edit on 2008/08/01 01:00:01 by ADMIN@UserWorkspaceName (text)\n" +
"\n" +
" Comment for the change\n" +
"\n" +
"... #1 change 1 add on 2008/07/30 17:45:33 by ADMIN@UserWorkspaceName (text)\n" +
"\n" +
" Comment for the change";
// Bug #16660: Months used to be off by one. Verify that they match
// the dates in the sample output above.
}
/**
* Assert that the date of a history entry is as expected.
*
* @param entry the history entry to check
* @param year the expected year
* @param month the expected month (note: January is 0, not 1)
* @param day the expected day of the month
*/
private static void assertDate(
}
}