Skip to content

Commit

Permalink
Fix unit test for DecimalFormatSymbol using lazy initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Apr 7, 2017
1 parent 6a37564 commit e9736ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2006 Joe Walnes.
* Copyright (C) 2006, 2007, 2011 XStream Committers.
* Copyright (C) 2006, 2007, 2011, 2017 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
Expand Down Expand Up @@ -249,7 +249,7 @@ public void testDecimalFormatSymbols() {
+ " <percent>%</percent>\n"
+ " <serialVersionOnStream>3</serialVersionOnStream>\n"
+ " <zeroDigit>0</zeroDigit>\n"
+ " <NaN>\ufffd</NaN>\n"
+ " <NaN>NaN</NaN>\n"
+ " <currencySymbol>\u20ac</currencySymbol>\n"
+ " <exponentialSeparator>E</exponentialSeparator>\n"
+ " <infinity>\u221e</infinity>\n"
Expand All @@ -260,6 +260,8 @@ public void testDecimalFormatSymbols() {
+ "</java.text.DecimalFormatSymbols>";
}
final DecimalFormatSymbols format = new DecimalFormatSymbols(Locale.GERMANY);
format.setNaN("NaN");
assertEquals("EUR", format.getInternationalCurrencySymbol());
assertBothWays(format, xml);
}

Expand Down

0 comments on commit e9736ca

Please sign in to comment.