Changes between Initial Version and Version 1 of Ticket #21423, comment 17
- Timestamp:
- 2022-07-25T16:56:53+02:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21423, comment 17
initial v1 1 1 An additional quick comment on attachment:21423.patch: 2 2 * I did not add a check at test runtime to ensure that tests only ever use a declared error code. This is because we are running tests in three separate areas : 3 * `ValidateAction`4 * `ValidatorCLI`5 * `ValidateUploadHook`3 * [source:trunk/src/org/openstreetmap/josm/actions/ValidateAction.java@18523:55-83#L55 ValidateAction#doValidate] 4 * [source:trunk/src/org/openstreetmap/josm/data/validation/ValidatorCLI.java@18523:243-284#L243 ValidatorCLI#processFile] 5 * [source:trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java@18523:50-98#L50 ValidateUploadHook#checkUpload] 6 6 7 7 I'm looking at creating a new method in `OsmValidator` to run enabled tests so that we aren't doing (effectively) the same thing in three different places, and that is where I'll add the check to ensure all test errors use a declared error code.


