aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src/test/java/org/apache
Commit message (Collapse)AuthorAgeFilesLines
* feat: Full color support in CellFormat expressions (#797)Patrik Lindström6 days1-3/+123
| | | | | | | | | | | | | | | | | | | | | | | | | * feat: Full color support in cellformat expressions This change adds full support for named and indexed color in cell format expressions by adding in the standard color palette to CellFormatPart, from where the formatting information is free to propagate down the stack. For strict format compatibility, only the 8 basic named colors and 56 indexed colors should be allowed, but this change retains the assumed intended feature of the original code to also support the full set of colors specified in HSSFColor.HSSFColorPredefined. If this is undesirable, the dependency on HSSFColor should be dropped entirely. This change is required in order to properly support named and indexed colors as part of cell format expressions in products using POI. * Add some sanity tests * Rename testNamedColorsExist to testNamedColors * fix rebase corruption in CellFormatPart * fix indentation in TestCellFormat ..by converting tabs to four spaces * fix: replace .length() == 0 with .isEmpty for color name string * fix Javadoc name parameter in CellFormatPart.getColor() * chore: Tidy up CellFormatPart
* another windows test issuePJ Fanning7 days1-1/+1
|
* try test fix againPJ Fanning7 days1-1/+1
|
* windows test issuePJ Fanning7 days1-3/+8
|
* add poifs testPJ Fanning10 days1-0/+10
|
* add IOUtils.newFile(parent, path) (#855)PJ Fanning2025-07-231-0/+54
| | | | | | | * add IOUtils.newFile(parent, path) * Update IOUtils.java * Update IOUtils.java
* [bug-69681] allow 1 optional space in date formats before the AM/PM partPJ Fanning2025-06-171-1/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926508 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69714] add TempFile.withStrategy. Thanks to Attila Kelemen. This closes ↵PJ Fanning2025-06-161-0/+68
| | | | | | #825 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926471 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69714] refactor testPJ Fanning2025-06-161-42/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926467 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69714] add thread local support for overriding TempFile strategyPJ Fanning2025-06-161-0/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926466 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69715] update testsPJ Fanning2025-06-151-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926446 13f79535-47bb-0310-9956-ffa450edef68
* add new linePJ Fanning2025-06-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926445 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69715] in DefaultTempFileCreationStrategy, allow initDir to not yet existPJ Fanning2025-06-151-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926444 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69715] add tests removing an old invalid onePJ Fanning2025-06-141-13/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926424 13f79535-47bb-0310-9956-ffa450edef68
* add missing types to CellUtil.namePropertyMapPJ Fanning2025-05-291-0/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925936 13f79535-47bb-0310-9956-ffa450edef68
* code refactorPJ Fanning2025-05-174-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925650 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69688] add test case based on one provided by Dan SPJ Fanning2025-05-131-0/+130
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925538 13f79535-47bb-0310-9956-ffa450edef68
* [github-806] HSSFColor: Reduce use of java.awt.Color. Thanks to Jaroslav ↵PJ Fanning2025-05-111-0/+12
| | | | | | Tulach. This closes #806 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925491 13f79535-47bb-0310-9956-ffa450edef68
* [github-803] Add support for SHEET function. Thanks to Richard V. This ↵PJ Fanning2025-05-101-0/+89
| | | | | | closes #803 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925484 13f79535-47bb-0310-9956-ffa450edef68
* allow ATP function overridePJ Fanning2025-05-061-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925445 13f79535-47bb-0310-9956-ffa450edef68
* allow ATP function overridePJ Fanning2025-05-061-0/+58
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925444 13f79535-47bb-0310-9956-ffa450edef68
* Bug 69667: Test more variants of valid and invalid usernamesDominik Stadler2025-05-061-3/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925429 13f79535-47bb-0310-9956-ffa450edef68
* add testPJ Fanning2025-05-051-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925420 13f79535-47bb-0310-9956-ffa450edef68
* Bug 69667: Handle slightly broken WriteAccessRecord gracefullyDominik Stadler2025-05-051-0/+43
| | | | | | | | | | | | | | | It seems some software creates records with invalid length. If it uses UTF-16LE encoding, we can end up with 109 bytes, which is invalid as UTF-16LE always requires an even number of bytes. Therefor we now sanitize the number of bytes we read from the record to avoid this issue. Also improve error message and add tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925419 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69658] use EnumMap elsewherePJ Fanning2025-04-241-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925250 13f79535-47bb-0310-9956-ffa450edef68
* ForbiddenApis: Adjust for deprecations in JDK 21+Dominik Stadler2025-04-217-22/+26
| | | | | | | | | Fix failures reported when raising the language level to 23 new URL() is deprecated new Locale() is deprecated still allow ThreadDeath and Thread.getId() for now to keep support for JDK 8 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925199 13f79535-47bb-0310-9956-ffa450edef68
* Add more output to test to try to see why it fails now with JDK 23Dominik Stadler2025-04-211-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925189 13f79535-47bb-0310-9956-ffa450edef68
* Add test which populates cells with null stringDominik Stadler2025-04-211-0/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925187 13f79535-47bb-0310-9956-ffa450edef68
* build issues due to commons-io 2.19.0PJ Fanning2025-04-123-20/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925059 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69628] make IOUtils more tolerant of len < 0PJ Fanning2025-03-251-2/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924601 13f79535-47bb-0310-9956-ffa450edef68
* add testPJ Fanning2025-03-231-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924539 13f79535-47bb-0310-9956-ffa450edef68
* fix test issuePJ Fanning2025-03-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924535 13f79535-47bb-0310-9956-ffa450edef68
* add datetime testPJ Fanning2025-02-171-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923882 13f79535-47bb-0310-9956-ffa450edef68
* add datetime testPJ Fanning2025-02-171-0/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923881 13f79535-47bb-0310-9956-ffa450edef68
* fix problem test (SXXSF)PJ Fanning2025-02-141-10/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923819 13f79535-47bb-0310-9956-ffa450edef68
* temp disable problem test (SXXSF)PJ Fanning2025-02-131-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923797 13f79535-47bb-0310-9956-ffa450edef68
* fix some of the broken testsPJ Fanning2025-02-131-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923796 13f79535-47bb-0310-9956-ffa450edef68
* fix some of the broken testsPJ Fanning2025-02-131-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923795 13f79535-47bb-0310-9956-ffa450edef68
* fix some of the broken testsPJ Fanning2025-02-135-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923794 13f79535-47bb-0310-9956-ffa450edef68
* refactor cell toString to use DataFormatterPJ Fanning2025-02-131-3/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923790 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69583] DateUtil needs to handle time only dates (issue with 1900 format ↵PJ Fanning2025-02-131-66/+83
| | | | | | dates) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923785 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69583] when copying cells with dates - prefer using the numeric data ↵PJ Fanning2025-02-131-0/+27
| | | | | | directly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923780 13f79535-47bb-0310-9956-ffa450edef68
* remove unused importAxel Howind2025-01-111-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923082 13f79535-47bb-0310-9956-ffa450edef68
* Support long month names, dot after day, single digit day of monthAxel Howind2025-01-111-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923081 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that test which changes static value does not run at the same time as ↵Dominik Stadler2025-01-111-0/+3
| | | | | | | | other tests Otherwise we get strange test-failures in other places. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923066 13f79535-47bb-0310-9956-ffa450edef68
* Bug 65190: Handle decimal format '0#' the same way as ExcelDominik Stadler2025-01-111-0/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923056 13f79535-47bb-0310-9956-ffa450edef68
* Apply IDE suggestions, code-formating, tests, ...Dominik Stadler2025-01-112-6/+175
| | | | | | | Add test for DefaultTempFileCreationStrategy Adjust comments, add test, improve error message git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923054 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58571: Add test which shows a workaroundDominik Stadler2025-01-111-0/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923053 13f79535-47bb-0310-9956-ffa450edef68
* Bug 69265: Add test which verifies that Hyperlink Type "Email" is not ↵Dominik Stadler2025-01-111-0/+117
| | | | | | | | | supported for HSSF Also update JavaDoc slightly to describe the special handling of HyperlinkType.EMAIL git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923050 13f79535-47bb-0310-9956-ffa450edef68
* Apply some spelling fixes from GitHub PR #480Dominik Stadler2024-12-251-1/+1
| | | | | | | Some suggested changes are too invasive so we can only pick some changes semi-automatically git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922678 13f79535-47bb-0310-9956-ffa450edef68