Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (6 years ago)
Author:
Don-vip
Message:

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File:
1 edited

Legend:

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

    r8509 r17275  
    22package org.openstreetmap.josm.gui;
    33
    4 import static org.junit.Assert.assertEquals;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
    55
    66import java.text.DecimalFormat;
     
    88import java.util.Locale;
    99
    10 import org.junit.BeforeClass;
    11 import org.junit.Test;
     10import org.junit.jupiter.api.BeforeAll;
     11import org.junit.jupiter.api.Test;
    1212import org.openstreetmap.josm.JOSMFixture;
    1313import org.openstreetmap.josm.data.SystemOfMeasurement;
     
    1616 * Unit tests of {@link SystemOfMeasurement} class.
    1717 */
    18 public class SystemOfMeasurementTest {
     18class SystemOfMeasurementTest {
    1919
    2020    /**
    2121     * Setup test.
    2222     */
    23     @BeforeClass
     23    @BeforeAll
    2424    public static void setUp() {
    2525        JOSMFixture.createUnitTestFixture().init();
     
    3030     */
    3131    @Test
    32     public void testGetDistText() {
     32    void testGetDistText() {
    3333
    3434        assertEquals("< 0.01 m", SystemOfMeasurement.METRIC.getDistText(-1));
     
    7171     */
    7272    @Test
    73     public void testGetDistTextLocalized() {
     73    void testGetDistTextLocalized() {
    7474        final DecimalFormat format = new DecimalFormat("0.000", DecimalFormatSymbols.getInstance(Locale.GERMAN));
    7575        assertEquals("0,001 m", SystemOfMeasurement.METRIC.getDistText(0.001, format, 1e-6));
     
    8484     */
    8585    @Test
    86     public void testGetAreaText() {
     86    void testGetAreaText() {
    8787        assertEquals("< 0.01 m²", SystemOfMeasurement.METRIC.getAreaText(-1));
    8888        assertEquals("< 0.01 m²", SystemOfMeasurement.METRIC.getAreaText(-0.99));
Note: See TracChangeset for help on using the changeset viewer.