@Test public void capitalizesGps() { String input = "gps"; assertEquals("GPS", GeoUtils.capitalizeGps(input)); String locationProvider = "network"; assertEquals("network", GeoUtils.capitalizeGps(locationProvider)); String nullLocationProvider = null; assertNull(GeoUtils.capitalizeGps(nullLocationProvider)); }
public static String capitalizeGps(String locationProvider) { return "gps".equals(locationProvider) ? "GPS" : locationProvider; }
GeoUtils { public static String capitalizeGps(String locationProvider) { return "gps".equals(locationProvider) ? "GPS" : locationProvider; } }
GeoUtils { public static String capitalizeGps(String locationProvider) { return "gps".equals(locationProvider) ? "GPS" : locationProvider; } private  GeoUtils(); }
GeoUtils { public static String capitalizeGps(String locationProvider) { return "gps".equals(locationProvider) ? "GPS" : locationProvider; } private  GeoUtils(); static String formatLocationResultString(Location location); static String capitalizeGps(String locationProvider); }
GeoUtils { public static String capitalizeGps(String locationProvider) { return "gps".equals(locationProvider) ? "GPS" : locationProvider; } private  GeoUtils(); static String formatLocationResultString(Location location); static String capitalizeGps(String locationProvider);  }