RandomSec/main/tests/server/src/com/google/refine/model
Tom Morris 1849e62234
Better error handling for reconciliation process - fixes #2590 (#2671)
* Harden reconciliation - Fixes #2590

- check for non-JSON / unparseable JSON returns
- handle malformed results response with no name for candidates
- catch any Exception, not just IOExceptions
- call processManager.onFailedProcess() for cleanup on error

* Add default constructor for Jackson

Jackson complains about needing a default constructor for the
NON_DEFAULT annotation, but I'm not sure why this worked before.

* Clean up indentation and unused variable - no functional changes

Make indentation consistent throughout the module, changing recently
added lines to use the standard all spaces convention.

Remove unused count variable

* Simplify control flow

* Update limit parameter comment. No functional change.

* Replace ternary expression which is causing NPE

* Add reconciliation tests using mock HTTP server
2020-06-23 21:54:54 +02:00
..
changes Remove uses of junit, closes #2133 2019-08-23 14:09:27 +01:00
recon Better error handling for reconciliation process - fixes #2590 (#2671) 2020-06-23 21:54:54 +02:00
CacheTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
CellTests.java Changed cell.error to cell.errorMessage & added help data. (#2628) 2020-05-23 14:05:25 +02:00
ColumnGroupTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ColumnModelTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ColumnTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ProjectStub.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ReconCandidateTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ReconStatsTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ReconTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
ReconTypeTest.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
RecordModelTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00
RowTests.java Rename test packages to match tested ones, for #2133 2019-08-23 11:55:31 +01:00