Index: C:/harmony/trunk_0427/modules/luni/src/test/java/tests/api/java/lang/RuntimeTest.java =================================================================== --- C:/harmony/trunk_0427/modules/luni/src/test/java/tests/api/java/lang/RuntimeTest.java (revision 417639) +++ C:/harmony/trunk_0427/modules/luni/src/test/java/tests/api/java/lang/RuntimeTest.java (working copy) @@ -146,6 +146,28 @@ .freeMemory()); } + public void test_addShutdownHook() { + // Test for method long java.lang.Runtime.addShutdownHook() + boolean exception = false; + try { + r.addShutdownHook(null); + } catch (NullPointerException npe) { + exception = true; + } + assertFalse("exception expected!", exception); + } + + public void test_removeShutdownHook() { + // Test for method long java.lang.Runtime.removeShutdownHook() + boolean exception = false; + try { + r.removeShutdownHook(null); + } catch (NullPointerException npe) { + exception = true; + } + assertFalse("exception expected!", exception); + } + /** * Sets up the fixture, for example, open a network connection. This method * is called before a test is executed.