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:
Allon Mureinik 2017-10-05 21:46:26 +03:00 committed by pascalschumacher
parent cc748d35e5
commit 36217ee164
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ public void testEscapedBraces_LANG_948() {
@Test @Test
public void testExtendedAndBuiltInFormats() { public void testExtendedAndBuiltInFormats() {
final Calendar cal = Calendar.getInstance(); 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 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 builtinsPattern = "DOB: {1,date,short} Salary: {2,number,currency}";
final String extendedPattern = "Name: {0,upper} "; final String extendedPattern = "Name: {0,upper} ";
@ -229,7 +229,7 @@ public void testBuiltInChoiceFormat() {
@Test @Test
public void testBuiltInDateTimeFormat() { public void testBuiltInDateTimeFormat() {
final Calendar cal = Calendar.getInstance(); 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 Object[] args = new Object[] {cal.getTime()};
final Locale[] availableLocales = DateFormat.getAvailableLocales(); final Locale[] availableLocales = DateFormat.getAvailableLocales();