Changeset 10445 in josm for trunk/test


Ignore:
Timestamp:
2016-06-21T00:32:25+02:00 (4 years ago)
Author:
Don-vip
Message:

fix NPE in JOSMTestRules + ignore findbugs warning

File:
1 edited

Legend:

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

    r10443 r10445  
    1919import org.openstreetmap.josm.io.OsmTransferCanceledException;
    2020import org.openstreetmap.josm.tools.I18n;
     21
     22import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2123
    2224/**
     
    216218     * Clean up what test not using these test rules may have broken.
    217219     */
     220    @SuppressFBWarnings("DM_GC")
    218221    private void cleanUpFromJosmFixture() {
    219222        Main.getLayerManager().resetState();
    220223        Main.pref = null;
    221224        Main.platform = null;
    222         Main.pref.put("osm-server.url", "invalid-server");
    223225        System.gc();
    224226    }
     
    227229     * Clean up after running a test
    228230     */
     231    @SuppressFBWarnings("DM_GC")
    229232    protected void after() {
    230233        // Sync AWT Thread
Note: See TracChangeset for help on using the changeset viewer.