1 19 package org.openide.util.io; 20 21 import junit.framework.TestCase; 22 import junit.framework.*; 23 24 28 public class SafeExceptionTest extends TestCase { 29 30 public SafeExceptionTest(String testName) { 31 super(testName); 32 } 33 34 protected void setUp() throws Exception { 35 } 36 37 protected void tearDown() throws Exception { 38 } 39 40 public void testPrintStackTrace() { 41 NullPointerException e1 = new NullPointerException (); 42 SafeException e2 = new SafeException(e1); 43 e2.printStackTrace(); 44 } 45 46 } 47 | Popular Tags |