fun testExample() { Locale.setDefault(Locale("en", "UK")) doTestExample("fr", "CH", arrayOf("_fr_CH.class", "_fr.properties", ".class")) doTestExample("fr", "FR", arrayOf("_fr.properties", ".class")) doTestExample("de", "DE", arrayOf("_en.properties", ".class")) doTestExample("en", "US", arrayOf("_en.properties", ".class")) doTestExample("es", "ES", arrayOf("_es_ES.class", ".class")) }
Verifies the example from the getBundle specification .