You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2023/03/08 10:57:32 UTC

svn commit: r1908190 - /poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java

Author: fanningpj
Date: Wed Mar  8 10:57:31 2023
New Revision: 1908190

URL: http://svn.apache.org/viewvc?rev=1908190&view=rev
Log:
add test

Added:
    poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java   (with props)

Added: poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java?rev=1908190&view=auto
==============================================================================
--- poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java (added)
+++ poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java Wed Mar  8 10:57:31 2023
@@ -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()));
+    }
+}

Propchange: poi/trunk/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org