ApiInfo { public static boolean isVersionAtLeast(String minVersion) { if (minVersion == null) { throw new IllegalArgumentException("minVersion cannot be null"); } return minVersion.compareTo(getInstance().version) <= 0; } private  ApiInfo(); static String getName(); static String getVersion(); static boolean isVersionAtLeast(String minVersion); @Deprecated static String getUrl(); static URL getUrlMain(); static URL getUrlShort(); static URL getUrlSource(); static URL getUrlUpdate(); static String getAuthors(); static File getModDirectory();  }
@Test public void testIsVersionAtLeast() { assertTrue(ApiInfo.isVersionAtLeast("0.1")); assertTrue(ApiInfo.isVersionAtLeast(ApiInfo.getVersion())); assertFalse(ApiInfo.isVersionAtLeast("9999.0")); }
@Test(expected=IllegalArgumentException.class) public void testIsVersionAtLeastNull() { ApiInfo.isVersionAtLeast(null); }