aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Add additional checks to narrow down why this test fails when run via MavenDominik Stadler2015-08-191-4/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696584 13f79535-47bb-0310-9956-ffa450edef68
* Make intersection formulae work in XSSF. Patch from Matt Hillsdon plus ↵David North2015-08-192-8/+73
| | | | | | | | additional tests. https://bz.apache.org/bugzilla/show_bug.cgi?id=52111 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696549 13f79535-47bb-0310-9956-ffa450edef68
* Add one unit-test for a different way of calculating workdays to see if this ↵Dominik Stadler2015-08-181-0/+6
| | | | | | also triggers test failures in Sonar Maven runs which currently fail for test-case TestWorkdayFunction git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696498 13f79535-47bb-0310-9956-ffa450edef68
* Fix indentsNick Burch2015-08-182-261/+264
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696429 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Javen ONeal from bug #58252 - More CellReference unit testing ↵Nick Burch2015-08-182-3/+46
| | | | | | coverage git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696427 13f79535-47bb-0310-9956-ffa450edef68
* Try to make Sonar builds run again: add missing dependency, add ↵Dominik Stadler2015-08-162-19/+1
| | | | | | ooxml-schema-security, don't depend on dir test-data and build-directory directly, don't override a POILogger that is set via System Properties git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696165 13f79535-47bb-0310-9956-ffa450edef68
* More consistent test-file output for Excel testingNick Burch2015-08-121-5/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1695605 13f79535-47bb-0310-9956-ffa450edef68
* Fix inconsistent whitespace/indentsNick Burch2015-08-121-392/+388
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1695604 13f79535-47bb-0310-9956-ffa450edef68
* Continue with 55747 / 55324 testingNick Burch2015-08-121-26/+54
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1695603 13f79535-47bb-0310-9956-ffa450edef68
* More tests for 55747 / 55324Nick Burch2015-08-121-11/+123
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1695601 13f79535-47bb-0310-9956-ffa450edef68
* #56519 - XSLFSlide.draw is not working with text embeded in PPTXAndreas Beeker2015-08-091-0/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1694925 13f79535-47bb-0310-9956-ffa450edef68
* NPE fix for text extraction from MSG files with only a short nameNick Burch2015-08-051-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1694255 13f79535-47bb-0310-9956-ffa450edef68
* Further unit tests for #55747Nick Burch2015-08-011-1/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1693675 13f79535-47bb-0310-9956-ffa450edef68
* Unit test for #55747Nick Burch2015-07-311-0/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1693674 13f79535-47bb-0310-9956-ffa450edef68
* Adjust test that is failing on freebsd some moreDominik Stadler2015-07-272-16/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692904 13f79535-47bb-0310-9956-ffa450edef68
* Adjust init of PresetGeometries to not keep the object if static ↵Dominik Stadler2015-07-271-5/+28
| | | | | | initialization fails git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692898 13f79535-47bb-0310-9956-ffa450edef68
* Improve error message slightly, add tests to verify things failing in ↵Dominik Stadler2015-07-271-0/+69
| | | | | | Gump-build currently git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692836 13f79535-47bb-0310-9956-ffa450edef68
* Yet another adjustment to the test as it seems that small values can be ↵Dominik Stadler2015-07-221-4/+11
| | | | | | computed, only larger ones fail, let's find out at which point it fails git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692326 13f79535-47bb-0310-9956-ffa450edef68