Ignore:
Timestamp:
2017-09-09T10:35:27+02:00 (7 years ago)
Author:
bastiK
Message:

see #15273, see #15229 - fix unit tests, PMD, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r12760 r12795  
    5555    private boolean platform;
    5656    private boolean useProjection;
     57    private boolean useProjectionNadGrids;
    5758    private boolean commands;
    5859    private boolean allowMemoryManagerLeaks;
     
    154155    public JOSMTestRules projection() {
    155156        useProjection = true;
     157        return this;
     158    }
     159
     160    /**
     161     * Set up loading of NTV2 grit shift files to support projections that need them.
     162     * @return this instance, for easy chaining
     163     */
     164    public JOSMTestRules projectionNadGrids() {
     165        useProjectionNadGrids = true;
    156166        return this;
    157167    }
     
    313323        if (useProjection) {
    314324            Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator
     325        }
     326
     327        if (useProjectionNadGrids) {
     328            MainApplication.setupNadGridSources();
    315329        }
    316330
Note: See TracChangeset for help on using the changeset viewer.