@Test public void testGetMessage() { System.out.println("getMessage"); LocalisedMessages instance = new LocalisedMessages("messages", Locale.ENGLISH); String expResult = "Generated from TESZT database table."; String result = instance.getMessage("generatedFrom", "TESZT"); assertEquals(expResult, result); }
public String getMessage(String key, Object... args) { String message = this.messages.getString(key); return MessageFormat.format(message, args); }
LocalisedMessages implements TemplateMethodModelEx { public String getMessage(String key, Object... args) { String message = this.messages.getString(key); return MessageFormat.format(message, args); } }
LocalisedMessages implements TemplateMethodModelEx { public String getMessage(String key, Object... args) { String message = this.messages.getString(key); return MessageFormat.format(message, args); } LocalisedMessages(String bundleResourceName, Locale locale); }
LocalisedMessages implements TemplateMethodModelEx { public String getMessage(String key, Object... args) { String message = this.messages.getString(key); return MessageFormat.format(message, args); } LocalisedMessages(String bundleResourceName, Locale locale); String getMessage(String key, Object... args); @Override Object exec(List arguments); }
LocalisedMessages implements TemplateMethodModelEx { public String getMessage(String key, Object... args) { String message = this.messages.getString(key); return MessageFormat.format(message, args); } LocalisedMessages(String bundleResourceName, Locale locale); String getMessage(String key, Object... args); @Override Object exec(List arguments);  }