コード例 #1
0
 @Test
 public void testToBuilder() throws Exception {
   AmountFormatQuery style = AmountFormatQueryBuilder.of(Locale.ENGLISH).build();
   AmountFormatQueryBuilder builder = style.toBuilder();
   assertNotNull(builder);
   assertEquals(style, builder.build());
 }
コード例 #2
0
 @Test
 public void testOf() throws Exception {
   AmountFormatQuery style = AmountFormatQuery.of(Locale.ENGLISH);
   assertNotNull(style);
   DecimalFormat df = (DecimalFormat) DecimalFormat.getInstance(Locale.ENGLISH);
   assertNotNull(df);
 }