]> source.dussan.org Git - poi.git/commitdiff
extend test
authorPJ Fanning <fanningpj@apache.org>
Sat, 3 Sep 2022 18:50:52 +0000 (18:50 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 3 Sep 2022 18:50:52 +0000 (18:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903849 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/ss/tests/util/TestXSSFCellUtil.java

index 8b0547cb694fd7f31390d74ae61c43400dae5a85..d9aba70e5064a3333c3fb6b5e2bf45f0bd920d80 100644 (file)
@@ -108,6 +108,7 @@ class TestXSSFCellUtil extends BaseTestCellUtil {
                 CellUtil.setCellStyleProperties(cell, properties);
             }
             assertEquals(color, cell.getCellStyle().getFillForegroundColorColor());
+            assertEquals(FillPatternType.SOLID_FOREGROUND, cell.getCellStyle().getFillPattern());
 
             {
                 final Map<String, Object> properties = new LinkedHashMap<>();
@@ -119,6 +120,7 @@ class TestXSSFCellUtil extends BaseTestCellUtil {
             }
             assertNull(cell.getCellStyle().getFillForegroundColorColor());
             assertEquals(IndexedColors.AUTOMATIC.getIndex(), cell.getCellStyle().getFillForegroundColor());
+            assertEquals(FillPatternType.NO_FILL, cell.getCellStyle().getFillPattern());
         }
     }
 }
\ No newline at end of file