Place { public Place(String name, String region, String country, double lat, double lng, double alt, String objectType, double radius, boolean wingsuitable) { this.name = name; this.region = region; this.country = country; this.lat = lat; this.lng = lng; this.alt = alt; this.objectType = objectType; this.radius = radius; this.wingsuitable = wingsuitable; } Place(String name, String region, String country, double lat, double lng, double alt, String objectType, double radius, boolean wingsuitable); boolean isBASE(); @NonNull LatLng latLng(); @NonNull String niceString(); @NonNull String shortName(); @NonNull @Override String toString(); final String name; final String region; final String country; final double lat; final double lng; final double alt; final String objectType; final boolean wingsuitable; final double radius; }
@Test public void place() { assertEquals("Kpow", kpow.name); assertEquals("USA", kpow.country); assertEquals(47.239, kpow.latLng().latitude, 0.001); assertEquals(-123.143, kpow.latLng().longitude, 0.001); assertEquals("Kpow", kpow.toString()); assertEquals("Kpow, USA", kpow.niceString()); assertEquals("Kpow", kpow.shortName()); assertFalse(kpow.isBASE()); }