@Test public void emptyIndex() throws Exception{ IndexConsistencyChecker checker = new IndexConsistencyChecker(EMPTY_NODE, "/foo", temporaryFolder.getRoot()); Result result = checker.check(Level.BLOBS_ONLY); assertFalse(result.clean); assertTrue(result.typeMismatch); assertEquals(result.indexPath, "/foo"); }
public Result check(Level level) throws IOException { return check(level, true); }
IndexConsistencyChecker { public Result check(Level level) throws IOException { return check(level, true); } }
IndexConsistencyChecker { public Result check(Level level) throws IOException { return check(level, true); } IndexConsistencyChecker(NodeState rootState, String indexPath, File workDirRoot); }
IndexConsistencyChecker { public Result check(Level level) throws IOException { return check(level, true); } IndexConsistencyChecker(NodeState rootState, String indexPath, File workDirRoot); void setPrintStream(PrintStream printStream); void setVerbose(boolean verbose); Result check(Level level); Result check(Level level, boolean cleanWorkDir); }
IndexConsistencyChecker { public Result check(Level level) throws IOException { return check(level, true); } IndexConsistencyChecker(NodeState rootState, String indexPath, File workDirRoot); void setPrintStream(PrintStream printStream); void setVerbose(boolean verbose); Result check(Level level); Result check(Level level, boolean cleanWorkDir);  }