Changeset 14139 in josm for trunk/test


Ignore:
Timestamp:
2018-08-12T02:52:44+02:00 (16 months ago)
Author:
Don-vip
Message:

see #15229 - move Main initialization methods to lifecycle SPI + new class MainInitialization

File:
1 edited

Legend:

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

    r14138 r14139  
    2222import org.openstreetmap.josm.gui.MainApplication;
    2323import org.openstreetmap.josm.gui.MainApplicationTest;
     24import org.openstreetmap.josm.gui.MainInitialization;
    2425import org.openstreetmap.josm.gui.layer.LayerManagerTest.TestLayer;
    2526import org.openstreetmap.josm.gui.util.GuiHelper;
    2627import org.openstreetmap.josm.io.CertificateAmendment;
    2728import org.openstreetmap.josm.io.OsmApi;
     29import org.openstreetmap.josm.spi.lifecycle.Lifecycle;
    2830import org.openstreetmap.josm.spi.preferences.Config;
    2931import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    161163        initToolbar();
    162164        if (Main.main == null) {
    163             new MainApplication().initialize();
     165            Lifecycle.initialize(new MainInitialization(new MainApplication()));
    164166        }
    165167        // Add a test layer to the layer manager to get the MapFrame
Note: See TracChangeset for help on using the changeset viewer.