@Test public void testJodaDateWithCustomStyle() throws Exception { MessageFormat messageFormat = messageFormatFactory.create(Locale.ENGLISH, "Now is {0, datetime, yyyy-MM-dd}"); String result = messageFormat.format(new Object[]{createJodaDate()}); assertThat(result).isNotNull().isEqualTo("Now is 2013-02-05"); }
@Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } DefaultMessageFormatFactory(); }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } DefaultMessageFormatFactory(); @Override MessageFormat create(Locale locale, String format); }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } DefaultMessageFormatFactory(); @Override MessageFormat create(Locale locale, String format);  }