RandomSec/main/tests/server/src/com/google/refine
Tom Morris 83ed9ffdaf
Refactor importer APIs - Fixes #2963 (#2978)
* Make sure data directory is directory, not a file

* Add a test for zip archive import

Also tests the saving of the archive file name and source filename

* Add TODOs - no functional changes

* Cosmetic cleanups

* Revert importer API changes for archive file name parameter

Fixes #2963
- restore binary compatibility to the API
- hoist the handling of both fileSource and archiveFileName from
TabularImportingParserBase and TreeImportingParserBase to
ImportingParserBase so that there's only one copy. These 3 classes are
all part of the internal implementation, so there should be no
compatibility issue.

* Revert weird flow of control for import options metadata

This reverts the very convoluted control flow that was introduced
when adding the input options to the project metadata. Instead
the metadata is all handled in the importer framework rather than
having to change APIs are have individual importers worry about
it.

The feature never had test coverage, so that is still to be added.

* Add test for import options in project metadata & fix bug

Fixes bug where same options object was being reused and overwritten,
so all copies in the list ended up the same.
2020-07-23 18:36:14 +02:00
..
browsing Fix imprecise facet statistics in records mode (#2607) 2020-06-15 19:38:50 +02:00
clustering Use standard text normalization - fixes #2898 (#2900) 2020-07-07 21:35:41 +02:00
commands Fix order dependent NPE in LoadLanguage test (#2922) 2020-07-14 18:06:04 +02:00
exporters Add tests for wide XLS/XLSX export (#2945) 2020-07-16 10:01:17 +02:00
expr Unit test improvements (#2856) 2020-07-02 20:29:21 +02:00
grel Unit test improvements (#2856) 2020-07-02 20:29:21 +02:00
history Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
importers Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00
importing Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00
io Save preferences JSON using UTF-8 encoding. Bulletproof prefs load. (#2657) 2020-06-06 10:00:01 +01:00
model Better error handling for reconciliation process - fixes #2590 (#2671) 2020-06-23 21:54:54 +02:00
operations Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00
preference Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
process Fix race in Process Manager (#2748) 2020-06-17 21:24:25 +02:00
sorting Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
util Fix race in Process Manager (#2748) 2020-06-17 21:24:25 +02:00
HistoryEntryManagerStub.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ProjectManagerStub.java Replace Apache Ant with Commons Compress (#2691) 2020-06-11 16:39:51 +02:00
ProjectManagerTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
RefineServletStub.java Update marc4j to 2.9.1 - Fixes #2962 (#2977) 2020-07-22 22:12:30 +02:00
RefineServletTests.java consistent usage of Apache http status constants (#2432) 2020-03-18 06:40:52 +00:00
RefineTest.java Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00