assertEquals("boop", msg.getText());
assertEquals(Severity.ERROR, msg.getSeverity());
}
public void testAddAllErrors() {
StaticMessageSource messageSource = new StaticMessageSource();
messageSource.addMessage("foo", Locale.getDefault(), "bar");
messageSource.addMessage("bar", Locale.getDefault(), "{0}");
DefaultMessageContext context = new DefaultMessageContext(messageSource);
Object object = new Object();
MessageContextErrors errors = new MessageContextErrors(context, "object", object, null, null);
MapBindingResult result = new MapBindingResult(new HashMap(), "object");