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

improve unit tests

Location:
trunk/test/unit/org/openstreetmap/josm/gui/help
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/help/HelpBrowserTest.java

    r10103 r10962  
    55import static org.junit.Assert.assertNull;
    66
    7 import org.junit.BeforeClass;
     7import org.junit.Rule;
    88import org.junit.Test;
    9 import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.testutils.JOSMTestRules;
    1010import org.openstreetmap.josm.tools.LanguageInfo.LocaleType;
     11
     12import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1113
    1214/**
     
    2224     * Setup tests
    2325     */
    24     @BeforeClass
    25     public static void setUpBeforeClass() {
    26         JOSMFixture.createUnitTestFixture().init();
    27     }
     26    @Rule
     27    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     28    public JOSMTestRules test = new JOSMTestRules().preferences().platform();
    2829
    2930    static IHelpBrowser newHelpBrowser() {
  • trunk/test/unit/org/openstreetmap/josm/gui/help/HelpContentReaderTest.java

    r10103 r10962  
    44import static org.junit.Assert.assertFalse;
    55
    6 import org.junit.BeforeClass;
     6import org.junit.Rule;
    77import org.junit.Test;
    8 import org.openstreetmap.josm.JOSMFixture;
     8import org.openstreetmap.josm.testutils.JOSMTestRules;
     9
     10import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    911
    1012/**
     
    1618     * Setup tests
    1719     */
    18     @BeforeClass
    19     public static void setUpBeforeClass() {
    20         JOSMFixture.createUnitTestFixture().init();
    21     }
     20    @Rule
     21    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     22    public JOSMTestRules test = new JOSMTestRules();
    2223
    2324    /**
Note: See TracChangeset for help on using the changeset viewer.