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/command/conflict/ConflictAddCommandTest.java

    r14138 r17275  
    22package org.openstreetmap.josm.command.conflict;
    33
    4 import static org.junit.Assert.assertFalse;
    5 import static org.junit.Assert.assertNotNull;
    6 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertFalse;
     5import static org.junit.jupiter.api.Assertions.assertNotNull;
     6import static org.junit.jupiter.api.Assertions.assertTrue;
    77
    8 import org.junit.Before;
    9 import org.junit.Rule;
    10 import org.junit.Test;
     8import org.junit.jupiter.api.BeforeEach;
     9import org.junit.jupiter.api.Test;
     10import org.junit.jupiter.api.extension.RegisterExtension;
    1111import org.openstreetmap.josm.TestUtils;
    1212import org.openstreetmap.josm.command.CommandTest.CommandTestData;
     
    2626 * Unit tests of {@link ConflictAddCommand} class.
    2727 */
    28 public class ConflictAddCommandTest {
     28class ConflictAddCommandTest {
    2929
    3030    /**
    3131     * Setup test.
    3232     */
    33     @Rule
     33    @RegisterExtension
    3434    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3535    public JOSMTestRules test = new JOSMTestRules();
     
    3939     * Setup test.
    4040     */
    41     @Before
     41    @BeforeEach
    4242    public void setUp() {
    4343        testData = new CommandTestData();
     
    4848     */
    4949    @Test
    50     public void testExecuteUndoCommand() {
     50    void testExecuteUndoCommand() {
    5151        DataSet ds = testData.layer.getDataSet();
    5252        Conflict<Node> conflict = new Conflict<>(testData.existingNode, testData.existingNode2);
     
    6464     */
    6565    @Test
    66     public void testGetDescriptionIcon() {
     66    void testGetDescriptionIcon() {
    6767        Conflict<Node> conflict = new Conflict<>(testData.existingNode, testData.existingNode2);
    6868        assertNotNull(new ConflictAddCommand(testData.layer.getDataSet(), conflict).getDescriptionIcon());
     
    7373     */
    7474    @Test
    75     public void testEqualsContract() {
     75    void testEqualsContract() {
    7676        TestUtils.assumeWorkingEqualsVerifier();
    7777        EqualsVerifier.forClass(ConflictAddCommand.class).usingGetClass()
Note: See TracChangeset for help on using the changeset viewer.