From 4a6c8426c174ed863131f59247cab74a27497c99 Mon Sep 17 00:00:00 2001 From: Greg Woolsey Date: Fri, 26 May 2017 23:37:04 +0000 Subject: [PATCH] Bug 60898 - XSSFColor's getARGB() method returns a wrong color value when a workbook has a custom indexed color Missed this test. As part of the work I noticed the Enum was missing some values defined in the OOXML spec, so I added them. I've updated the test to reflect that those values are no longer invalid. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796360 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/usermodel/TestIndexedColors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java b/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java index 5ca6621e73..093410b746 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java +++ b/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java @@ -29,7 +29,7 @@ public final class TestIndexedColors { @Test public void fromInt() { - int[] illegalIndices = { -1, 0, 27, 65 }; + int[] illegalIndices = { -1, 65 }; for (int index : illegalIndices) { try { IndexedColors.fromInt(index);