]> source.dussan.org Git - poi.git/commitdiff
update test
authorPJ Fanning <fanningpj@apache.org>
Wed, 25 Oct 2023 16:39:46 +0000 (16:39 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 25 Oct 2023 16:39:46 +0000 (16:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913328 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
test-data/spreadsheet/github-321.xlsx

index 9e1a7cc0f34a96b38ed025061ca4158e392abca2..2f9ca1e0bbd9d0fa43c9d4524df111280b34c63b 100644 (file)
@@ -1432,7 +1432,7 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook {
 
     @Test
     void testGithub321() throws Exception {
-        try (XSSFWorkbook wb = openSampleWorkbook("github-321.xlsx")) {
+        try (XSSFWorkbook wb = new XSSFWorkbook(getSampleFile("github-321.xlsx"))) {
             XSSFSheet xssfSheet = wb.getSheetAt(0);
             DataFormatter dataFormatter = new DataFormatter();
             FormulaEvaluator formulaEvaluator = wb.getCreationHelper().createFormulaEvaluator();
index 2f50722c55bb6dc55f9ed00250283e0b83c6f38e..b015b9e9937e24fa6ce7b9bc6cf4c1b4514b7c96 100644 (file)
Binary files a/test-data/spreadsheet/github-321.xlsx and b/test-data/spreadsheet/github-321.xlsx differ