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
This commit is contained in:
Greg Woolsey 2017-05-26 23:37:04 +00:00
parent 586cf38f1c
commit 479b45ced9

View File

@ -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);