aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
Commit message (Collapse)AuthorAgeFilesLines
* Update test to not depend on an existing build-directoryDominik Stadler2015-10-141-22/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708682 13f79535-47bb-0310-9956-ffa450edef68
* Reenable test on Windows which was disabled previously but should now work ↵Dominik Stadler2015-10-141-186/+173
| | | | | | after a workaround was put in place via bug 58480. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708613 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58480: Work around problem where on Windows systems a Mapped Buffer can ↵Dominik Stadler2015-10-142-39/+193
| | | | | | still lock a file even if the Channel was closed properly. Use reflection as DirectBuffer is in package sun.com and thus likely to go away with Java 9. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708609 13f79535-47bb-0310-9956-ffa450edef68
* - removed deprecated and confusing methods in XSSFColorAndreas Beeker2015-10-123-54/+96
| | | | | | - sonar fixes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708236 13f79535-47bb-0310-9956-ffa450edef68
* Format numbers more like Excel doesDavid North2015-10-062-6/+62
| | | | | | | | Thanks to Chris Boyle for the patch https://bz.apache.org/bugzilla/show_bug.cgi?id=58471 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706971 13f79535-47bb-0310-9956-ffa450edef68
* sonar fixes and closing resources after useAndreas Beeker2015-10-062-43/+100
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706937 13f79535-47bb-0310-9956-ffa450edef68
* As discussed at ApacheCon: Try to automatically find test-data in unit ↵Dominik Stadler2015-10-051-2/+6
| | | | | | tests, this makes it easier to get going in Eclipse or other IDEs. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706752 13f79535-47bb-0310-9956-ffa450edef68
* Eclipse warningsDominik Stadler2015-10-051-7/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706750 13f79535-47bb-0310-9956-ffa450edef68
* fixed sonar issues and eclipse warningsAndreas Beeker2015-10-057-332/+564
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706742 13f79535-47bb-0310-9956-ffa450edef68
* removed obsolete classesAndreas Beeker2015-10-053-3217/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706740 13f79535-47bb-0310-9956-ffa450edef68
* Bug 55032: Fix handling missing option values in financial functions PV, FV, ↵Dominik Stadler2015-10-011-0/+33
| | | | | | NPER and PMT git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706254 13f79535-47bb-0310-9956-ffa450edef68
* Bug 50319: Make row groups which include row 0 workDominik Stadler2015-09-291-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1705844 13f79535-47bb-0310-9956-ffa450edef68
* Tried to reproduce bug 48403 but couldn't, still adding the related unit testDominik Stadler2015-09-291-3/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1705830 13f79535-47bb-0310-9956-ffa450edef68
* Add test which shows that bug 46515 is fixed since some time already.Dominik Stadler2015-09-291-0/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1705807 13f79535-47bb-0310-9956-ffa450edef68
* Make XSSF and HSSF consistent in getMergedRegions - return empty list if ↵David North2015-09-231-0/+7
| | | | | | | | there are none, rather than an exception. Tests for this. https://bz.apache.org/bugzilla/show_bug.cgi?id=58350 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704839 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that the ThreadLocal-Biff-Password is reset correctly after each ↵Dominik Stadler2015-09-225-0/+32
| | | | | | usage, we had some unit tests failing sporadically due to this git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704710 13f79535-47bb-0310-9956-ffa450edef68
* - #58216 - provide picture-shape resize that maintains the aspect ratioAndreas Beeker2015-09-212-8/+76
| | | | | | | | | - moved SlideShowFactory to Common SL - changed get/setAnchor to Rectangle instead of Rectangle2D - Fixed some Common SL generic definitions - picture dimensions are now in points and an additional method exists for pixels git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704206 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58333: Apply patch to verify behavior on row-index before and after the ↵Dominik Stadler2015-09-202-1/+31
| | | | | | limits set by the specification git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704186 13f79535-47bb-0310-9956-ffa450edef68
* close resources in junit testsAndreas Beeker2015-09-203-642/+745
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704124 13f79535-47bb-0310-9956-ffa450edef68
* Bug 57925: Add unit test and a simple fix to at least avoid the NPE when ↵Dominik Stadler2015-09-191-0/+18
| | | | | | Workbooks have invalid external references git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1703999 13f79535-47bb-0310-9956-ffa450edef68
* Bug 57915: Fix Dev2Hex for numbers larger than Integer.MAX_VALUE and less ↵Dominik Stadler2015-09-171-0/+22
| | | | | | than Integer.MIN_VALUE git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1703672 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Javen ONeal from bug #58245 - Make Workbook support iterating ↵Nick Burch2015-09-171-0/+75
| | | | | | over Sheets git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1703573 13f79535-47bb-0310-9956-ffa450edef68
* Eclipse warnings, code formatting, simplify ExcelAntWorkbookUtilFactory, ↵Dominik Stadler2015-09-141-0/+1
| | | | | | always close resources, ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1703028 13f79535-47bb-0310-9956-ffa450edef68
* Eclipse warnings, comment out dead code, close resources, enhance unit ↵Dominik Stadler2015-09-132-100/+159
| | | | | | tests, javadoc, ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702802 13f79535-47bb-0310-9956-ffa450edef68
* fix eclipse warning - mostly generics cosmeticsAndreas Beeker2015-09-135-176/+238
| | | | | | | | close resources in tests junit4 conversions convert spreadsheet based formular test to junit parameterized tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702773 13f79535-47bb-0310-9956-ffa450edef68
* fix eclipse warning - mostly generics cosmeticsAndreas Beeker2015-09-1242-889/+1010
| | | | | | | | close resources in tests junit4 conversions convert spreadsheet based formular test to junit parameterized tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702659 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58353: Return correct value in Match-Function with match-type == -1Dominik Stadler2015-09-111-7/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702535 13f79535-47bb-0310-9956-ffa450edef68
* More forbidden apis fixes (added main-tests to the check)Andreas Beeker2015-09-1123-349/+381
| | | | | | | | | 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
* forbidden apis fixes - timezone fix ... will it work?Andreas Beeker2015-09-102-3/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702321 13f79535-47bb-0310-9956-ffa450edef68
* forbidden apis fixes - a few DateFormat clean ups ...Andreas Beeker2015-09-091-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701888 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58326 - Forbidden APIs patches - first set of changes for locale and ↵Andreas Beeker2015-09-0732-1327/+1549
| | | | | | | | | | | | | | | | | | | | | | | | | timezone settings also includes fixes for - name shadowing - unused deprecated method "getClipRect" in classes extending Graphics2d - HexDump - replaced intermediate String.format calls with custom padding - convert testcases to junit4 - closing resources also tested with an arbitary timezone (PST) and locale (ru) supresses forbidden apis check for - LocaleUtil (the only place where Locale.getDefault() and TimeZone.getDefault() should be called) - Classes using FontMetrics - without the actual text it's difficult to return something sane Some usage of UTC and Locale.ROOT might be still wrong, e.g. in MapiMessage we don't access the extended mapi properties, which might contain the timezone DataFormatter has now a Observable property which need to be observed when custom formats are used and the Locale changes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701688 13f79535-47bb-0310-9956-ffa450edef68
* Eclipse warnings, close resources in CommandLineTextExtractor, add ↵Dominik Stadler2015-09-031-4/+6
| | | | | | try/finally, formatting, ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701139 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56959: Add verification unit test to show that the bug cannot be reproducedDominik Stadler2015-09-031-1/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701135 13f79535-47bb-0310-9956-ffa450edef68
* remove trailing comma ... works ok in Oracle jdk6, but maybe not in openjdk ...Andreas Beeker2015-09-022-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700880 13f79535-47bb-0310-9956-ffa450edef68
* Fix DAYS360 for US/EU handlingAndreas Beeker2015-09-018-277/+277
| | | | | | | | fix forbidden api calls add TimeZone (user) override to DateUtil fix a few left open resources in the junit tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700686 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Forbidden APIs errorsNick Burch2015-09-011-5/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700677 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Forbidden APIs errorsNick Burch2015-09-016-8/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700670 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Forbidden APIs errorsNick Burch2015-09-011-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700644 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Forbidden APIs errorsNick Burch2015-09-014-5/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700635 13f79535-47bb-0310-9956-ffa450edef68
* forbidden apis fixesAndreas Beeker2015-08-292-63/+72
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700076 13f79535-47bb-0310-9956-ffa450edef68
* junit4 fixAndreas Beeker2015-08-291-13/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700043 13f79535-47bb-0310-9956-ffa450edef68
* - reworked HexDump class - unified array dumps and usage of standard java ↵Andreas Beeker2015-08-2910-308/+215
| | | | | | | | | | 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
* Adjust excludes for TestRecordListerDominik Stadler2015-08-272-1/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1698081 13f79535-47bb-0310-9956-ffa450edef68
* Refactor BaseXLSIteratingTest into a Parameterized test to better show which ↵Dominik Stadler2015-08-257-128/+112
| | | | | | | | | files failed Simplify exclusion handling Exclude testEXCEL_3.xls and testEXCEL_4.xls in two tests, not sure why this worked before?! git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1697601 13f79535-47bb-0310-9956-ffa450edef68
* Allow multiple instances of HeaderFooterRecord in ↵Dominik Stadler2015-08-251-0/+78
| | | | | | | | | CustomViewSettingsRecordAggregate similar to ChartSubstreamRecordAggreagte in order to read sample 49931.xls correctly after re-saving it with HSSFWorkbook Improve error output git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1697600 13f79535-47bb-0310-9956-ffa450edef68
* Reduce required memory in tests by not actually creating all the rows/cells ↵Dominik Stadler2015-08-241-7/+6
| | | | | | when verifying the max number of cellstyles. Hopefully this will avoid the OOMs that we see in various CI environments currently while still verifying the limits correctly. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1697326 13f79535-47bb-0310-9956-ffa450edef68
* Eclipse warnings, code formatting, missing @Overrides, Javadoc, missing ↵Dominik Stadler2015-08-201-11/+16
| | | | | | close(), ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696794 13f79535-47bb-0310-9956-ffa450edef68
* Somehow the Date formatting via SimpleDateFormatter fails on some CI ↵Dominik Stadler2015-08-201-17/+9
| | | | | | machines, don't rely on this to avoid test-failures due to timezones/locales but rather compare the date directly. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696710 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Javen ONeal from bug #58254 - CellFormatResult.text should check ↵Nick Burch2015-08-191-0/+37
| | | | | | for nulls as per the javadoc git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696638 13f79535-47bb-0310-9956-ffa450edef68
* POI Bug 58260: Fix checks for limit on number of styles in XSSF/SXSSF and ↵Dominik Stadler2015-08-191-2/+72
| | | | | | fix having more than 32k styles in SXSSF workbooks git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696586 13f79535-47bb-0310-9956-ffa450edef68