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
Files:
9 edited

Legend:

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

    r12989 r14138  
    2121    @Rule
    2222    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    23     public JOSMTestRules test = new JOSMTestRules().platform().preferences().fakeAPI();
     23    public JOSMTestRules test = new JOSMTestRules().preferences().fakeAPI();
    2424
    2525    /**
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMSEndpointTileSourceTest.java

    r14120 r14138  
    3030    @Rule
    3131    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    32     public JOSMTestRules test = new JOSMTestRules().platform().projection();
     32    public JOSMTestRules test = new JOSMTestRules().projection();
    3333
    3434    @Rule
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r14120 r14138  
    4747    @ClassRule
    4848    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    49     public static JOSMTestRules test = new JOSMTestRules().preferences().platform().projection().timeout((int) TimeUnit.MINUTES.toMillis(5));
     49    public static JOSMTestRules test = new JOSMTestRules().preferences().projection().timeout((int) TimeUnit.MINUTES.toMillis(5));
    5050
    5151    @Rule
  • trunk/test/unit/org/openstreetmap/josm/data/osm/DefaultNameFormatterTest.java

    r13766 r14138  
    3838    @Rule
    3939    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    40     public JOSMTestRules test = new JOSMTestRules().platform();
     40    public JOSMTestRules test = new JOSMTestRules();
    4141
    4242    /**
  • 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    /**
  • trunk/test/unit/org/openstreetmap/josm/data/validation/OsmValidatorTest.java

    r11921 r14138  
    1919    @Rule
    2020    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    21     public JOSMTestRules test = new JOSMTestRules().platform();
     21    public JOSMTestRules test = new JOSMTestRules();
    2222
    2323    /**
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java

    r13616 r14138  
    5252    @Rule
    5353    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    54     public JOSMTestRules test = new JOSMTestRules().projection().platform();
     54    public JOSMTestRules test = new JOSMTestRules().projection();
    5555
    5656    static MapCSSTagChecker buildTagChecker(String css) throws ParseException {
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MultipolygonTestTest.java

    r12568 r14138  
    3535    @Rule
    3636    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    37     public JOSMTestRules test = new JOSMTestRules().projection().mapStyles().presets().main().platform();
     37    public JOSMTestRules test = new JOSMTestRules().projection().mapStyles().presets().main();
    3838
    3939    private static Way createUnclosedWay(String tags) {
Note: See TracChangeset for help on using the changeset viewer.