ExtendedMessageFormatTest integers (#295)
Use the decimal "5" instead of the octal notation "05" to make the code more straight forward and easier to read.
This commit is contained in:
parent
cc748d35e5
commit
36217ee164
|
@ -110,7 +110,7 @@ public class ExtendedMessageFormatTest {
|
|||
@Test
|
||||
public void testExtendedAndBuiltInFormats() {
|
||||
final Calendar cal = Calendar.getInstance();
|
||||
cal.set(2007, Calendar.JANUARY, 23, 18, 33, 05);
|
||||
cal.set(2007, Calendar.JANUARY, 23, 18, 33, 5);
|
||||
final Object[] args = new Object[] {"John Doe", cal.getTime(), Double.valueOf("12345.67")};
|
||||
final String builtinsPattern = "DOB: {1,date,short} Salary: {2,number,currency}";
|
||||
final String extendedPattern = "Name: {0,upper} ";
|
||||
|
@ -229,7 +229,7 @@ public class ExtendedMessageFormatTest {
|
|||
@Test
|
||||
public void testBuiltInDateTimeFormat() {
|
||||
final Calendar cal = Calendar.getInstance();
|
||||
cal.set(2007, Calendar.JANUARY, 23, 18, 33, 05);
|
||||
cal.set(2007, Calendar.JANUARY, 23, 18, 33, 5);
|
||||
final Object[] args = new Object[] {cal.getTime()};
|
||||
final Locale[] availableLocales = DateFormat.getAvailableLocales();
|
||||
|
||||
|
|
Loading…
Reference in New Issue