@Test public void testCreateCsvReporterBadLocation() throws BaleenException { Map<String, Object> config = new HashMap<>(); config.put("directory", "ABC:\\null\u0000\\test"); try { ReporterUtils.createCsvReporter(registry, config); fail("Expected exception not thrown"); } catch (BaleenException be) { // Expected exception } }
@Test public void testCreateCsvReporter() throws BaleenException { ScheduledReporter reporter = ReporterUtils.createCsvReporter(registry, new HashMap<String, Object>()); assertNotNull(reporter); }
break; case "csv": reporter = ReporterUtils.createCsvReporter(metricRegistry, config); break; case "console":
break; case "csv": reporter = ReporterUtils.createCsvReporter(metricRegistry, config); break; case "console":