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:
parent
586cf38f1c
commit
479b45ced9
@ -29,7 +29,7 @@ public final class TestIndexedColors {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void fromInt() {
|
public void fromInt() {
|
||||||
int[] illegalIndices = { -1, 0, 27, 65 };
|
int[] illegalIndices = { -1, 65 };
|
||||||
for (int index : illegalIndices) {
|
for (int index : illegalIndices) {
|
||||||
try {
|
try {
|
||||||
IndexedColors.fromInt(index);
|
IndexedColors.fromInt(index);
|
||||||
|
Loading…
Reference in New Issue
Block a user