]> source.dussan.org Git - poi.git/commitdiff
add test
authorPJ Fanning <fanningpj@apache.org>
Wed, 8 Mar 2023 10:57:31 +0000 (10:57 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 8 Mar 2023 10:57:31 +0000 (10:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908190 13f79535-47bb-0310-9956-ffa450edef68

poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java [new file with mode: 0644]

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 (file)
index 0000000..7a35d0b
--- /dev/null
@@ -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()));
+    }
+}