aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java b/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java
new file mode 100644
index 0000000000..7a35d0b574
--- /dev/null
+++ b/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java
@@ -0,0 +1,14 @@
+package org.apache.poi.hssf.converter;
+
+import org.apache.poi.hssf.util.HSSFColor;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class TestExcelUtils {
+ @Test
+ void testGetColor() {
+ assertEquals("#800000", AbstractExcelUtils.getColor(HSSFColor.HSSFColorPredefined.DARK_RED.getColor()));
+ assertEquals("white", AbstractExcelUtils.getColor(HSSFColor.HSSFColorPredefined.WHITE.getColor()));
+ }
+}