assertTrue(!g.more());
}
public void testVariantWithoutCountry()
{
LocalizedNameGenerator g =
new LocalizedNameGenerator("fred", new Locale("en", "", "GEEK"), ".foo");
assertTrue(g.more());
// The double-underscore is correct, it's a kind
// of placeholder for the null country.
// JDK1.3 always converts the locale to upper case. JDK 1.4
// does not. To keep this test happyt, we selected an all-uppercase
// locale.
assertEquals("fred_en__GEEK.foo", g.next());
assertTrue(g.more());
assertEquals("fred_en.foo", g.next());
assertTrue(g.more());
assertEquals("fred.foo", g.next());
assertTrue(!g.more());
}