diff options
Diffstat (limited to 'src/testcases/org/apache')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java index 5b17cc964d..f6e2a48876 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java @@ -97,14 +97,10 @@ public abstract class BaseTestConditionalFormatting { assertTrue(e.getMessage().startsWith("cfRules must not be empty")); } - try { - sheetCF.addConditionalFormatting( - new CellRangeAddress[]{CellRangeAddress.valueOf("A1:A3")}, - new ConditionalFormattingRule[]{rule1, rule2, rule3, rule4}); - fail("expected exception"); - } catch (IllegalArgumentException e) { - assertTrue(e.getMessage().startsWith("Number of rules must not exceed 3")); - } + //this is now allowed + sheetCF.addConditionalFormatting( + new CellRangeAddress[]{CellRangeAddress.valueOf("A1:A3")}, + new ConditionalFormattingRule[]{rule1, rule2, rule3, rule4}); } } |