@Test public void testRemoveFromZooKeeper() throws Exception { r = new ProblemReport(TABLE_ID, ProblemType.FILE_READ, RESOURCE, SERVER, null); byte[] zpathFileName = makeZPathFileName(TABLE_ID, ProblemType.FILE_READ, RESOURCE); String path = ZooUtil.getRoot("instance") + Constants.ZPROBLEMS + "/" + Encoding.encodeAsBase64FileName(new Text(zpathFileName)); zoorw.recursiveDelete(path, NodeMissingPolicy.SKIP); replay(zoorw); r.removeFromZooKeeper(zoorw, context); verify(zoorw); }
void removeFromZooKeeper(ServerContext context) throws Exception { removeFromZooKeeper(context.getZooReaderWriter(), context); }
ProblemReport { void removeFromZooKeeper(ServerContext context) throws Exception { removeFromZooKeeper(context.getZooReaderWriter(), context); } }
ProblemReport { void removeFromZooKeeper(ServerContext context) throws Exception { removeFromZooKeeper(context.getZooReaderWriter(), context); } ProblemReport(TableId tableId, ProblemType problemType, String resource, String server,
      Throwable e, long creationTime);  ProblemReport(TableId tableId, ProblemType problemType, String resource, String server,
      Throwable e);  ProblemReport(TableId tableId, ProblemType problemType, String resource, Throwable e); private  ProblemReport(TableId table, ProblemType problemType, String resource, byte[] enc); }
ProblemReport { void removeFromZooKeeper(ServerContext context) throws Exception { removeFromZooKeeper(context.getZooReaderWriter(), context); } ProblemReport(TableId tableId, ProblemType problemType, String resource, String server,
      Throwable e, long creationTime);  ProblemReport(TableId tableId, ProblemType problemType, String resource, String server,
      Throwable e);  ProblemReport(TableId tableId, ProblemType problemType, String resource, Throwable e); private  ProblemReport(TableId table, ProblemType problemType, String resource, byte[] enc); static ProblemReport decodeMetadataEntry(Entry<Key,Value> entry); TableId getTableId(); ProblemType getProblemType(); String getResource(); String getException(); String getServer(); long getTime(); @Override int hashCode(); @Override boolean equals(Object o); }
ProblemReport { void removeFromZooKeeper(ServerContext context) throws Exception { removeFromZooKeeper(context.getZooReaderWriter(), context); } ProblemReport(TableId tableId, ProblemType problemType, String resource, String server,
      Throwable e, long creationTime);  ProblemReport(TableId tableId, ProblemType problemType, String resource, String server,
      Throwable e);  ProblemReport(TableId tableId, ProblemType problemType, String resource, Throwable e); private  ProblemReport(TableId table, ProblemType problemType, String resource, byte[] enc); static ProblemReport decodeMetadataEntry(Entry<Key,Value> entry); TableId getTableId(); ProblemType getProblemType(); String getResource(); String getException(); String getServer(); long getTime(); @Override int hashCode(); @Override boolean equals(Object o);  }