Package net.sourceforge.cruisecontrol.sourcecontrols.accurev

Examples of net.sourceforge.cruisecontrol.sourcecontrols.accurev.Timespec


  }
  /**
   * 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());
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.sourcecontrols.accurev.Timespec

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.