Ignore:
Timestamp:
2016-07-17T14:54:06+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13079 - Use JOSMTestRules instead of JOSMFixture (tools tests, patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/PredicatesTest.java

    r10399 r10553  
    1111import java.util.regex.Pattern;
    1212
    13 import org.junit.BeforeClass;
     13import org.junit.Rule;
    1414import org.junit.Test;
    15 import org.openstreetmap.josm.JOSMFixture;
    1615import org.openstreetmap.josm.data.osm.Node;
    1716import org.openstreetmap.josm.data.osm.OsmPrimitive;
     17import org.openstreetmap.josm.testutils.JOSMTestRules;
     18
     19import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1820
    1921/**
     
    2426public class PredicatesTest {
    2527    /**
    26      * Not needed by this test, but JOSM has so many dependencies :-(
    27      */
    28     @BeforeClass
    29     public static void setUpClass() {
    30         JOSMFixture.createUnitTestFixture().init();
    31     }
     28     * Some of this depends on preferences.
     29     */
     30    @Rule
     31    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     32    public JOSMTestRules test = new JOSMTestRules().preferences();
    3233
    3334    /**
Note: See TracChangeset for help on using the changeset viewer.