@Test(expected = SanskritException.class) public void oneHashNoRecord() throws Exception { HashChecker checker = new HashChecker("f", null); checker.done(); }
public String done() throws SanskritException { if (!hashes.isEmpty()) { throw new SanskritException("Hash existed but no matching record: " + hashes); } if (hashCount == 2) { LOGGER.trace("done(): {}", removedFirst); return removedFirst; } LOGGER.trace("done(): <none>"); return null; }
HashChecker { public String done() throws SanskritException { if (!hashes.isEmpty()) { throw new SanskritException("Hash existed but no matching record: " + hashes); } if (hashCount == 2) { LOGGER.trace("done(): {}", removedFirst); return removedFirst; } LOGGER.trace("done(): <none>"); return null; } }
HashChecker { public String done() throws SanskritException { if (!hashes.isEmpty()) { throw new SanskritException("Hash existed but no matching record: " + hashes); } if (hashCount == 2) { LOGGER.trace("done(): {}", removedFirst); return removedFirst; } LOGGER.trace("done(): <none>"); return null; } HashChecker(String hash0, String hash1); }
HashChecker { public String done() throws SanskritException { if (!hashes.isEmpty()) { throw new SanskritException("Hash existed but no matching record: " + hashes); } if (hashCount == 2) { LOGGER.trace("done(): {}", removedFirst); return removedFirst; } LOGGER.trace("done(): <none>"); return null; } HashChecker(String hash0, String hash1); boolean check(String hash); String done(); String nextHashFile(); }
HashChecker { public String done() throws SanskritException { if (!hashes.isEmpty()) { throw new SanskritException("Hash existed but no matching record: " + hashes); } if (hashCount == 2) { LOGGER.trace("done(): {}", removedFirst); return removedFirst; } LOGGER.trace("done(): <none>"); return null; } HashChecker(String hash0, String hash1); boolean check(String hash); String done(); String nextHashFile();  }