Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (3 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/dialogs/properties/TagEditHelperTest.java

    r16321 r17275  
    22package org.openstreetmap.josm.gui.dialogs.properties;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertFalse;
    6 import static org.junit.Assert.assertNotNull;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertFalse;
     6import static org.junit.jupiter.api.Assertions.assertNotNull;
    77
    88import java.awt.GraphicsEnvironment;
     
    2121import javax.swing.table.DefaultTableModel;
    2222
    23 import org.junit.Rule;
    24 import org.junit.Test;
     23import org.junit.jupiter.api.extension.RegisterExtension;
     24import org.junit.jupiter.api.Test;
    2525import org.openstreetmap.josm.TestUtils;
    2626import org.openstreetmap.josm.data.coor.LatLon;
     
    4444 * Unit tests of {@link TagEditHelper} class.
    4545 */
    46 public class TagEditHelperTest {
     46class TagEditHelperTest {
    4747
    4848    /**
    4949     * Setup tests
    5050     */
    51     @Rule
     51    @RegisterExtension
    5252    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    5353    public JOSMTestRules test = new JOSMTestRules().territories().projection();
     
    6464     */
    6565    @Test
    66     public void testAcItemComparator() {
     66    void testAcItemComparator() {
    6767        List<AutoCompletionItem> list = new ArrayList<>();
    6868        list.add(new AutoCompletionItem("Bing Sat"));
     
    8181     */
    8282    @Test
    83     public void testContainsDataKey() {
     83    void testContainsDataKey() {
    8484        assertFalse(newTagEditHelper().containsDataKey("foo"));
    8585        // TODO: complete test
     
    9292     */
    9393    @Test
    94     public void testTicket18764() throws Exception {
     94    void testTicket18764() throws Exception {
    9595        testIcon("*[building] ⧉ *[highway] { text: tr(\"Building crossing highway\"); }", ds -> {
    9696            Way way = TestUtils.newWay("", new Node(LatLon.NORTH_POLE), new Node(LatLon.SOUTH_POLE));
     
    106106     */
    107107    @Test
    108     public void testTicket18798() throws Exception {
     108    void testTicket18798() throws Exception {
    109109        testIcon("node:righthandtraffic[junction=roundabout] { text: tr(\"Roundabout node\"); }", ds -> {
    110110            Node node = new Node(LatLon.NORTH_POLE);
Note: See TracChangeset for help on using the changeset viewer.