Ignore:
Timestamp:
2016-09-05T01:10:07+02:00 (5 years ago)
Author:
Don-vip
Message:

improve unit tests

Location:
trunk/test/unit/org/openstreetmap/josm/gui/download
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/download/BookmarkSelectionTest.java

    r9669 r10962  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.BeforeClass;
     4import org.junit.Rule;
    55import org.junit.Test;
    6 import org.openstreetmap.josm.JOSMFixture;
    76import org.openstreetmap.josm.data.Bounds;
     7import org.openstreetmap.josm.testutils.JOSMTestRules;
     8
     9import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    810
    911/**
     
    1517     * Setup tests
    1618     */
    17     @BeforeClass
    18     public static void setUpBeforeClass() {
    19         JOSMFixture.createUnitTestFixture().init();
    20     }
     19    @Rule
     20    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     21    public JOSMTestRules test = new JOSMTestRules().preferences();
    2122
    2223    /**
  • trunk/test/unit/org/openstreetmap/josm/gui/download/BoundingBoxSelectionTest.java

    r9669 r10962  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.BeforeClass;
     4import org.junit.Rule;
    55import org.junit.Test;
    6 import org.openstreetmap.josm.JOSMFixture;
    76import org.openstreetmap.josm.data.Bounds;
     7import org.openstreetmap.josm.testutils.JOSMTestRules;
     8
     9import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    810
    911/**
     
    1517     * Setup tests
    1618     */
    17     @BeforeClass
    18     public static void setUpBeforeClass() {
    19         JOSMFixture.createUnitTestFixture().init();
    20     }
     19    @Rule
     20    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     21    public JOSMTestRules test = new JOSMTestRules().preferences();
    2122
    2223    /**
  • trunk/test/unit/org/openstreetmap/josm/gui/download/PlaceSelectionTest.java

    r9669 r10962  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.BeforeClass;
     4import org.junit.Rule;
    55import org.junit.Test;
    6 import org.openstreetmap.josm.JOSMFixture;
    76import org.openstreetmap.josm.data.Bounds;
     7import org.openstreetmap.josm.testutils.JOSMTestRules;
     8
     9import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    810
    911/**
     
    1517     * Setup tests
    1618     */
    17     @BeforeClass
    18     public static void setUpBeforeClass() {
    19         JOSMFixture.createUnitTestFixture().init();
    20     }
     19    @Rule
     20    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     21    public JOSMTestRules test = new JOSMTestRules().preferences();
    2122
    2223    /**
  • trunk/test/unit/org/openstreetmap/josm/gui/download/TileSelectionTest.java

    r9669 r10962  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.BeforeClass;
     4import org.junit.Rule;
    55import org.junit.Test;
    6 import org.openstreetmap.josm.JOSMFixture;
    76import org.openstreetmap.josm.data.Bounds;
     7import org.openstreetmap.josm.testutils.JOSMTestRules;
     8
     9import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    810
    911/**
     
    1517     * Setup tests
    1618     */
    17     @BeforeClass
    18     public static void setUpBeforeClass() {
    19         JOSMFixture.createUnitTestFixture().init();
    20     }
     19    @Rule
     20    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     21    public JOSMTestRules test = new JOSMTestRules().preferences();
    2122
    2223    /**
Note: See TracChangeset for help on using the changeset viewer.