@Test public void testGetTeamKey() { String districtTeamKey = "2015ne_frc1124"; String teamKey = DistrictTeamHelper.getTeamKey(districtTeamKey); assertEquals(teamKey, "frc1124"); }
public static String getTeamKey(String districtTeamKey) { return districtTeamKey.split("_")[1]; }
DistrictTeamHelper { public static String getTeamKey(String districtTeamKey) { return districtTeamKey.split("_")[1]; } }
DistrictTeamHelper { public static String getTeamKey(String districtTeamKey) { return districtTeamKey.split("_")[1]; } private  DistrictTeamHelper(); }
DistrictTeamHelper { public static String getTeamKey(String districtTeamKey) { return districtTeamKey.split("_")[1]; } 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 getTeamKey(String districtTeamKey) { return districtTeamKey.split("_")[1]; } private  DistrictTeamHelper(); static boolean validateDistrictTeamKey(String key); static String getDistrictKey(String districtTeamKey); static String getTeamKey(String districtTeamKey); static String generateKey(String teamKey, String districtKey);  }