diff options
author | PJ Fanning <fanningpj@apache.org> | 2017-09-15 08:29:31 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2017-09-15 08:29:31 +0000 |
commit | 892f68688b2c9e9cce08b5cd43f466c14b034028 (patch) | |
tree | d9f233520d5459783fbedafc03326a8354aeaf9e /src/testcases/org/apache/poi/hssf/util | |
parent | deb0aca6ac31fa15b34271c965883da5d4d6f57d (diff) | |
download | poi-892f68688b2c9e9cce08b5cd43f466c14b034028.tar.gz poi-892f68688b2c9e9cce08b5cd43f466c14b034028.zip |
remove deprecated inner classes from HSFColor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/util')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/util/TestHSSFColor.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/testcases/org/apache/poi/hssf/util/TestHSSFColor.java b/src/testcases/org/apache/poi/hssf/util/TestHSSFColor.java index be35ee268d..eb484a775e 100644 --- a/src/testcases/org/apache/poi/hssf/util/TestHSSFColor.java +++ b/src/testcases/org/apache/poi/hssf/util/TestHSSFColor.java @@ -18,7 +18,6 @@ package org.apache.poi.hssf.util; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.Map; @@ -29,7 +28,6 @@ import org.junit.Test; public final class TestHSSFColor { @Test public void testBasics() { - assertNotNull(HSSFColor.YELLOW.class); assertTrue(HSSFColorPredefined.YELLOW.getIndex() > 0); assertTrue(HSSFColorPredefined.YELLOW.getIndex2() > 0); } @@ -46,16 +44,16 @@ public final class TestHSSFColor { } @Test - public void testTrippletHash() { - Map<String, HSSFColor> tripplets = HSSFColor.getTripletHash(); + public void testTripletHash() { + Map<String, HSSFColor> triplets = HSSFColor.getTripletHash(); assertEquals( - HSSFColor.MAROON.class, - tripplets.get(HSSFColorPredefined.MAROON.getHexString()).getClass() + HSSFColorPredefined.MAROON.getColor(), + triplets.get(HSSFColorPredefined.MAROON.getHexString()) ); assertEquals( - HSSFColor.YELLOW.class, - tripplets.get(HSSFColorPredefined.YELLOW.getHexString()).getClass() + HSSFColorPredefined.YELLOW.getColor(), + triplets.get(HSSFColorPredefined.YELLOW.getHexString()) ); } } |