]> source.dussan.org Git - poi.git/commitdiff
fail() shall throw Error, not AssertionError (which is ignored)
authorSergey Vladimirov <sergey@apache.org>
Thu, 7 Jul 2011 11:39:30 +0000 (11:39 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 7 Jul 2011 11:39:30 +0000 (11:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143771 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java

index 96758c7abd5820c305ab0bd58e9710bf00ede684..9e6300261455d1706a4dfedb303bebec542f447e 100644 (file)
@@ -429,9 +429,8 @@ public final class TestProblems extends HWPFTestCase {
    }
 
     static void fixed(String bugzillaId) {
-        fail("Bug " + bugzillaId + " seems to be fixed. " +
+        throw new Error("Bug " + bugzillaId + " seems to be fixed. " +
                 "Please resolve the issue in Bugzilla and remove fail() from the test");
-
     }
 
     /**