Changeset 15396 in josm


Ignore:
Timestamp:
2019-10-01T00:07:42+02:00 (5 years ago)
Author:
Don-vip
Message:

fix unit tests and javadoc

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/SystemOfMeasurement.java

    r15395 r15396  
    138138    }
    139139
    140     /** Translated name of this system of measurement. */
     140    /** Translatable name of this system of measurement. */
    141141    private final String name;
    142142    /** First value, in meters, used to translate unit according to above formula. */
     
    167167     * x_a == x_m / aValue
    168168     *
    169      * @param name Translated name of this system of measurement
     169     * @param name Translatable name of this system of measurement
    170170     * @param aValue First value, in meters, used to translate unit according to above formula.
    171171     * @param aName First unit used to format text.
     
    186186     * x_a == x_m / aValue
    187187     *
    188      * @param name Translated name of this system of measurement
     188     * @param name Translatable name of this system of measurement
    189189     * @param aValue First value, in meters, used to translate unit according to above formula.
    190190     * @param aName First unit used to format text.
     
    273273
    274274    /**
    275      * Returns the translated name of this system of measurement.
    276      * @return the translated name of this system of measurement
     275     * Returns the translatable name of this system of measurement.
     276     * @return the translatable name of this system of measurement
    277277     * @since 15395
    278278     */
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/GpxLayerTest.java

    r14337 r15396  
    1111import java.util.Collection;
    1212import java.util.HashMap;
     13import java.util.Locale;
    1314import java.util.TimeZone;
    1415
    1516import javax.swing.JScrollPane;
    1617
     18import org.junit.BeforeClass;
    1719import org.junit.Rule;
    1820import org.junit.Test;
     
    4244    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    4345    public JOSMTestRules test = new JOSMTestRules().main().projection().i18n();
     46
     47    /**
     48     * Setup test
     49     */
     50    @BeforeClass
     51    public static void beforeClass() {
     52        // Make sure we don't rely on a specific country, for distance units
     53        Locale.setDefault(Locale.ENGLISH);
     54    }
    4455
    4556    private static String getHtml(GpxLayer layer) {
Note: See TracChangeset for help on using the changeset viewer.