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

improve unit tests

File:
1 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() {
Note: See TracChangeset for help on using the changeset viewer.