public void test_emptyJournal() throws IOException, InterruptedException, ExecutionException {
  final File out=File.createTempFile(getName(),Options.JNL);
  try {
    final Journal src=getStore(getProperties());
    try {
      try {
        final Future<Journal> f=src.compact(out);
        final Journal newJournal=f.get();
        try {
          newJournal.destroy();
        }
  finally {
          fail("Expecting " + IllegalArgumentException.class);
        }
      }
 catch (      IllegalArgumentException ex) {
        log.info("Ignoring expected exception: " + ex);
      }
    }
  finally {
      src.destroy();
    }
  }
  finally {
    out.delete();
  }
}

public void test_emptyJournal ( ) throws IOException , InterruptedException , ExecutionException { final File out = File . createTempFile ( getName ( ) , Options . JNL ) ; try { final Journal src = getStore ( getProperties ( ) ) ; try { try { final Future < Journal > f = src . compact ( out ) ; final Journal newJournal = f . get ( ) ; try { newJournal . destroy ( ) ; } finally { fail ( "Expecting " + IllegalArgumentException . class ) ; } } catch ( IllegalArgumentException ex ) { log . info ( "Ignoring expected exception: " + ex ) ; } } finally { src . destroy ( ) ; } } finally { out . delete ( ) ; } }
verifies exception if there are no commits on the journal ( the lastcommittime will be zero which does not identify a valid commit point ) .
