Marius Volkhart
259c9967ef
[bug-63046] Use Log4j 2 for logging
This removes the POILogger and POILogFactory mechanism for logging. This mechanism was created at a time when the Java landscape looked very different than it does today.
Log4j 2 is an Apache Foundation project that is well maintained and is widely regarded as having good performance and capabilities. We use only the Log4j API artifact. This lets application developers choose how they want to capture logging events if at all. Integrations with Log4j 2 Core and Logback are available from the Log4j project.
Closes #224
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886770 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
7a8f21b989
Do not require NullPointerException to have a null-message on JDK < 16
It seems depending on the exact JDK some Exceptions have failure messages populated
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886527 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
6449c03a53
Adjust integration-test slightly for running mass-regression-tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886062 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
a10ca15627
Apply IDE suggestions, add toString(), adjust JavaDoc and simplify code slightly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886061 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
6038381e3a
try to fix windows integration tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885888 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
8f2c722fd3
Integration tests - try to fix Oracle/OpenJDK vs IBM-JDK error message differences on XXE files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885625 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
3778a3e9e2
Sonar fixes
constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'
reorder "final static" -> "static final"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885613 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
7ad01e4daa
Integration test - fix filenames with windows path separator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885595 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
44efecf42e
integration tests: Fix handling of NullPointerExceptions for Java 16+ (again ...)
Refactor TestAllFiles to provide an API for mass testing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885576 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
2a19c0161d
integration tests: Fix JDK version handling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885553 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
5e110d7216
integration tests: NullPointerExceptions contain now a description in Java 16+
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885549 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
309e657b0d
#65046 - Simplify integration tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885538 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
9daa77751a
revert Sonar fixes on BaseIntegrationTest
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885341 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
1041a876cb
Sonar fixes
JUnit5 test classes and methods should have default package visibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885340 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
a2fa70b15d
Run all integration-test steps in manual test-method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885190 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
da7725e3d6
Adjust one expected error message in integration-tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885188 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
47c5e9b08d
Adjust assumption for one specific font-related exception on Windows
Otherwise it triggers too much and hides actual regression bugs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885187 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
e59e84a213
Avoid test failing on Windows with JDK 8 because of an ArrayIndexOutOfBoundsException when handling fonts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885058 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
e08a1785c3
ooxml-schema: trigger loading stress-documents as part of the normal unit-tests
The integration-tests are not executed for determining the parts of the schema
to include in the "lite" package and so we need to have a normal unit-test as well.
Add more documents which drag in some more parts from the ooxml-schema
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885057 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
42c4e7d89a
Add unfixed test for bug 64759 and make the ones fail which depend on manual opening of files in Microsoft Excel for verification
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884957 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
0172ec3d50
Adjust error-message on old files and simplify code slightly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884950 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
77fc30c0e0
sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884874 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
a0fa9e19b1
#65026 - Migrate tests to Junit 5
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884783 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
PJ Fanning
bd1d31e410
avoid string concats
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884573 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
PJ Fanning
cc21b7c305
remove stray import
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1883394 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
PJ Fanning
00b9048d59
[github-197] Modify test class HeapDump to allow it work in different JDKs. Thanks to Marius Volkhart. This closes #197
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1883393 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
5d2d6fee1a
Avoid dependency on ooxml-test in integration-test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882040 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
389eab2fbd
Try to fix the Gradle build
Third party lib updates
Also use the temporary XMLBeans 4.0.0 jar
Add missing dependencies
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882036 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
ceae0d0903
Fix IDE warnings, add more assertion-output
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882025 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
b7b0a0c215
Activate Forbidden-Apis-Check also for other tests
Max supported Java version is currently Java 14
Fix the check failures
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880944 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
2069274699
try to fix no-scratchpad test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880893 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
dfdf9e6d6f
#64411 - Provide JigSaw modules
- rework extractors - see bugzilla entry for more information
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880839 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Andreas Beeker
c0f9941604
#64411 - Provide JigSaw modules
- use classpath-build for Java 8, otherwise use modulepath
- save module-info classes to source, when using Java 9+ environment
- rename example packages - otherwise package clashes occured in the tests
- move agile encryption from ooxml to main.
remove EncryptionInfo XmlBeans and schema and use custom xml marshalling
- move ooxml test classes which reside in the same package as their tested main class
- rename base test classes to "BaseTest..." - temporarily I've used a light version of the main test classes to test scratchpad / ooxml
- build.xml - fixed the Rhino javascript errors of the dependency-macros
- DrawTextParagraph - fixed StringIndexOutOfBounds when logging set to debug level
- use JigSaw provider interface (= Java ServiceLoader), i.e. it wasn't possible (without openening everything), to access ooxml factory classes from main factory stub
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880164 13f79535-47bb-0310-9956-ffa450edef68
3 yıl önce
Dominik Stadler
8e9d10a5ce
Handle more detected FileMagic types gracefully when running regression testing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878871 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Dominik Stadler
6a1e8dbb70
Fix test-failure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877847 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Dominik Stadler
a415ae13f7
Re-establish class which is used in mass-regression-testing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876946 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Andreas Beeker
24c4f94962
Sonar Fixes and remove obsolete classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876019 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Dominik Stadler
a68b67a70b
Support building with Gradle in POIFileScanner tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875849 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Dominik Stadler
e807eed528
Don't create separate instances for NullFileHandler, but rather use a common static instance
This can save some memory during regression testing.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875268 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Dominik Stadler
260fec1a8b
Adjust POIFileScanner for mass regression testing
Fix closing file-handles when scanning for files to test
Refactor to make it easier to test
Some more tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875267 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Tim Allison
636cc83665
Bug 64130 -- handle empty worksheet names in OldSheetRecord more robustly.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873863 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Andreas Beeker
33fd0b22d6
Regression findings - fix missing moveto exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873515 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Andreas Beeker
76d28cc22a
omit bug63955-winmail.dat in no-scratchpad mode
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873495 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Dominik Stadler
d3767e1de7
Improve some assertions and error messages for exceptions seen in the regression tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873385 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
PJ Fanning
d684fe1ebe
fix NPE in test code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873225 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Andreas Beeker
e46ad7452c
Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873015 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Andreas Beeker
88bbcee1c6
try to fix winmail errors in maven / sonar builds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873001 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
PJ Fanning
aa11adebf1
try to fix some jdk 14 build issues due to java.lang.Record causing existing POI Record classes to be ambiguous
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872611 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
PJ Fanning
2797d07486
try to fix some jdk 14 build issues due to java.lang.Record causing existing POI Record classes to be ambiguous
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872610 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce
Andreas Beeker
11b2c7e898
#63955 - HMEFContentsExtractor fails to extract content from winmail.dat
fixed integration test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872523 13f79535-47bb-0310-9956-ffa450edef68
4 yıl önce