aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss
Commit message (Collapse)AuthorAgeFilesLines
* forbidden apis fixes - timezone fix ... will it work?Andreas Beeker2015-09-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702321 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58326 - Forbidden APIs patches - first set of changes for locale and ↵Andreas Beeker2015-09-0719-662/+749
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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-016-182/+157
| | | | | | | | 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-015-7/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700670 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Forbidden APIs errorsNick Burch2015-09-012-3/+5
| | | | 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-294-24/+28
| | | | | | | | | | 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
* 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
* 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
* 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-181-261/+260
| | | | 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-181-1/+46
| | | | | | coverage git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696427 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-271-14/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692904 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
* Still more checks to track down why canComputeColumnWidth() returns true, ↵Dominik Stadler2015-07-221-4/+4
| | | | | | but width is still returned 0 on freebsd... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692289 13f79535-47bb-0310-9956-ffa450edef68
* Still more checks to track down why canComputeColumnWidth() returns true, ↵Dominik Stadler2015-07-221-6/+16
| | | | | | but width is still returned 0 on freebsd... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692278 13f79535-47bb-0310-9956-ffa450edef68
* Still more checks to track down why canComputeColumnWidth() returns true, ↵Dominik Stadler2015-07-221-5/+45
| | | | | | but width is still returned 0 on freebsd... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1692265 13f79535-47bb-0310-9956-ffa450edef68
* #58130 CF DataBar example and testsNick Burch2015-07-201-1/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691869 13f79535-47bb-0310-9956-ffa450edef68
* #58130 CF DataBar supportNick Burch2015-07-201-5/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691868 13f79535-47bb-0310-9956-ffa450edef68
* #58130 Support for creating CF Color Scale FormattingsNick Burch2015-07-201-1/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691866 13f79535-47bb-0310-9956-ffa450edef68
* #58130 HSSF CF Color Scale color supportNick Burch2015-07-201-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691865 13f79535-47bb-0310-9956-ffa450edef68
* #58130 Enable CF ColorScale support on the rule, and begin testingNick Burch2015-07-191-7/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691860 13f79535-47bb-0310-9956-ffa450edef68
* #58130 Stub the CF Color Scale unit testsNick Burch2015-07-191-13/+49
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691789 13f79535-47bb-0310-9956-ffa450edef68
* #58130 Fix the icon formatting read/write CF testNick Burch2015-07-191-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691788 13f79535-47bb-0310-9956-ffa450edef68
* #58130 More CF Icon unit testsNick Burch2015-07-191-8/+83
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691787 13f79535-47bb-0310-9956-ffa450edef68
* Simplify CF icon rule assertsNick Burch2015-07-181-91/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691764 13f79535-47bb-0310-9956-ffa450edef68
* #58130 Mostly there with CF Icon setsNick Burch2015-07-181-18/+196
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691679 13f79535-47bb-0310-9956-ffa450edef68
* One more try to find out why autosize fails on the freebsd CI machineDominik Stadler2015-07-171-4/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691495 13f79535-47bb-0310-9956-ffa450edef68
* * Some more checks as test still fails on freebsd CI machineDominik Stadler2015-07-161-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691407 13f79535-47bb-0310-9956-ffa450edef68
* * Make on unit test not fail if Fonts are not available on the machineDominik Stadler2015-07-162-3/+95
| | | | | | | | * Refactor SheetUtil a bit to reduce code-duplication, adjust JavaDoc for -1 return values * Add method to check if we can compute text-width * Add unit-tests which verify some more of SheetUtil git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691341 13f79535-47bb-0310-9956-ffa450edef68
* Further HSSF support towards CF IconSets #58130Nick Burch2015-07-151-0/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691113 13f79535-47bb-0310-9956-ffa450edef68
* More CF colour testsNick Burch2015-07-141-4/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691094 13f79535-47bb-0310-9956-ffa450edef68
* Start checking the CF colours in the unit testsNick Burch2015-07-141-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691092 13f79535-47bb-0310-9956-ffa450edef68
* Check more of the complex CF cases from the test filesNick Burch2015-07-131-2/+51
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690813 13f79535-47bb-0310-9956-ffa450edef68
* Move some test checks to using ConditionType instead of raw bytesNick Burch2015-07-131-15/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690808 13f79535-47bb-0310-9956-ffa450edef68
* Enable CF2007 test for XLSX tooNick Burch2015-07-131-1/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690805 13f79535-47bb-0310-9956-ffa450edef68
* Have the HSSF ConditionalFormattingTable look for CF12 records as well, and ↵Nick Burch2015-07-131-4/+29
| | | | | | begin more detailed testing of the high level rules #58130 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690796 13f79535-47bb-0310-9956-ffa450edef68
* CFRule12 testsNick Burch2015-07-131-2/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690778 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58113: Fix regression: NullPointerException when setting cell value to nullDominik Stadler2015-07-131-6/+48
| | | | | | add unit tests which verifies this for all three SS-implementations git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690652 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56865 - Limit number of bytes (by counting them) while opening office docsAndreas Beeker2015-06-231-0/+1
| | | | | | Bug 50090 - 'zip' bomb prevention git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1687148 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56655: Fix Sumifs for cases where the criteria is in error.Dominik Stadler2015-06-201-0/+81
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686610 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56420: Fix possible NullPointerException when empty cell is included in ↵Dominik Stadler2015-06-201-0/+9
| | | | | | Sumif calculation git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686564 13f79535-47bb-0310-9956-ffa450edef68
* Move more tests into base class and add a TestSXSSFBugs class to verify some ↵Dominik Stadler2015-06-171-5/+202
| | | | | | things that are supported against SXSSFWorkbook as well git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686035 13f79535-47bb-0310-9956-ffa450edef68