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