import org.openxmlformats.schemas.spreadsheetml.x2006.main.STFontScheme;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnderlineValues;
-public final class TestXSSFFont extends BaseTestFont{
+public final class TestXSSFFont extends BaseTestFont {
public TestXSSFFont() {
super(XSSFITestDataProvider.instance);
package org.apache.poi.ss.usermodel;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.IOException;
+import org.apache.commons.codec.binary.Hex;
import org.apache.poi.ss.ITestDataProvider;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
);
}
}
+
+ @Test
+ void testRGBColor() throws Exception {
+ try (Workbook wb1 = _testDataProvider.createWorkbook()) {
+ String colorHex = "FFEB84";
+ ExtendedColor color = wb1.getCreationHelper().createExtendedColor();
+ color.setRGB(Hex.decodeHex(colorHex));
+ assertArrayEquals(Hex.decodeHex(colorHex), color.getRGB());
+ }
+ }
}