aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Add one more case where timestamp could end upDominik Stadler2024-06-231-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918517 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69147] fix issues with text function when input is a datetime in string ↵PJ Fanning2024-06-211-0/+7
| | | | | | format git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918501 13f79535-47bb-0310-9956-ffa450edef68
* add test related to bug-69147PJ Fanning2024-06-211-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918499 13f79535-47bb-0310-9956-ffa450edef68
* issue with Java 22 returning string values insteadof booleansPJ Fanning2024-06-171-9/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918397 13f79535-47bb-0310-9956-ffa450edef68
* issue with Java 22 returning string values insteadof booleansPJ Fanning2024-06-171-5/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918396 13f79535-47bb-0310-9956-ffa450edef68
* Apply IDE suggestions and ignore sonar false positiveDominik Stadler2024-06-024-165/+165
| | | | | | | Use NullOutputStream.INSTANCE Rework one test slightly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918116 13f79535-47bb-0310-9956-ffa450edef68
* Add simple test for font-widthDominik Stadler2024-06-021-2/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918115 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69021] add guard around castPJ Fanning2024-05-171-0/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917779 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-223-7/+34
| | | | | | | | Avoid a possible NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67922 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917269 13f79535-47bb-0310-9956-ffa450edef68
* Add one more "flaky" byte when comparing two documentsDominik Stadler2024-04-201-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917177 13f79535-47bb-0310-9956-ffa450edef68
* Comment out flaky assertion and add more information to find which file ↵Dominik Stadler2024-04-171-14/+15
| | | | | | fails in CI git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917072 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-173-0/+36
| | | | | | | | Use correct default date-format, add some tests Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66381 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917070 13f79535-47bb-0310-9956-ffa450edef68
* Bug 68778: Verify "ignoreMissingFontSystem" for ↵Dominik Stadler2024-03-141-0/+166
| | | | | | | | | | | | | | | | | SheetUtil.getDefaultCharWidthAsFloat() This functionality saw some regressions at times and thus should be verified via unit-tests. We can simulate failures in the low-level font-system by mocking the FontRenderContext and triggering exceptions from there. This hopefully now verifies behavior of SheetUtil.getDefaultCharWidthAsFloat() both with "ignoreMissingFontSystem" enabled and disabled. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916297 13f79535-47bb-0310-9956-ffa450edef68
* rework testsPJ Fanning2024-02-261-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916017 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-0/+3
| | | | | | | | Prevent NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64212 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915006 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-301-0/+1
| | | | | | | | Prevent ClassCastException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63736 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915003 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-1/+4
| | | | | | | | Prevent ClassCastException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63504 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914991 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-062-0/+2
| | | | | | | | | Avoid a ClassCastException and trigger some more code in integration-testing. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63358 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914404 13f79535-47bb-0310-9956-ffa450edef68
* [bug-68094] try to improve cell width derivation by not roundingPJ Fanning2023-11-081-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913676 13f79535-47bb-0310-9956-ffa450edef68
* [github-545] Make exported sheet names compatible with Excel. Thanks to ↵PJ Fanning2023-11-071-46/+55
| | | | | | Aleksandrs Jansons. This closes #545 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913660 13f79535-47bb-0310-9956-ffa450edef68
* try to fix broken sxssf testsPJ Fanning2023-11-072-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913651 13f79535-47bb-0310-9956-ffa450edef68
* fix broken HSSFWorkbook testPJ Fanning2023-11-072-7/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913648 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67579] test that we close input streamPJ Fanning2023-10-261-0/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913352 13f79535-47bb-0310-9956-ffa450edef68
* try to close streams in HSSF testsPJ Fanning2023-10-261-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913351 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67784] add test for divide errorPJ Fanning2023-10-171-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913065 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67784] add test for divide errorPJ Fanning2023-10-171-0/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913064 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67475] better support for edge cases in TEXT function. Thanks to Jakub ↵PJ Fanning2023-10-141-1/+132
| | | | | | Vojtisek git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912973 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid Exceptions found via oss-fuzzDominik Stadler2023-10-073-0/+3
| | | | | | | | | | We try to avoid throwing ConcurrentModificationException, but it was possible to trigger one here with a specially crafted input-file Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62861 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912797 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid Exceptions found via oss-fuzzDominik Stadler2023-10-072-1/+10
| | | | | | | | | | We try to avoid throwing ClassCastExceptions, but it was possible to trigger one here with a specially crafted input-file Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62795 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912796 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid Exceptions found via oss-fuzzDominik Stadler2023-10-072-1/+4
| | | | | | | | | | We try to avoid throwing NullPointerExceptions or endless allocations, but it was possible to trigger one here with a specially crafted input-file Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62697 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912793 13f79535-47bb-0310-9956-ffa450edef68
* Assert that deleting test-files and entries works in testsDominik Stadler2023-10-032-6/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912709 13f79535-47bb-0310-9956-ffa450edef68
* commons-io 2.14.0PJ Fanning2023-10-011-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912637 13f79535-47bb-0310-9956-ffa450edef68
* [github-523] set locales for some tests. This closes #523PJ Fanning2023-09-282-0/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912583 13f79535-47bb-0310-9956-ffa450edef68
* Bug47950 -- make stream/directory name lookup in OLE2 case insensitiveTim Allison2023-09-2019-187/+186
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912438 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-09-204-2/+26
| | | | | | | | | We try to avoid throwing NullPointerException, ClassCastExceptions and StackOverflowException, but it was possible to trigger them Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62530 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62491 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912433 13f79535-47bb-0310-9956-ffa450edef68
* use files nio APIs in more placesPJ Fanning2023-09-172-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912367 13f79535-47bb-0310-9956-ffa450edef68
* use more nio file supportPJ Fanning2023-09-146-22/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912316 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67402] DATEVALUE function should return #VALUE! for a null or empty ↵PJ Fanning2023-09-141-45/+40
| | | | | | string argument. Thanks to Jakub Vojtisek. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912313 13f79535-47bb-0310-9956-ffa450edef68
* SparseBitSet 1.3PJ Fanning2023-09-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912141 13f79535-47bb-0310-9956-ffa450edef68
* Reduce flakiness of one test which compares two documentsDominik Stadler2023-09-061-0/+35
| | | | | | | | There are more places where a timestamp is stored in the zip-file, let's try to replace some more bytes to make comparison succeed more often. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912126 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66855] Formula parser incorrectly handles sheet name containing ↵PJ Fanning2023-08-101-0/+16
| | | | | | multiple single quotes in a row. Thanks to Kirill lebedev. This closes #496 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911589 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-081-0/+2
| | | | | | | | | We try to avoid throwing ClassCastException, but it was possible to trigger one here with a specially crafted input-file Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61276 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911536 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-073-3/+6
| | | | | | | | | | | We try to avoid throwing ClassCastException, but it was possible to trigger one here with a specially crafted input-file Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61242 Also enhance output of some test-failures and allow an empty exception message git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911515 13f79535-47bb-0310-9956-ffa450edef68
* Exclude some files in one test to avoid flakiness during parallel buildsDominik Stadler2023-08-011-1/+6
| | | | | | | This test failed once locally due to a temporary file being deleted again when the test tried to access it git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911384 13f79535-47bb-0310-9956-ffa450edef68
* [github-488] Round up seconds in CellElapsedFormatter. Thanks to Anthony ↵PJ Fanning2023-07-241-0/+7
| | | | | | Schott. This closes #488 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911254 13f79535-47bb-0310-9956-ffa450edef68
* apply some spelling fixesPJ Fanning2023-06-282-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910659 13f79535-47bb-0310-9956-ffa450edef68
* apply some spelling fixesPJ Fanning2023-06-272-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910639 13f79535-47bb-0310-9956-ffa450edef68
* apply some spelling fixesPJ Fanning2023-06-274-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910627 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66661] revert github-269 due to it breaking formulas with table referencesPJ Fanning2023-06-221-0/+96
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910561 13f79535-47bb-0310-9956-ffa450edef68
* Remove deprecation warnings reported with newer commons-ioDominik Stadler2023-06-0851-90/+90
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910300 13f79535-47bb-0310-9956-ffa450edef68