Merge "HexDumpTest: Fix assertion."
This commit is contained in:
committed by
Android (Google) Code Review
commit
31b77e72e3
@@ -160,8 +160,9 @@ public final class HexDumpTest extends TestCase {
|
||||
private static void assertThrows(Class<? extends RuntimeException> clazz, Runnable runnable) {
|
||||
try {
|
||||
runnable.run();
|
||||
} catch (RuntimeException exception) {
|
||||
assertEquals(toStrackTrace(exception), clazz, exception.getClass());
|
||||
fail();
|
||||
} catch (RuntimeException expected) {
|
||||
assertEquals(toStrackTrace(expected), clazz, expected.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user