Changeset 12848 in josm


Ignore:
Timestamp:
2017-09-14T00:09:59+02:00 (2 months ago)
Author:
bastiK
Message:

see #15229 - set up Config for tests

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

Legend:

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

    r12795 r12848  
    2323import org.openstreetmap.josm.io.CertificateAmendment;
    2424import org.openstreetmap.josm.io.OsmApi;
     25import org.openstreetmap.josm.spi.preferences.Config;
    2526import org.openstreetmap.josm.testutils.JOSMTestRules;
    2627import org.openstreetmap.josm.tools.I18n;
     
    9697        System.setProperty("josm.home", josmHome);
    9798        TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
     99        Config.setPreferencesInstance(Main.pref);
    98100        Main.pref.resetToInitialState();
    99101        Main.pref.enableSaveOnPut(false);
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r12807 r12848  
    4040
    4141import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     42import org.openstreetmap.josm.spi.preferences.Config;
    4243
    4344/**
     
    276277        cleanUpFromJosmFixture();
    277278
     279        Config.setPreferencesInstance(Main.pref);
    278280        // All tests use the same timezone.
    279281        TimeZone.setDefault(DateUtils.UTC);
Note: See TracChangeset for help on using the changeset viewer.