@Test public void testGetDistrictKey() { String districtTeamKey = "2015ne_frc1124"; String districtKey = DistrictTeamHelper.getDistrictKey(districtTeamKey); assertEquals(districtKey, "2015ne"); }
public static String getDistrictKey(String districtTeamKey) { return districtTeamKey.split("_")[0]; }
DistrictTeamHelper { public static String getDistrictKey(String districtTeamKey) { return districtTeamKey.split("_")[0]; } }
DistrictTeamHelper { public static String getDistrictKey(String districtTeamKey) { return districtTeamKey.split("_")[0]; } private  DistrictTeamHelper(); }
DistrictTeamHelper { public static String getDistrictKey(String districtTeamKey) { return districtTeamKey.split("_")[0]; } private  DistrictTeamHelper(); static boolean validateDistrictTeamKey(String key); static String getDistrictKey(String districtTeamKey); static String getTeamKey(String districtTeamKey); static String generateKey(String teamKey, String districtKey); }
DistrictTeamHelper { public static String getDistrictKey(String districtTeamKey) { return districtTeamKey.split("_")[0]; } private  DistrictTeamHelper(); static boolean validateDistrictTeamKey(String key); static String getDistrictKey(String districtTeamKey); static String getTeamKey(String districtTeamKey); static String generateKey(String teamKey, String districtKey);  }