HtmlJavaInformationsReport extends HtmlAbstractReport { public static String getApplicationServerIconName(String appServer) { final String tmp = appServer.toLowerCase(Locale.ENGLISH); for (final String applicationServer : APPLICATION_SERVERS) { if (tmp.contains(applicationServer)) { return applicationServer + ".png"; } } return null; } HtmlJavaInformationsReport(List<JavaInformations> javaInformationsList, Writer writer); static String getOSIconName(String os); static String getApplicationServerIconName(String appServer);  }
@Test public void testGetApplicationServerIconName() { assertNotNull("getApplicationServerIconName", HtmlJavaInformationsReport.getApplicationServerIconName("Tomcat")); assertNull("getApplicationServerIconName", HtmlJavaInformationsReport.getApplicationServerIconName("unknown")); }