@Test public void blobsWithError() throws Exception{ FailingBlob failingBlob = new FailingBlob("foo"); idx.setProperty("foo", failingBlob); idx.child(":index").setProperty("foo", failingBlob); idx.child("b").setProperty("foo", Lists.newArrayList(failingBlob, failingBlob), Type.BINARIES); NodeBuilder builder = EMPTY_NODE.builder(); builder.setChildNode("a", idx.getNodeState()); IndexConsistencyChecker checker = new IndexConsistencyChecker(builder.getNodeState(), "/a", temporaryFolder.getRoot()); Result result = checker.check(Level.BLOBS_ONLY); assertFalse(result.clean); assertTrue(result.missingBlobs); assertFalse(result.blobSizeMismatch); assertEquals(4, result.missingBlobIds.size()); dumpResult(result); }
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);  }