OpenMonFactory { public String toString() { List<String> keys = new ArrayList(openMonFactoryMap.keySet()); Utils.removeClassNames(keys); Collections.sort(keys); return keys.toString(); } OpenMonFactory(OpenMon defaultOpenMon); void add(String... classNames); OpenMon getInstance(String key); OpenMon getFirstInstance(); String toString(); static final String JAMON; static final String JAVA_SIMON; static final String METRICS; static final String SYSOUT; static final String NULL_IMP; static final String NEW_RELIC; static final String STATSD; static final String MICROMETER; }
@Test public void testToString() throws Exception { assertThat(factory.toString()).contains("jamon, javasimon, metrics, micrometer, newrelicimp, nullimp, statsd, sysout"); }