diff options
author | PJ Fanning <fanningpj@apache.org> | 2023-03-08 10:57:31 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2023-03-08 10:57:31 +0000 |
commit | 2f2e61311aa96c425d13ab42b297bb0408c1cc9e (patch) | |
tree | d1dbd9da180dad53f02c1b02859c94c11c65bf65 /poi-scratchpad | |
parent | 7d67fa729eb115a2a0114c6389fd9d8d10faa305 (diff) | |
download | poi-2f2e61311aa96c425d13ab42b297bb0408c1cc9e.tar.gz poi-2f2e61311aa96c425d13ab42b297bb0408c1cc9e.zip |
add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r-- | poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java | 14 |
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())); + } +} |