Changeset 16321 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2020-04-17T17:54:04+02:00 (4 years ago)
Author:
simon04
Message:

fix #18907 - Initialize Territories+RightAndLefthandTraffic together, remove "Edit boundaries" to save memory (unless started with --debug)

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelperTest.java

    r15947 r16321  
    5151    @Rule
    5252    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    53     public JOSMTestRules test = new JOSMTestRules().territories().rlTraffic().projection();
     53    public JOSMTestRules test = new JOSMTestRules().territories().projection();
    5454
    5555    private static TagEditHelper newTagEditHelper() {
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r16272 r16321  
    6565import org.openstreetmap.josm.tools.Logging;
    6666import org.openstreetmap.josm.tools.MemoryManagerTest;
    67 import org.openstreetmap.josm.tools.RightAndLefthandTraffic;
    6867import org.openstreetmap.josm.tools.Territories;
    6968import org.openstreetmap.josm.tools.bugreport.ReportedException;
     
    10099    private boolean useHttps;
    101100    private boolean territories;
    102     private boolean rlTraffic;
    103101    private boolean metric;
    104102    private boolean main;
     
    270268     * @return this instance, for easy chaining
    271269     * @since 12556
    272      */
     270     * @deprecated Use {@link #territories}
     271     */
     272    @Deprecated
    273273    public JOSMTestRules rlTraffic() {
    274274        territories();
    275         rlTraffic = true;
    276275        return this;
    277276    }
     
    551550        if (territories) {
    552551            Territories.initializeInternalData();
    553         }
    554 
    555         if (rlTraffic) {
    556             RightAndLefthandTraffic.initialize();
    557552        }
    558553
  • trunk/test/unit/org/openstreetmap/josm/tools/RightAndLefthandTrafficTest.java

    r16182 r16321  
    2121    @Rule
    2222    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    23     public JOSMTestRules rules = new JOSMTestRules().projection().rlTraffic();
     23    public JOSMTestRules rules = new JOSMTestRules().projection().territories();
    2424
    2525    /**
Note: See TracChangeset for help on using the changeset viewer.