RevisionGCStats implements RevisionGCStatsCollector, RevisionGCStatsMBean { @Override public long getDeletedSplitDocCount() { return deletedSplitDoc.getCount(); } RevisionGCStats(StatisticsProvider provider); @Override void documentRead(); @Override void documentsDeleted(long numDocs); @Override void leafDocumentsDeleted(long numDocs); @Override void splitDocumentsDeleted(long numDocs); @Override void intermediateSplitDocumentsDeleted(long numDocs); @Override void deletedOnceFlagReset(); @Override void started(); @Override void finished(VersionGCStats stats); @Override long getReadDocCount(); @Override long getDeletedDocCount(); @Override long getDeletedLeafDocCount(); @Override long getDeletedSplitDocCount(); @Override long getDeletedIntSplitDocCount(); @Override long getResetDeletedFlagCount(); @Override CompositeData getReadDocHistory(); @Override CompositeData getDeletedDocHistory(); @Override CompositeData getDeletedLeafDocHistory(); @Override CompositeData getDeletedSplitDocHistory(); @Override CompositeData getDeletedIntSplitDocHistory(); @Override CompositeData getResetDeletedFlagHistory();  }
@Test public void getDeletedSplitDocCount() { Meter m = getMeter(RevisionGCStats.DELETE_SPLIT_DOC); long count = m.getCount(); stats.splitDocumentsDeleted(17); assertEquals(count + 17, m.getCount()); assertEquals(count + 17, stats.getDeletedSplitDocCount()); }