From: PJ Fanning Date: Wed, 8 Mar 2023 10:57:31 +0000 (+0000) Subject: add test X-Git-Tag: REL_5_2_4~226 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f2e61311aa96c425d13ab42b297bb0408c1cc9e;p=poi.git add test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908190 13f79535-47bb-0310-9956-ffa450edef68 --- 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())); + } +}