hist = AccurevCommand.HIST.create(getMockRunner());
hist.setTransactionRange(DateTimespec.NOW, TransactionNumberTimespec.HIGHEST);
hist.run();
assertTrue(hist.isSuccess());
hist = AccurevCommand.HIST.create(getMockRunner());
hist.setTransactionRange(new TransactionNumberTimespec(0), DateTimespec.NOW);
hist.run();
assertFalse(hist.isSuccess());
hist = AccurevCommand.HIST.create(getMockRunner());
hist.setTransactionRange(new TransactionNumberTimespec(0));
hist.run();
assertFalse(hist.isSuccess());
hist = AccurevCommand.HIST.create(getMockRunner());
hist.setTransactionRange(TransactionNumberTimespec.HIGHEST);
hist.run();
assertTrue(hist.isSuccess());
hist = AccurevCommand.HIST.create(getMockRunner());
hist.setTransactionRange(new TransactionNumberTimespec(1), DateTimespec.NOW);
hist.run();
assertTrue(hist.isSuccess());
try {
AccurevCommand.HIST.create().setWorkspaceLocalPath("ThisDirectoryIsNotSupposedToExist");
fail("setWorkspace should throw an exception when the workspace is not valid");