@Test public void messages_keys_are_case_insensitive() { ComponentModel model = mockComponentModel(); train_getComponentClassName(model, SIMPLE_COMPONENT_CLASS_NAME); train_getBaseResource(model, simpleComponentResource); train_getParentModel(model, null); replay(); forceCacheClear(); Messages messages = source.getMessages(model, Locale.UK); assertEquals(messages.get("COlor"), "colour"); assertEquals(messages.get("Framework"), "Tapestry"); verify(); }
public Messages getMessages(ComponentModel componentModel, Locale locale) { return getMessages(componentModel, new ComponentResourceSelector(locale)); }
ComponentMessagesSourceImpl implements ComponentMessagesSource, UpdateListener { public Messages getMessages(ComponentModel componentModel, Locale locale) { return getMessages(componentModel, new ComponentResourceSelector(locale)); } }
ComponentMessagesSourceImpl implements ComponentMessagesSource, UpdateListener { public Messages getMessages(ComponentModel componentModel, Locale locale) { return getMessages(componentModel, new ComponentResourceSelector(locale)); } ComponentMessagesSourceImpl(@Symbol(SymbolConstants.PRODUCTION_MODE)
                                       boolean productionMode, List<Resource> appCatalogResources, PropertiesFileParser parser,
                                       ComponentResourceLocator resourceLocator, ClasspathURLConverter classpathURLConverter);   ComponentMessagesSourceImpl(boolean productionMode, Resource appCatalogResource,
                                ComponentResourceLocator resourceLocator, PropertiesFileParser parser, URLChangeTracker tracker);   ComponentMessagesSourceImpl(boolean productionMode, List<Resource> appCatalogResources,
                                ComponentResourceLocator resourceLocator, PropertiesFileParser parser, URLChangeTracker tracker); }
ComponentMessagesSourceImpl implements ComponentMessagesSource, UpdateListener { public Messages getMessages(ComponentModel componentModel, Locale locale) { return getMessages(componentModel, new ComponentResourceSelector(locale)); } ComponentMessagesSourceImpl(@Symbol(SymbolConstants.PRODUCTION_MODE)
                                       boolean productionMode, List<Resource> appCatalogResources, PropertiesFileParser parser,
                                       ComponentResourceLocator resourceLocator, ClasspathURLConverter classpathURLConverter);   ComponentMessagesSourceImpl(boolean productionMode, Resource appCatalogResource,
                                ComponentResourceLocator resourceLocator, PropertiesFileParser parser, URLChangeTracker tracker);   ComponentMessagesSourceImpl(boolean productionMode, List<Resource> appCatalogResources,
                                ComponentResourceLocator resourceLocator, PropertiesFileParser parser, URLChangeTracker tracker); @PostInjection void setupReload(ReloadHelper reloadHelper); void checkForUpdates(); Messages getMessages(ComponentModel componentModel, Locale locale); Messages getMessages(ComponentModel componentModel, ComponentResourceSelector selector); Messages getApplicationCatalog(Locale locale); InvalidationEventHub getInvalidationEventHub(); }
ComponentMessagesSourceImpl implements ComponentMessagesSource, UpdateListener { public Messages getMessages(ComponentModel componentModel, Locale locale) { return getMessages(componentModel, new ComponentResourceSelector(locale)); } ComponentMessagesSourceImpl(@Symbol(SymbolConstants.PRODUCTION_MODE)
                                       boolean productionMode, List<Resource> appCatalogResources, PropertiesFileParser parser,
                                       ComponentResourceLocator resourceLocator, ClasspathURLConverter classpathURLConverter);   ComponentMessagesSourceImpl(boolean productionMode, Resource appCatalogResource,
                                ComponentResourceLocator resourceLocator, PropertiesFileParser parser, URLChangeTracker tracker);   ComponentMessagesSourceImpl(boolean productionMode, List<Resource> appCatalogResources,
                                ComponentResourceLocator resourceLocator, PropertiesFileParser parser, URLChangeTracker tracker); @PostInjection void setupReload(ReloadHelper reloadHelper); void checkForUpdates(); Messages getMessages(ComponentModel componentModel, Locale locale); Messages getMessages(ComponentModel componentModel, ComponentResourceSelector selector); Messages getApplicationCatalog(Locale locale); InvalidationEventHub getInvalidationEventHub();  }