Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (5 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/data/tagging/ac/AutoCompletionPriorityTest.java

    r13079 r17275  
    22package org.openstreetmap.josm.data.tagging.ac;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertFalse;
    6 import static org.junit.Assert.assertNull;
    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.assertNull;
     7import static org.junit.jupiter.api.Assertions.assertTrue;
    88
    99import java.util.ArrayList;
     
    1212import java.util.TreeSet;
    1313
    14 import org.junit.Rule;
    15 import org.junit.Test;
     14import org.junit.jupiter.api.extension.RegisterExtension;
     15import org.junit.jupiter.api.Test;
    1616import org.openstreetmap.josm.TestUtils;
    1717import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    2323 * Unit tests of {@link AutoCompletionPriority}.
    2424 */
    25 public class AutoCompletionPriorityTest {
     25class AutoCompletionPriorityTest {
    2626
    2727    /**
    2828     * Setup test.
    2929     */
    30     @Rule
     30    @RegisterExtension
    3131    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3232    public JOSMTestRules test = new JOSMTestRules();
     
    3636     */
    3737    @Test
    38     public void testGetters() {
     38    void testGetters() {
    3939        assertTrue(AutoCompletionPriority.IS_IN_STANDARD_AND_IN_DATASET.isInStandard());
    4040        assertTrue(AutoCompletionPriority.IS_IN_STANDARD_AND_IN_DATASET.isInDataSet());
     
    6969     */
    7070    @Test
    71     public void testOrdering() {
     71    void testOrdering() {
    7272        SortedSet<AutoCompletionPriority> set = new TreeSet<>();
    7373        set.add(AutoCompletionPriority.IS_IN_STANDARD_AND_IN_DATASET);
     
    9696     */
    9797    @Test
    98     public void testEqualsContract() {
     98    void testEqualsContract() {
    9999        TestUtils.assumeWorkingEqualsVerifier();
    100100        EqualsVerifier.forClass(AutoCompletionPriority.class).usingGetClass()
     
    106106     */
    107107    @Test
    108     public void testToString() {
     108    void testToString() {
    109109        assertEquals("<Priority; userInput: no, inDataSet: true, inStandard: false, selected: false>",
    110110                AutoCompletionPriority.IS_IN_DATASET.toString());
     
    117117     */
    118118    @Test
    119     public void testMergeWith() {
     119    void testMergeWith() {
    120120        assertEquals(AutoCompletionPriority.IS_IN_STANDARD_AND_IN_DATASET,
    121121                AutoCompletionPriority.IS_IN_DATASET.mergeWith(AutoCompletionPriority.IS_IN_STANDARD));
Note: See TracChangeset for help on using the changeset viewer.