}
/**
* Checks the command line is built as expected
*/
public void testCommandLineBuild() {
Timespec d1 = new DateTimespec(-24);
Timespec d2 = new DateTimespec(0);
AccurevCommandline cmdKeep = AccurevCommand.KEEP.create();
cmdKeep.selectModified();
cmdKeep.setTransactionRange(d1, d2);
cmdKeep.setComment("Automatic keep");
assertEquals("accurev keep -m -t \"" + d1.toString() + "-" + d2.toString() + "\" -c \"Automatic keep\"",
cmdKeep.toString());
AccurevCommandline cmdHist = AccurevCommand.HIST.create();
cmdHist.setTransactionRange(d1, d2);
assertEquals("accurev hist -t \"" + d1.toString() + "-" + d2.toString() + "\"", cmdHist.toString());
Commandline cmdUpdate = AccurevCommand.UPDATE.create();
assertEquals("accurev update", cmdUpdate.toString());
Commandline cmdSynctime = AccurevCommand.SYNCTIME.create();
assertEquals("accurev synctime", cmdSynctime.toString());
}