ICU-13159 Fixed Java 6 compatibility issue in NumberFormatTest. Also fixed a test data loading problem in UTS46Test.

X-SVN-Rev: 40207
This commit is contained in:
Yoshito Umaoka 2017-06-26 03:54:19 +00:00
parent ade067638e
commit d1e192dd1e
2 changed files with 2 additions and 2 deletions

View File

@ -5497,7 +5497,7 @@ public class NumberFormatTest extends TestFmwk {
e.getCause() instanceof NullPointerException);
} catch (Exception e) {
// Other reflection exceptions
throw new AssertionError("Reflection error in method " + npeMethod, e);
throw new AssertionError("Reflection error in method " + npeMethod + ": " + e.getMessage());
}
}

View File

@ -743,7 +743,7 @@ public class UTS46Test extends TestFmwk {
@Test
public void IdnaTest() throws IOException {
BufferedReader idnaTestFile = TestUtil.getDataReader("unicode/IdnaTest.txt");
BufferedReader idnaTestFile = TestUtil.getDataReader("unicode/IdnaTest.txt", "UTF-8");
Pattern semi = Pattern.compile(";");
try {
String line;