aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-04-29 20:55:09 +0000
committerPJ Fanning <fanningpj@apache.org>2020-04-29 20:55:09 +0000
commitbc654e63da1fe4f7df909fb0f7b24623abd560fc (patch)
tree9f2b9c43fbd507781c2aa6923afb8b01d68a7435 /src/testcases/org/apache
parent4da2b597e065285bf182cb46ac2929e3b3629747 (diff)
downloadpoi-bc654e63da1fe4f7df909fb0f7b24623abd560fc.tar.gz
poi-bc654e63da1fe4f7df909fb0f7b24623abd560fc.zip
[github-176] Remove limit on number of rules in XSSFSheetConditionalFormatting.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877176 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java12
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});
}
}