Ignore:
Timestamp:
2018-08-12T02:21:19+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.platform and related methods - new class PlatformManager

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

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java

    r13707 r14138  
    3535import org.junit.Rule;
    3636import org.junit.Test;
    37 import org.openstreetmap.josm.Main;
    3837import org.openstreetmap.josm.data.Bounds;
    3938import org.openstreetmap.josm.data.coor.EastNorth;
     
    4241import org.openstreetmap.josm.testutils.JOSMTestRules;
    4342import org.openstreetmap.josm.tools.Pair;
     43import org.openstreetmap.josm.tools.PlatformManager;
    4444import org.openstreetmap.josm.tools.Utils;
    4545
     
    9090    @Rule
    9191    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    92     public JOSMTestRules test = new JOSMTestRules().platform().projectionNadGrids().timeout(90_000);
     92    public JOSMTestRules test = new JOSMTestRules().projectionNadGrids().timeout(90_000);
    9393
    9494    /**
     
    104104            }
    105105        }
    106         Main.determinePlatformHook();
    107106        Collection<RefEntry> refs = readData();
    108107        refs = updateData(refs);
     
    286285        // see http://geodesie.ign.fr/contenu/fichiers/documentation/algorithmes/notice/NT111_V1_HARMEL_TransfoNTF-RGF93_FormatGrilleNTV2.pdf
    287286        def = def.replace("ntf_r93_b.gsb", "ntf_r93.gsb");
    288         if (Main.isPlatformWindows()) {
     287        if (PlatformManager.isPlatformWindows()) {
    289288            def = def.replace("'", "\\'").replace("\"", "\\\"");
    290289        }
  • trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java

    r14120 r14138  
    2626    @Rule
    2727    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    28     public JOSMTestRules test = new JOSMTestRules().projectionNadGrids().platform();
     28    public JOSMTestRules test = new JOSMTestRules().projectionNadGrids();
    2929
    3030    /**
Note: See TracChangeset for help on using the changeset viewer.