From: Sergey Vladimirov Date: Thu, 7 Jul 2011 11:39:30 +0000 (+0000) Subject: fail() shall throw Error, not AssertionError (which is ignored) X-Git-Tag: REL_3_8_BETA4~282 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28293b5b50127405c0940bad1b6d9703ee983b34;p=poi.git fail() shall throw Error, not AssertionError (which is ignored) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143771 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java index 96758c7abd..9e63002614 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java @@ -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"); - } /**