Commit Graph

43 Commits

Author SHA1 Message Date
Andreas Beeker
a09a3398cc #61243 - Refactor and unify toString/toXml in DDF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800452 13f79535-47bb-0310-9956-ffa450edef68
2017-06-30 20:21:33 +00:00
Andreas Beeker
75dc015766 SonarCube fix - make members private
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1772585 13f79535-47bb-0310-9956-ffa450edef68
2016-12-04 23:49:49 +00:00
Javen O'Neal
c5dddf7fac Eclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765726 13f79535-47bb-0310-9956-ffa450edef68
2016-10-19 21:52:31 +00:00
Javen O'Neal
7dabe1b101 move duplicated NullOutputStream classes to test suite utilities
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1760203 13f79535-47bb-0310-9956-ffa450edef68
2016-09-10 18:47:00 +00:00
Andreas Beeker
e9f333827d fix eclipse warnings
close resources

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735912 13f79535-47bb-0310-9956-ffa450edef68
2016-03-21 00:14:21 +00:00
Dominik Stadler
0a3370347e Fix freeing resources in some tests and dev-tools so we can run unit-tests with enabled file-leak-detector
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1721468 13f79535-47bb-0310-9956-ffa450edef68
2015-12-22 22:35:59 +00:00
Andreas Beeker
fec6b40606 More forbidden apis fixes (added main-tests to the check)
and a few junit4 upgrades
... hopefully this doesn't crash the build again ... :|

to simulate the tests on jenkins on the local developer box, uncomment the UTC lines in the build.xml

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702356 13f79535-47bb-0310-9956-ffa450edef68
2015-09-11 00:56:16 +00:00
Andreas Beeker
33ffe01bff - reworked HexDump class - unified array dumps and usage of standard java calls for hex format
- fixed a few findbugs DM_DEFAULT_ENCODING issues
- removed a few System.out/.err calls - instead the poilogger is used
- closed a few left open resource instances

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700040 13f79535-47bb-0310-9956-ffa450edef68
2015-08-29 14:41:12 +00:00
Dominik Stadler
e64b72a4e1 More coverage of class EscherDump
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691311 13f79535-47bb-0310-9956-ffa450edef68
2015-07-16 03:42:17 +00:00
Andreas Beeker
40e5714372 add license header
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637991 13f79535-47bb-0310-9956-ffa450edef68
2014-11-10 22:52:46 +00:00
Dominik Stadler
31ba1ad5fb Add initial simple test of class EscherDump
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637977 13f79535-47bb-0310-9956-ffa450edef68
2014-11-10 20:36:37 +00:00
Dominik Stadler
927e62f662 Apache POI - Use assertArrayEquals() instead of assertTrue(Arrays.equals()), this way we get better information on failure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595190 13f79535-47bb-0310-9956-ffa450edef68
2014-05-16 13:25:45 +00:00
Andreas Beeker
f32e87957c obsoleted by TestEscherBlipRecord and EscherMetafileBlip
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554104 13f79535-47bb-0310-9956-ffa450edef68
2013-12-30 00:00:54 +00:00
Yegor Kozlov
af696ae5fd optimized unused imports and removed deprecation warnings in poi-main
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1296979 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 09:44:20 +00:00
Sergey Vladimirov
130a5fc04b Update test cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1165604 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 11:15:36 +00:00
Sergey Vladimirov
74ae811b9f update test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1165197 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 08:04:47 +00:00
Sergey Vladimirov
0133ee8b9c update test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1164376 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 07:14:17 +00:00
Sergey Vladimirov
2bb80b559c update EcherContainerRecord.toString() test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1151891 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 15:13:37 +00:00
Yegor Kozlov
e0322786b1 bug 50401 - fixed EscherProperty to return property name instead of 'unknown' for complex properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149111 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 11:00:41 +00:00
Yegor Kozlov
0cc825e8dc prevent ArrayIndexOutOfBoundException in UnknowEscherRecord, see bug #49579
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@979747 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27 15:24:25 +00:00
Josh Micich
a80d363286 Added loose tests to junit hierarchy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@947860 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 23:26:57 +00:00
Josh Micich
2ddd88ed0d Removed unused imports under src/java and src/testcases. Other minor fixes.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@888653 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 00:12:32 +00:00
Yegor Kozlov
bd966f208b removed unnecessary svn:executable flag from files in SVN trunk, see bugzilla 47734
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@814335 13f79535-47bb-0310-9956-ffa450edef68
2009-09-13 16:05:28 +00:00
Yegor Kozlov
728f88bd92 moved all test data to a top-level directory, refactored all junit usages of .testdata.path to one place
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@806959 13f79535-47bb-0310-9956-ffa450edef68
2009-08-23 12:34:24 +00:00
Josh Micich
9926c89006 Fixed compiler warnings - unnecessary throws declaration
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805552 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 19:49:28 +00:00
Josh Micich
995d8fe73f Fixed unused imports compiler warnings (and some others)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805262 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 02:41:45 +00:00
Yegor Kozlov
2089d73506 Fixed OOM in HSSFWorkbook#getAllPictures when reading .xls files containing metafiles, see Bugzilla 47143
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@786793 13f79535-47bb-0310-9956-ffa450edef68
2009-06-20 11:17:30 +00:00
Josh Micich
f8178f716a Fixes to ddf junits after r776424
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@776507 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 00:32:54 +00:00
Josh Micich
e6a53dc85b Changed CRLF to LF in .java test files. Minor reformatting and compiler warning fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@776056 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 19:11:45 +00:00
Josh Micich
8dcd0c8c58 More fixes to allow EscherContainerRecord to exclusively maintain 'child records' field. (due to r745976 / r746018)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@746085 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 01:55:47 +00:00
Josh Micich
8a77c05b99 Fix for bug introduced in r745976. EscherContainerRecord shouldn't hand out it's private 'child records' field.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@746018 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 22:02:14 +00:00
Josh Micich
64aed897ea Removed trailing comma from output of HexDump.toHex()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@694619 13f79535-47bb-0310-9956-ffa450edef68
2008-09-12 06:58:52 +00:00
Yegor Kozlov
c5ce487ede correctly process PICT blips (see bug #44886)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@652288 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 06:19:38 +00:00
Nick Burch
64775cfe62 Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@651992 13f79535-47bb-0310-9956-ffa450edef68
2008-04-27 18:02:13 +00:00
Nick Burch
598e5e1ba8 Patch from Josh from bug #44437 - improved unit test for poifs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629832 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 15:42:06 +00:00
Nick Burch
d29590b7ab Some more updates to the records->usermodel support for hssf shapes. Still not enough there to be useful to pretty much anyone, but at least there's now a framework in place that people can use if they want to support more, and some tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612148 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 16:31:29 +00:00
Yegor Kozlov
97e991ec6e Fix for bug 41946: remember if the complex part of an array property is empty and write back the original empty data
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@527816 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 07:36:13 +00:00
Henri Yandell
fca4623791 Applying the copy2license.pl script (with tiny modification to allow for more whitespace than it expects in the POI header) to all files. ant jar succeeds, and the svn diff has been verified by eye. Still more files to do, this is the first pass.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489730 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:18:16 +00:00
Nick Burch
afcd99d736 Fix for bug 39800 - if the Array size in the simple block doesn't inclde the size of the header, make a note of this, and do the same when we write back out
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413933 13f79535-47bb-0310-9956-ffa450edef68
2006-06-13 16:59:34 +00:00
Nick Burch
f96f6cad16 Add a currently broken test, which highlights a bug (bug report to follow)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@413893 13f79535-47bb-0310-9956-ffa450edef68
2006-06-13 13:19:14 +00:00
Glen Stampoultzis
b94ddd0e9f Added image support for POI. See the quick guide for details. Sponsored through superlink software.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353660 13f79535-47bb-0310-9956-ffa450edef68
2005-05-01 11:26:18 +00:00
Glen Stampoultzis
eeef2a1b12 Merged REL_2_BRANCH to head.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353586 13f79535-47bb-0310-9956-ffa450edef68
2004-08-23 08:52:54 +00:00
Glen Stampoultzis
e16b4b948d Some tests were checkin to the wrong source tree
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353550 13f79535-47bb-0310-9956-ffa450edef68
2004-04-19 10:55:45 +00:00