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

improve unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/bbox/SizeButtonTest.java

    r9954 r10962  
    66import static org.junit.Assert.assertTrue;
    77
    8 import org.junit.BeforeClass;
     8import org.junit.Rule;
    99import org.junit.Test;
    10 import org.openstreetmap.josm.JOSMFixture;
    1110import org.openstreetmap.josm.TestUtils;
    1211import org.openstreetmap.josm.gui.bbox.SizeButton.AccessibleSizeButton;
     12import org.openstreetmap.josm.testutils.JOSMTestRules;
     13
     14import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1315
    1416/**
     
    2022     * Setup tests
    2123     */
    22     @BeforeClass
    23     public static void setUpBeforeClass() {
    24         JOSMFixture.createUnitTestFixture().init(true);
    25     }
     24    @Rule
     25    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     26    public JOSMTestRules test = new JOSMTestRules().preferences();
    2627
    2728    /**
Note: See TracChangeset for help on using the changeset viewer.