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/actions/upload/FixDataHookTest.java

    r16577 r17275  
    22package org.openstreetmap.josm.actions.upload;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertFalse;
    6 import static org.junit.Assert.assertNotNull;
    7 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertFalse;
     6import static org.junit.jupiter.api.Assertions.assertNotNull;
     7import static org.junit.jupiter.api.Assertions.assertTrue;
    88
    99import java.util.Arrays;
    1010import java.util.Collection;
    1111
    12 import org.junit.Rule;
    13 import org.junit.Test;
     12import org.junit.jupiter.api.Test;
     13import org.junit.jupiter.api.extension.RegisterExtension;
    1414import org.openstreetmap.josm.command.PseudoCommand;
    1515import org.openstreetmap.josm.command.SequenceCommand;
     
    2727 * Unit tests for class {@link FixDataHook}.
    2828 */
    29 public class FixDataHookTest {
     29class FixDataHookTest {
    3030
    3131    /**
    3232     * Setup test.
    3333     */
    34     @Rule
     34    @RegisterExtension
    3535    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3636    public JOSMTestRules test = new JOSMTestRules().main();
     
    4040     */
    4141    @Test
    42     public void testCheckUpload() {
     42    void testCheckUpload() {
    4343        // Empty data set
    4444        UndoRedoHandler.getInstance().clean();
     
    8585        assertEquals(9, prims.size());
    8686        for (OsmPrimitive o : Arrays.asList(w1, w2, w3, w4, w5, w6, w7, r1, r2)) {
    87             assertTrue(o.toString(), prims.contains(o));
     87            assertTrue(prims.contains(o), o.toString());
    8888        }
    8989        Collection<PseudoCommand> cmds = seq.getChildren();
Note: See TracChangeset for help on using the changeset viewer.