private void testEqualsIgnoreCase(Locale locale){
  Locale defaultLocale=Locale.getDefault();
  Locale.setDefault(locale);
  try {
    for (    String a : LATIN_I_VARIANTS) {
      for (      String b : LATIN_I_VARIANTS) {
        if (!a.equalsIgnoreCase(b)) {
          fail("Expected " + a + " to equal "+ b+ " in "+ locale);
        }
      }
    }
  }
  finally {
    Locale.setDefault(defaultLocale);
  }
}

private void testEqualsIgnoreCase ( Locale locale ) { Locale defaultLocale = Locale . getDefault ( ) ; Locale . setDefault ( locale ) ; try { for ( String a : LATIN_I_VARIANTS ) { for ( String b : LATIN_I_VARIANTS ) { if ( ! a . equalsIgnoreCase ( b ) ) { fail ( "Expected " + a + " to equal " + b + " in " + locale ) ; } } } } finally { Locale . setDefault ( defaultLocale ) ; } }
string . equalsignorecase should not depend on the locale .
