use of org.apache.tapestry5.ioc.internal.services.PerthreadManagerImpl in project tapestry-5 by apache.
the class PersistentLocaleImplTest method set_to_unsupported_locale.
/**
* TAP5-537
*/
@Test
public void set_to_unsupported_locale() {
PersistentLocale pl = new PersistentLocaleImpl(new PerthreadManagerImpl(null), "en,fr");
try {
pl.set(Locale.CHINESE);
unreachable();
} catch (IllegalArgumentException ex) {
assertEquals(ex.getMessage(), "Locale 'zh' is not supported by this application. Supported locales are 'en,fr'; this is configured via the tapestry.supported-locales symbol.");
}
}
Aggregations