Commit Graph

469 Commits

Author SHA1 Message Date
Antonin Delpeuch
539585fc5e Jackson serialization for cell operations 2018-11-30 19:19:01 +09:00
Antonin Delpeuch
e661a647f3 Change isSerializedTo to check for Jackson serialization 2018-11-30 19:14:03 +09:00
jackyq2015
02871e1b6f fix issue #1802 -- escape single quote in SQL export 2018-11-26 19:40:22 -05:00
Antonin Delpeuch
95d0cf546d
Merge pull request #1845 from ostephens/parseXml
Parse xml
2018-11-25 18:44:38 +00:00
Antonin Delpeuch
0d3c7c7af4
Merge pull request #1852 from ostephens/fix-cross
Enable Cross to work with non-string wrapped cells
2018-11-24 15:28:05 +00:00
Owen Stephens
04d2e04b4c Tidy up Cross tests 2018-11-23 13:50:34 +00:00
Owen Stephens
72be6e14a4 Update Cross tests to include tests for Wrapped cells/non-strings 2018-11-22 17:54:14 +00:00
Owen Stephens
2ad0e76aca Updating tests for List Facets 2018-11-22 13:43:02 +00:00
Owen Stephens
fb8697ef9c Minor code tidy 2018-11-22 12:36:37 +00:00
Owen Stephens
acea8e5671 Update cache test to ensure correct facet created 2018-11-22 12:36:37 +00:00
Owen Stephens
55e3914c8d Add test for new List/Text facet behaviour 2018-11-22 12:33:39 +00:00
Owen Stephens
22072c498b Add tests for grouper for list facet 2018-11-22 12:33:39 +00:00
Owen Stephens
78360f5e0c Add tests for htmlText and xmlText 2018-11-22 00:38:08 +00:00
Owen Stephens
58352e4e56 Update tests for XML and HTML functions 2018-11-21 15:59:15 +00:00
Owen Stephens
1f023b53af Remove deprecated HTML functions and tests 2018-11-20 20:21:30 +00:00
Owen Stephens
c4f2ccd353 Extend parseHtml tests 2018-11-20 20:19:46 +00:00
Owen Stephens
e38dcdf7a7 Add intial tests for XML parsing 2018-11-20 20:18:58 +00:00
Owen Stephens
b5355b3c12 Correct typo 2018-11-18 13:12:41 +00:00
Antonin Delpeuch
3431a9ee1e
Merge pull request #1829 from OpenRefine/issue1827
Fix issue of empty list facet choices disappearing.
2018-11-17 08:56:41 +00:00
Antonin Delpeuch
0e0dcbafef Fix issue of empty list facet choices disappearing. Closes #1827. 2018-11-16 12:52:07 +00:00
Antonin Delpeuch
b85d4d0cb8
Merge pull request #1826 from ostephens/fix-todate
Fix toDate
2018-11-16 10:30:56 +00:00
Owen Stephens
8f135eddb8 Add test for parsing a string with a two digit year 2018-11-15 23:47:22 +00:00
Owen Stephens
1627a51075 Reorganises ToDate function, adds tests and fixes #1759 2018-11-15 18:20:55 +00:00
Owen Stephens
cc12098828 Initial attempt to fix toDate function 2018-11-08 09:11:49 +00:00
Antonin Delpeuch
1eb9ef78ef Fix cell index computation in filldown/blankdown 2018-11-03 17:10:23 +00:00
Owen Stephens
c3e49e79ab Add support for N-triples and Turtle 2018-10-27 19:04:07 +01:00
Owen Stephens
42e8c86a78 Add support for JSON-LD import 2018-10-27 06:34:33 +01:00
Antonin Delpeuch
47323a9e75
Merge pull request #1736 from OpenRefine/maven2
Migrate to Maven, take 2
2018-10-22 14:41:48 +01:00
omkar
f4be9f5fe1 Misc refactoring and made all the tests in the SmartSplitTests class independent by replacing BeforeSuite with BeforeTest 2018-10-15 22:28:30 +05:30
omkar
ca572a6a2d Added unit tests for smartSplit() function 2018-10-15 20:55:10 +05:30
Antonin Delpeuch
d2edffcef4
Merge pull request #1754 from OpenRefine/issue1596
Directly use column as reconciliation results
2018-10-12 11:05:12 +01:00
Antonin Delpeuch
5f551370b3 Tests for UseValuesAsIdentifiers operation 2018-10-02 12:32:30 +01:00
Antonin Delpeuch
22be1ec323
Merge pull request #1731 from xseris/master
Custom column names for separator based importer
2018-09-24 08:29:46 +01:00
Antonin Delpeuch
ec3e9ab1e9
Merge pull request #1730 from OpenRefine/json-clustering
Refactor clustering serialization in JSON
2018-09-16 18:52:11 +01:00
Antonin Delpeuch
d421fd7fbf
Merge pull request #1729 from OpenRefine/json-engineconfig
Store engine configuration in dedicated class
2018-09-16 18:51:41 +01:00
Antonin Delpeuch
782ae4e788 Revert "Revert "Migrate to Maven""
This reverts commit c20918b73d.
2018-09-16 15:34:47 +01:00
Jacky
c20918b73d
Revert "Migrate to Maven" 2018-09-16 10:16:50 -04:00
Jacky
e3813d9820
Merge pull request #1725 from OpenRefine/maven
Migrate to Maven
2018-09-15 21:45:12 -04:00
xseris
31c70be20a Fixed importing test 2018-09-13 15:12:52 +02:00
xseris
f288bc653e Added test, changed visualization 2018-09-13 14:45:38 +02:00
Antonin Delpeuch
c9436f563d Refactor kNNClusterer for serialization 2018-09-10 15:49:59 +01:00
Antonin Delpeuch
31954862e8 Refactor BinningClusterer for JSON serialization 2018-09-10 15:49:52 +01:00
Antonin Delpeuch
5a0304f363
Merge pull request #1722 from OpenRefine/json-testing
Add serialization tests for most Jsonizable classes
2018-09-10 15:35:25 +01:00
Antonin Delpeuch
9b54ac2bd2 Remove jars of dependencies 2018-09-10 15:11:21 +01:00
Antonin Delpeuch
07ab7da872
Merge pull request #1697 from OpenRefine/issue1696
Clickable URLs in HTML exporter
2018-09-05 14:58:44 +01:00
Antonin Delpeuch
fbc9b27640 Store engine configuration as EngineConfig rather than JSONObject 2018-09-05 14:49:39 +01:00
Antonin Delpeuch
f6256aae62 Fix engineConfig JSON in fetch URLs tests 2018-09-05 12:07:50 +01:00
Antonin Delpeuch
f327b09a59 Reorganize facet parsing and discontinue initializeFromJSON on Facet 2018-09-05 12:03:54 +01:00
Antonin Delpeuch
5b4cab947e Introduce EngineConfig class to avoid manipulating JSON objects directly 2018-09-05 11:00:20 +01:00
Antonin Delpeuch
7a3d13ef47 Refactor TextSearchFacet for JSON serialization 2018-09-05 10:51:31 +01:00
Antonin Delpeuch
daeb7ab6df Refactor ScatterplotFacet for JSON serialization 2018-09-05 10:08:53 +01:00
Antonin Delpeuch
1186776235 Refactor TimeRangeFacet for JSON serialization 2018-09-04 18:19:18 +01:00
Antonin Delpeuch
8e8b3c18c5 Refactor RangeFacetTests for serialization 2018-09-04 11:49:48 +01:00
Antonin Delpeuch
497eee5a75 Add serialization tests for ListFacet 2018-09-04 10:09:38 +01:00
Antonin Delpeuch
f6bbb64c98 Fix import errors 2018-09-01 14:55:37 +02:00
Antonin Delpeuch
851d24c39b Add serialization tests for GREL functions 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
eb0a37a22a Fix PreferenceStore serialization test 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
802ad77ec5 Add serialization tests for GREL controls 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
326fda7999 Add JSON serialization tests for NominalFacetChoice 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
953a7380fe Cleanup imports 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
da9978b365 Add serialization tests for preference classes 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
580fd92c10 Add JSON serialization tests for processes 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
debe9bde37 Serialization test for EvalError 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
2dde302a90 Add JSON serialization tests for refine.history and refine.browsing 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
14233b8ea8 Serialization tests for operations.row 2018-09-01 12:42:05 +02:00
Antonin Delpeuch
6ccd8ea9ee Deserialization test for Denormalize operation 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
73171755f3 More JSON tests for operations 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
4013c0b8c5 Add (de)serialization tests to existing operation test classes 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
dbff74650d Cleanup imports 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
8896636017 Add deserialization tests for operations 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
2edf83bdf7 Start serialization tests for operations 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
fac8936411 Serialization tests for model classes 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
c6d2b003b1 Start serialization tests 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
d9bff34411 Add testing utilites for JSON serialization 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
2b57350adf Cleanup StandardReconConfigTests 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
b12b29b393 Rename ReconTests 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
3ea1822773 Remove duplicate test class introduced by Jacky 2018-09-01 12:40:23 +02:00
Antonin Delpeuch
f41678e087 Move tests to their relevant package. 2018-09-01 12:40:22 +02:00
Antonin Delpeuch
94b6b1f945
Merge pull request #1692 from OpenRefine/issue1689
Fix exception when sorting the empty string numerically
2018-08-30 08:09:20 +02:00
Jacky
21712db6e0
Merge pull request #1698 from OpenRefine/issue1681
Fix unescape GREL function in javascript mode.
2018-08-29 21:24:52 -04:00
Antonin Delpeuch
d01f916101 Remove test assertion that can fail depending on the locale 2018-08-08 11:51:10 +01:00
TonyO
c1af2f1179 fixed issue 1684 with decimal values 2018-08-07 11:25:49 +01:00
Antonin Delpeuch
09bb2903f2 Add test for sorting exception, issue #1689 2018-08-07 11:24:22 +01:00
Antonin Delpeuch
18c489855b Test for clickable URLs in HTML exporter 2018-08-07 11:23:49 +01:00
Antonin Delpeuch
87b6aadbad Fix unescape GREL function in javascript mode. Closes #1681. 2018-08-07 11:23:14 +01:00
Owen Stephens
64ed24e082 Small amount of tidying up code 2018-06-23 00:28:45 +01:00
Owen Stephens
420c9bd1a5 Add tests for grouping of values in text facets 2018-06-23 00:18:00 +01:00
Owen Stephens
d309af7f1a Update string conversion tests to reflect new behaviour of stringUtils 2018-06-23 00:18:00 +01:00
Owen Stephens
a159e76a62 Added test for reconstructing mass edits on dates 2018-06-23 00:18:00 +01:00
Antonin Delpeuch
9f7d5b8786
Merge pull request #1638 from OpenRefine/issue1637
Do not discard the recon space when marking cells as new items.
2018-06-22 12:23:15 +02:00
Jacky
f3dbc18214
Merge pull request #1642 from ostephens/mass-edit-fix
Mass edit fix for blanks, numbers and booleans
2018-06-20 22:00:34 -04:00
Antonin Delpeuch
448a969cb1
Merge pull request #1656 from OpenRefine/issue/1648
fix the template load issue and package typo
2018-06-17 09:23:52 +01:00
Jacky
5a6c9d72f0 fix the template load issue and package typo 2018-06-16 15:43:29 -04:00
Owen Stephens
5ecb1afe13 Updated toString test to new behaviour for null.toString() 2018-06-14 12:36:01 +01:00
Owen Stephens
92e456d2ff More tidying of tests 2018-06-08 20:09:29 +01:00
Owen Stephens
2e9708c16d Tidying up test file 2018-06-08 20:03:38 +01:00
Thad Guidry
057b64fcc2
Increasing to 10 second sleep because of Travis
In Travis these tests are occasionally failing https://travis-ci.org/OpenRefine/OpenRefine/jobs/3896227 which is probably due to the CPU demand spike placed with createProcess.
2018-06-08 06:26:08 -05:00
Owen Stephens
97ea151134 Removed date tests 2018-06-08 09:40:50 +01:00
Owen Stephens
256a81e308 Initial MassOperationTests
Corrected and expanded tests for ReconstructEdit

Improve tests
2018-06-08 09:40:35 +01:00
Antonin Delpeuch
a63151bbcc Do not discard the recon space when marking cells as new items.
Fixes #1637
2018-06-04 12:16:33 +01:00
Jacky
345be88de8 fix UT testHttpHeaders 2018-05-29 22:43:17 -04:00
Jacky
476ece5a67
Merge pull request #1617 from OpenRefine/issue1600
Remove DataExtensions from change serialization
2018-05-24 15:00:34 -04:00
Antonin Delpeuch
d8f081b977 Remove DataExtensions from change serialization 2018-05-22 23:09:51 +02:00
Antonin Delpeuch
b01177c0d9
Merge pull request #1597 from OpenRefine/issue/1588-2
unify the internal date type
2018-05-18 22:03:14 +02:00
Owen Stephens
19a134d4ae Corrected spelling of Calender to Calendar 2018-05-17 10:01:04 +01:00
Jacky
52a2ec05e1
Merge pull request #1598 from ostephens/no-field-null
No field null
2018-05-16 16:01:05 -04:00
Jacky
a103e1fb90 merge the translation 2018-05-16 15:40:05 -04:00
Jacky
147616f41c add more UT for tostring 2018-05-14 22:01:06 -04:00
Jacky
5adb3e455c fix the date format bug 2018-05-14 21:25:47 -04:00
Jacky
8fe27eff58 use yyyy-mm-dd formatter when converting date to string 2018-05-12 20:19:55 -04:00
Owen Stephens
1e2c0c0a04 Added tests for getting non-existent fields and changed test for parser eval error 2018-05-10 16:37:11 -04:00
Jacky
cf5c884ca0 fix minor issues 2018-05-09 23:15:51 -04:00
Jacky
c1132aa58a add nano support 2018-05-09 22:57:10 -04:00
Jacky
a53d0970ea clean up the UT 2018-05-08 22:13:47 -04:00
Jacky
f58d963dbd Merge branch 'issue/1588' of https://github.com/OpenRefine/OpenRefine into issue/1588-2 2018-05-07 17:26:02 -04:00
Antonin Delpeuch
8c2c4546d4
Merge pull request #1568 from OpenRefine/fix-mark-new-items
Fix identifier space for cells reconciled to New
2018-05-06 08:45:25 +02:00
Antonin Delpeuch
b8472cf6b8
Merge pull request #1573 from OpenRefine/issue472
Fix FillDown and BlankDown operations on records.
2018-05-06 08:45:01 +02:00
Jacky
19f98b7ea2 java 8 time API migrate 2018-05-05 11:41:40 -04:00
Jacky
6787ab881e implement nano date part UT 2018-05-02 22:02:57 -04:00
Jacky
34c46111ea undo the incidently push to master 2018-05-02 21:40:23 -04:00
Jacky
47d6f79e35 implement nano data part 2018-05-02 21:23:17 -04:00
TonyO
0eb7b4082f added null and default value options 2018-04-26 20:50:46 -05:00
Antonin Delpeuch
1daa4d1312 Fix date parsing.
Closes #1564.
2018-04-22 10:49:22 +02:00
Antonin Delpeuch
53c12ca2df Fix FillDown and BlankDown operations on records.
Closes #472.
2018-04-21 22:11:54 +02:00
Antonin Delpeuch
716a1606b4
Merge pull request #1558 from gobertm/master
Contains function supports now regex as second argument
2018-04-19 10:46:15 +02:00
Maxime Gobert
304f65045b Contains function tests 2018-04-18 12:17:26 +02:00
Antonin Delpeuch
2b237433f9 Fix identifier space for cells reconciled to New 2018-04-15 01:20:25 +02:00
Jacky
de42f4d85a migrate from JRDF to JENA library 2018-04-08 22:38:23 -04:00
TonyO
3834c27c8f SQL Export Code Commit 2018-03-24 22:41:07 -05:00
Antonin Delpeuch
c536584991
Merge pull request #1536 from ostephens/coalesce
Add coalesce function
2018-03-18 13:06:52 +00:00
Owen Stephens
6e02baaa8a Coalesce must have at least two arguments 2018-03-17 16:21:05 +00:00
Owen Stephens
998eefc869 Make codacy happier 2018-03-14 23:59:13 +00:00
Owen Stephens
74a6782ca0
Merge pull request #1524 from OpenRefine/issue/1508
support project backward compatibility to old version of OpenRefine
2018-03-07 09:36:13 +00:00
Owen Stephens
01b96a0155 Add coalesce function 2018-03-07 09:10:11 +00:00
Jacky
23ec54b78f support project backward compatibility to old version of OpenRefine 2018-02-28 20:16:29 -05:00
Jacky
54553da733
Merge pull request #1518 from OpenRefine/issue/1509
Fix issue #1509
2018-02-28 19:42:07 -05:00
Jacky
ab26bf4a27 fix issue #1517, limit is writen as int and should have been read as int 2018-02-25 17:22:34 -05:00
Jacky
73c5c640cc tidy up import 2018-02-25 15:43:37 -05:00
Jacky
036866837a add UT for issue #1509 2018-02-25 15:31:59 -05:00
Antonin Delpeuch
3dcb3f1faf
Merge pull request #1515 from ostephens/conversions
Conversions
2018-02-22 09:49:49 +00:00
Owen Stephens
2758633f32 Update toDate and toNumber tests to handle null and empty strings correctly 2018-02-21 23:10:38 +00:00
Owen Stephens
731e1310c6 Stripping stuff we don't need out of the tests 2018-02-19 13:42:45 +00:00
Owen Stephens
d2687cc58a Treat null and empty string as different values when doing transforms 2018-02-18 23:19:28 +00:00
Joanne
e0d87c3d94 Update tests to match updated range function 2018-02-16 15:13:37 +00:00
Joanne
01d8e458f4 Update tests to match updated range function 2018-02-16 15:13:37 +00:00
Joanne
e2793daf54 Update tests for improved range function 2018-02-16 15:13:37 +00:00
Joanne
d95f5985b9 Add tests for range function 2018-02-16 15:13:37 +00:00
Owen Stephens
0d04a25cf1
Merge pull request #1450 from OpenRefine/issue1448
Make Wikitext importer more robust
2018-02-07 17:41:23 +00:00
Antonin Delpeuch
f5ff5565ff Cleanup for Codacy and better parsing of quote character 2018-02-03 16:37:15 +00:00
Antonin Delpeuch
a89bbcbbe2 Add missing method removed during merge 2018-02-03 14:29:24 +00:00