]> source.dussan.org Git - poi.git/commitdiff
include class of caught exception
authorJaven O'Neal <onealj@apache.org>
Wed, 21 Sep 2016 01:14:26 +0000 (01:14 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 21 Sep 2016 01:14:26 +0000 (01:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1761654 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java

index 6693a522757ecff46f17f9aa98e836c8db113b3e..41d2ea1754cde00d515000afb3680efbb27608d4 100644 (file)
@@ -27,6 +27,7 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.StringWriter;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
@@ -262,8 +263,8 @@ public class TestVBAMacroReader {
         reader.close();
     }
     
-    private void skipTest(Throwable e) {
-        assumeTrue("This test currently fails." + e.getLocalizedMessage(), false);
+    private static void skipTest(Throwable e) {
+        assumeTrue("This test currently fails with " + e, false);
     }
     
     // This test is written as expected-to-fail and should be rewritten