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/GeometryTest.java

    r9952 r10553  
    66
    77import org.junit.Assert;
    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.actions.search.SearchCompiler;
     
    1615import org.openstreetmap.josm.data.osm.Way;
    1716import org.openstreetmap.josm.io.OsmReader;
     17import org.openstreetmap.josm.testutils.JOSMTestRules;
     18
     19import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1820
    1921/**
     
    2123 */
    2224public class GeometryTest {
    23 
    2425    /**
    25      * Setup test.
     26     * Primitives need preferences and projection.
    2627     */
    27     @BeforeClass
    28     public static void setUp() {
    29         JOSMFixture.createUnitTestFixture().init();
    30     }
     28    @Rule
     29    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     30    public JOSMTestRules test = new JOSMTestRules().preferences().projection();
    3131
    3232    /**
Note: See TracChangeset for help on using the changeset viewer.