Search in sources :

Example 26 with LocalizationSetter

use of org.apache.tapestry5.services.LocalizationSetter in project tapestry-5 by apache.

the class LocalizationSetterImplTest method get_selected_locale_names_with_whitespaces.

@Test
public void get_selected_locale_names_with_whitespaces() {
    LocalizationSetter setter = new LocalizationSetterImpl(null, null, null, "en, fr,  de");
    Object localeNames = TestBase.get(setter, "supportedLocaleNames");
    assertTrue(newSet("en", "fr", "de").equals(localeNames));
}
Also used : LocalizationSetter(org.apache.tapestry5.services.LocalizationSetter) Test(org.testng.annotations.Test)

Aggregations

LocalizationSetter (org.apache.tapestry5.services.LocalizationSetter)24 Test (org.testng.annotations.Test)21 Request (org.apache.tapestry5.http.services.Request)19 ComponentClassResolver (org.apache.tapestry5.services.ComponentClassResolver)17 MetaDataLocator (org.apache.tapestry5.services.MetaDataLocator)13 Response (org.apache.tapestry5.http.services.Response)12 PageRenderRequestParameters (org.apache.tapestry5.services.PageRenderRequestParameters)8 Dispatcher (org.apache.tapestry5.http.services.Dispatcher)7 ComponentEventRequestParameters (org.apache.tapestry5.services.ComponentEventRequestParameters)6 ComponentRequestHandler (org.apache.tapestry5.services.ComponentRequestHandler)5 EmptyEventContext (org.apache.tapestry5.internal.EmptyEventContext)4 ClientWhitelist (org.apache.tapestry5.services.security.ClientWhitelist)4 Locale (java.util.Locale)2 URLEventContext (org.apache.tapestry5.internal.URLEventContext)2 Contribute (org.apache.tapestry5.ioc.annotations.Contribute)2 ThreadLocale (org.apache.tapestry5.ioc.services.ThreadLocale)2 PersistentLocale (org.apache.tapestry5.services.PersistentLocale)2 OptionModel (org.apache.tapestry5.OptionModel)1 SelectModel (org.apache.tapestry5.SelectModel)1 ModuleDispatcher (org.apache.tapestry5.internal.services.javascript.ModuleDispatcher)1