Ignore:
Timestamp:
2017-05-17T11:21:32+02:00 (7 years ago)
Author:
giackserva
Message:

fix #14486

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssistantValidatorTest.java

    r33108 r33321  
    2727import org.openstreetmap.josm.data.validation.TestError;
    2828import org.openstreetmap.josm.data.validation.TestError.Builder;
     29import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    2930import org.openstreetmap.josm.plugins.pt_assistant.PTAssistantPlugin;
    3031import org.openstreetmap.josm.plugins.pt_assistant.actions.FixTask;
     
    4041import org.openstreetmap.josm.plugins.pt_assistant.utils.StopToWayAssigner;
    4142import org.openstreetmap.josm.plugins.pt_assistant.utils.StopUtils;
    42 import org.openstreetmap.josm.tools.Utils;
    4343
    4444public class PTAssistantValidatorTest extends Test {
     
    410410        }
    411411
     412        @Override
     413        public void startTest(ProgressMonitor progressMonitor) {
     414                super.startTest(progressMonitor);
     415
     416                // reset the static collections in SegmentChecker:
     417                SegmentChecker.reset();
     418        }
     419
    412420        /**
    413421         * Method is called after all primitives has been visited, overrides the
    414422         * method of the superclass.
    415423         */
     424        @Override
    416425        public void endTest() {
    417                
     426
    418427                // modify the error messages for the stop-by-stop test:
    419428                SegmentChecker.modifyStopByStopErrorMessages();
     
    425434                        this.errors.add(error);
    426435                }
    427                
    428                 // reset the static collections in SegmentChecker:
    429                 SegmentChecker.reset();
    430436
    431437                super.endTest();
Note: See TracChangeset for help on using the changeset viewer.