@Test public void testVALUES() { assertNotNull(VALUES); assertFalse(VALUES.keySet().contains(null)); assertFalse(VALUES.values().contains(null)); for (String cc : VALUES.keySet()) { assertEquals(cc, VALUES.get(cc).getValue()); } for (Country c : VALUES.values()) { assertTrue( "not an ISO country code: \"" + c + "\"", (!c.equals(NO_COUNTRY) ? contains(Locale.getISOCountries(), c.getValue()) : true)); } for (String cc : Locale.getISOCountries()) { assertNotNull(VALUES.get(cc)); } }
@Test public void testCountry() { Country subject = new Country(); assertEquals("BE", subject.getValue()); }