提交 ca6418b2 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved error message

上级 94d52290
...@@ -64,7 +64,8 @@ public class TestOutOfMemory extends TestBase { ...@@ -64,7 +64,8 @@ public class TestOutOfMemory extends TestBase {
assertEquals(3000, rs.getInt(1)); assertEquals(3000, rs.getInt(1));
} catch (OutOfMemoryError e) { } catch (OutOfMemoryError e) {
freeMemory(); freeMemory();
fail("Out of memory not detected"); // out of memory not detected
throw (Error) new AssertionError("Out of memory not detected").initCause(e);
} finally { } finally {
freeMemory(); freeMemory();
if (conn != null) { if (conn != null) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论