Author: gwoolsey
Date: Fri May 26 23:37:04 2017
New Revision: 1796360
URL: http://svn.apache.org/viewvc?rev=1796360&view=rev
Log:
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.
Modified:
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java
Modified:
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java?rev=1796360&r1=1796359&r2=1796360&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java
(original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestIndexedColors.java
Fri May 26 23:37:04 2017
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]