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

    r10378 r10553  
    77
    88import org.junit.Assert;
    9 import org.junit.BeforeClass;
     9import org.junit.Rule;
    1010import org.junit.Test;
    11 import org.openstreetmap.josm.JOSMFixture;
     11import org.openstreetmap.josm.testutils.JOSMTestRules;
     12
     13import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1214
    1315/**
     
    1517 */
    1618public class TextTagParserTest {
    17 
    1819    /**
    19      * Setup test.
     20     * Some of this depends on preferences.
    2021     */
    21     @BeforeClass
    22     public static void setUp() {
    23         JOSMFixture.createUnitTestFixture().init();
    24     }
     22    @Rule
     23    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     24    public JOSMTestRules test = new JOSMTestRules().preferences();
    2525
    2626    /**
Note: See TracChangeset for help on using the changeset viewer.