From 28293b5b50127405c0940bad1b6d9703ee983b34 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 7 Jul 2011 11:39:30 +0000 Subject: [PATCH] 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 --- .../testcases/org/apache/poi/hwpf/usermodel/TestProblems.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); - } /** -- 2.39.5