]> source.dussan.org Git - poi.git/commitdiff
add test
authorPJ Fanning <fanningpj@apache.org>
Tue, 23 Aug 2022 19:32:24 +0000 (19:32 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 23 Aug 2022 19:32:24 +0000 (19:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903646 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java

index b3e86899c2730fa5d646973bd339015956959cb7..98d14afb40640f203582e5720e13399d7d9742c7 100644 (file)
@@ -640,6 +640,14 @@ public final class TestSXSSFWorkbook extends BaseTestXWorkbook {
         }
     }
 
+    @Test
+    void getStylesSource() throws IOException {
+        try (SXSSFWorkbook workbook = new SXSSFWorkbook()) {
+            assertNotNull(workbook.getXSSFWorkbook().getStylesSource(), "style source available");
+            assertNotNull(workbook.getXSSFWorkbook().getStylesSource().getIndexedColors(), "indexed colors available");
+        }
+    }
+
     @Override
     @Disabled("not implemented")
     protected void changeSheetNameWithSharedFormulas() {