mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908190 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7d67fa729e
commit
2f2e61311a
@ -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()));
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user