Changeset 7075 in josm for trunk/test/unit


Ignore:
Timestamp:
2014-05-08T02:40:40+02:00 (10 years ago)
Author:
Don-vip
Message:

Robustness to allow to run more unit tests in headless mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/session/SessionWriterTest.java

    r7070 r7075  
    44import java.io.File;
    55import java.io.IOException;
    6 import java.util.Collection;
    76import java.util.Collections;
    87import java.util.HashMap;
     
    1918import org.openstreetmap.josm.gui.layer.Layer;
    2019import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     20import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
     21import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference;
    2122import org.openstreetmap.josm.tools.MultiMap;
    2223
     
    7576        Main.initApplicationPreferences();
    7677        Main.determinePlatformHook();
    77         Main.preConstructorInit(new HashMap<MainApplication.Option, Collection<String>>());
     78        ProjectionPreference.setProjection();
     79        Main.toolbar = new ToolbarPreferences();
    7880        new MainApplication();
    7981        Main.main.createMapFrame(null, null);
Note: See TracChangeset for help on using the changeset viewer.