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/actions/mapmode/DeleteActionTest.java

    r14138 r17275  
    22package org.openstreetmap.josm.actions.mapmode;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertTrue;
    66
    7 import org.junit.Rule;
    8 import org.junit.Test;
     7import org.junit.jupiter.api.extension.RegisterExtension;
     8import org.junit.jupiter.api.Test;
    99import org.openstreetmap.josm.TestUtils;
    1010import org.openstreetmap.josm.actions.mapmode.DeleteAction.DeleteMode;
     
    2020 * Unit tests for class {@link DeleteAction}.
    2121 */
    22 public class DeleteActionTest {
     22class DeleteActionTest {
    2323
    2424    /**
    2525     * Setup test.
    2626     */
    27     @Rule
     27    @RegisterExtension
    2828    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2929    public JOSMTestRules test = new JOSMTestRules().main().projection();
     
    3333     */
    3434    @Test
    35     public void testMode() {
     35    void testMode() {
    3636        OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null);
    3737        try {
     
    5252     */
    5353    @Test
    54     public void testEnumDeleteMode() {
     54    void testEnumDeleteMode() {
    5555        TestUtils.superficialEnumCodeCoverage(DeleteMode.class);
    5656    }
Note: See TracChangeset for help on using the changeset viewer.