@Test public void testGenerateKey() { String abbrev = "ne"; int year = 2015; String key = DistrictHelper.generateKey(abbrev, year); assertEquals(key, "2015ne"); }
public static String generateKey(String districtAbbrev, int year) { return year + districtAbbrev; }
DistrictHelper { public static String generateKey(String districtAbbrev, int year) { return year + districtAbbrev; } }
DistrictHelper { public static String generateKey(String districtAbbrev, int year) { return year + districtAbbrev; } private  DistrictHelper(); }
DistrictHelper { public static String generateKey(String districtAbbrev, int year) { return year + districtAbbrev; } private  DistrictHelper(); static boolean validateDistrictKey(String key); static int extractYearFromKey(String key); static String extractAbbrevFromKey(String key); static String generateKey(String districtAbbrev, int year); }
DistrictHelper { public static String generateKey(String districtAbbrev, int year) { return year + districtAbbrev; } private  DistrictHelper(); static boolean validateDistrictKey(String key); static int extractYearFromKey(String key); static String extractAbbrevFromKey(String key); static String generateKey(String districtAbbrev, int year);  }