From 2f2e61311aa96c425d13ab42b297bb0408c1cc9e Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 8 Mar 2023 10:57:31 +0000 Subject: [PATCH] add test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908190 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/converter/TestExcelUtils.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java 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())); + } +} -- 2.39.5