]> source.dussan.org Git - poi.git/commitdiff
Oh, well, let's do it like this.
authorRainer Klute <klute@apache.org>
Thu, 4 Sep 2003 20:28:56 +0000 (20:28 +0000)
committerRainer Klute <klute@apache.org>
Thu, 4 Sep 2003 20:28:56 +0000 (20:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353342 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hpsf/basic/TestWrite.java

index fbd033737342d290de91a02e82c3be13c6e0d42d..75f941d80d8de2a1f9fb40a6977faf62f0f20113 100644 (file)
@@ -281,8 +281,7 @@ public class TestWrite extends TestCase
                     }
                     catch (Exception ex)
                     {
-                        ex.printStackTrace();
-                        throw new RuntimeException(ex.toString());
+                        fail(org.apache.poi.hpsf.Util.toString(ex));
                     }
                 }
     
@@ -383,8 +382,7 @@ public class TestWrite extends TestCase
             }
             catch (Exception ex)
             {
-                ex.printStackTrace();
-                throw new RuntimeException(ex.toString());
+                fail(org.apache.poi.hpsf.Util.toString(ex));
             }
         }
     }