Changeset 16443 in josm for trunk/test


Ignore:
Timestamp:
2020-05-17T15:57:57+02:00 (4 years ago)
Author:
simon04
Message:

see #19053 - fix cleanup3000, add non-regression test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/OsmValidatorTest.java

    r16182 r16443  
    22package org.openstreetmap.josm.data.validation;
    33
     4import static org.junit.Assert.assertEquals;
    45import static org.junit.Assert.assertFalse;
    56import static org.junit.Assert.assertNotEquals;
    67import static org.junit.Assert.assertTrue;
     8
     9import java.util.Collections;
    710
    811import org.junit.Before;
     
    8790
    8891    /**
     92     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/19053">Bug #19053</a>.
     93     * {@link OsmValidator#cleanupIgnoredErrors()} must not combine primitives.
     94     */
     95    @Test
     96    public void testCleanupIgnoredErrorsTicket19053() {
     97        OsmValidator.addIgnoredError("3000_missing tag", "missing tag");
     98        OsmValidator.cleanupIgnoredErrors();
     99        assertEquals(Collections.emptyMap(), OsmValidator.getIgnoredErrors());
     100    }
     101
     102    /**
    89103     * Test that tests are really removed, and that core tests cannot be removed
    90104     */
Note: See TracChangeset for help on using the changeset viewer.