Changeset 11060 in josm for trunk/test


Ignore:
Timestamp:
2016-09-27T19:18:02+02:00 (8 years ago)
Author:
simon04
Message:

Checkstyle, fix deprecated usage

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r10937 r11060  
    4242import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    4343import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     44import org.openstreetmap.josm.tools.Logging;
    4445
    4546/**
     
    165166        Main.pref.put("osm-server.atomic-upload", false);
    166167        Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator
    167         Main.logLevel = 4;
     168        Logging.setLogLevel(Logging.LEVEL_DEBUG);
    168169
    169170        File dataSetCacheOutputFile = new File(System.getProperty("java.io.tmpdir"),
  • trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuthParametersTest.java

    r10945 r11060  
    1111import org.openstreetmap.josm.io.OsmApi;
    1212import org.openstreetmap.josm.testutils.JOSMTestRules;
     13import org.openstreetmap.josm.tools.Logging;
    1314
    1415import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    3940        assertNotNull(dev);
    4041        assertNotEquals(def, dev);
    41         Main.logLevel = 5; // enable trace for line coverage
     42        Logging.setLogLevel(Logging.LEVEL_TRACE); // enable trace for line coverage
    4243        assertEquals(def, OAuthParameters.createDefault("wrong_url"));
    4344        OAuthParameters dev2 = new OAuthParameters(dev);
Note: See TracChangeset for help on using the changeset viewer.