Changeset 16679 in josm for trunk


Ignore:
Timestamp:
2020-06-19T20:10:15+02:00 (4 years ago)
Author:
simon04
Message:

Fix InspectPrimitiveDialogTest\

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialogTest.java

    r16676 r16679  
    99import javax.swing.JPanel;
    1010
     11import org.junit.After;
     12import org.junit.Before;
    1113import org.junit.Rule;
    1214import org.junit.Test;
     15import org.openstreetmap.josm.data.SystemOfMeasurement;
    1316import org.openstreetmap.josm.data.coor.LatLon;
    1417import org.openstreetmap.josm.data.osm.DataSet;
     
    3336    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3437    public JOSMTestRules test = new JOSMTestRules().main().projection().mapStyles();
     38
     39    /**
     40     * Setup test
     41     */
     42    @Before
     43    public void setUp() {
     44        SystemOfMeasurement.PROP_SYSTEM_OF_MEASUREMENT.put("METRIC");
     45
     46    }
     47
     48    /**
     49     * Cleanup test
     50     */
     51    @After
     52    public void tearDown() {
     53        SystemOfMeasurement.PROP_SYSTEM_OF_MEASUREMENT.put(null);
     54    }
    3555
    3656    /**
Note: See TracChangeset for help on using the changeset viewer.