Changeset 10977 in josm for trunk/test


Ignore:
Timestamp:
2016-09-08T23:15:39+02:00 (3 years ago)
Author:
Don-vip
Message:

add/update unit tests, fix indentation

Location:
trunk/test
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/config/unit-josm.home

    • Property svn:ignore
      •  

        old new  
        99ebdirigo
        1010autosave
         11styles
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTest.java

    r10378 r10977  
    44import static org.junit.Assert.assertNotNull;
    55
    6 import org.junit.BeforeClass;
     6import org.junit.Rule;
    77import org.junit.Test;
    8 import org.openstreetmap.josm.JOSMFixture;
    98import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
     9import org.openstreetmap.josm.testutils.JOSMTestRules;
     10
     11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1012
    1113/**
     
    1517
    1618    /**
    17      * Setup test.
     19     * Setup tests
    1820     */
    19     @BeforeClass
    20     public static void setUpBeforeClass() {
    21         JOSMFixture.createUnitTestFixture().init();
    22     }
     21    @Rule
     22    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     23    public JOSMTestRules test = new JOSMTestRules().platform().commands();
    2324
    2425    /**
Note: See TracChangeset for help on using the changeset viewer.