@Test public void testDateTimeWithLongStyle() throws Exception { MessageFormat messageFormat = messageFormatFactory.create(Locale.ENGLISH, "Now is {0, datetime, long}"); String result = messageFormat.format(new Object[]{createDate()}); assertThat(result).isNotNull().isEqualTo("Now is February 5, 2013 8:47:23 PM " + TimeZone.getDefault().getDisplayName(false, TimeZone.SHORT)); }
@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);  }