PdfOtherReport { public void writeCounterSummaryPerClass(Collector collector, Counter counter, String requestId, Range range) throws IOException { final List<CounterRequest> requestList = new CounterRequestAggregation(counter) .getRequestsAggregatedOrFilteredByClassName(requestId); try { document.open(); final String counterLabel = getString(counter.getName() + "Label"); final String title = getFormattedString("Statistiques_compteur", counterLabel) + " - " + range.getLabel(); addParagraph(title, counter.getIconName()); new PdfCounterReport(collector, counter, range, false, document) .writeRequests(counter.getChildCounterName(), requestList); } catch (final DocumentException e) { throw createIOException(e); } document.close(); } PdfOtherReport(String application, OutputStream output); void close(); void writeSessionInformations(List<SessionInformations> sessionsInformations); void writeHeapHistogram(HeapHistogram heapHistogram); void writeHotspots(List<SampledMethod> hotspots); void writeProcessInformations(List<ProcessInformations> processInformations); void writeProcessInformations(
			Map<String, List<ProcessInformations>> processInformationsByTitle); void writeDatabaseInformations(DatabaseInformations databaseInformations); void writeJndi(List<JndiBinding> jndiBindings, String path); void writeMBeans(List<MBeanNode> mbeans); void writeMBeans(Map<String, List<MBeanNode>> mbeansByTitle); void writeAllCurrentRequestsAsPart(
			Map<JavaInformations, List<CounterRequestContext>> currentRequests, Collector collector,
			List<Counter> counters, long timeOfSnapshot); void writeRequestAndGraphDetail(Collector collector, CollectorServer collectorServer,
			Range range, String requestId); void writeRuntimeDependencies(Counter counter, Range range); void writeCounterSummaryPerClass(Collector collector, Counter counter, String requestId,
			Range range); void writeThreads(List<JavaInformations> javaInformationsList);  }
@Test public void testWriteCounterSummaryPerClass() throws IOException { final ByteArrayOutputStream output = new ByteArrayOutputStream(); final PdfOtherReport pdfOtherReport = new PdfOtherReport(TEST_APP, output); final Counter counter = new Counter("services", null); final Collector collector = new Collector(TEST_APP, Arrays.asList(counter)); pdfOtherReport.writeCounterSummaryPerClass(collector, counter, null, Period.TOUT.getRange()); assertNotEmptyAndClear(output); }