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());
}
}
@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;