Ignore:
Timestamp:
2017-09-14T00:22:37+02:00 (13 months ago)
Author:
bastiK
Message:

see #15229 - use Config in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/preferences/ColorPropertyTest.java

    r10824 r12849  
    99import org.junit.Rule;
    1010import org.junit.Test;
    11 import org.openstreetmap.josm.Main;
     11import org.openstreetmap.josm.spi.preferences.Config;
    1212import org.openstreetmap.josm.testutils.JOSMTestRules;
    1313
     
    4242        assertEquals(Color.RED, base.get());
    4343
    44         Main.pref.put("color.test", "#00ff00");
     44        Config.getPref().put("color.test", "#00ff00");
    4545        assertEquals(new Color(0xff00ff00), base.get());
    4646    }
     
    5555        base.put(new Color(0xff00ff00));
    5656        assertEquals(new Color(0xff00ff00), base.get());
    57         assertEquals("#00ff00", Main.pref.get("color.test").toLowerCase());
     57        assertEquals("#00ff00", Config.getPref().get("color.test").toLowerCase());
    5858
    5959        base.put(null);
Note: See TracChangeset for help on using the changeset viewer.