Changeset 9693 in josm for trunk/test


Ignore:
Timestamp:
2016-01-31T11:28:22+01:00 (4 years ago)
Author:
simon04
Message:

fix #12464 see #12464 - Regression: Validator did not longer warn about nodes without tags

Location:
trunk/test
Files:
2 added
1 edited

Legend:

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

    r9666 r9693  
    22package org.openstreetmap.josm.data.validation.tests;
    33
     4import static org.CustomMatchers.hasSize;
    45import static org.CustomMatchers.isEmpty;
    56import static org.junit.Assert.assertThat;
     
    4647        }
    4748    }
     49
     50    /**
     51     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/12464">Bug #12464</a>.
     52     * @throws Exception if an error occurs
     53     */
     54    @Test
     55    public void testTicket12464() throws Exception {
     56        test.initialize();
     57        test.startTest(null);
     58        try (InputStream fis = TestUtils.getRegressionDataStream(12464, "example.osm")) {
     59            final DataSet ds = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE);
     60            test.visit(ds.allPrimitives());
     61            test.endTest();
     62            assertThat(test.getErrors(), hasSize(1));
     63        }
     64    }
    4865}
Note: See TracChangeset for help on using the changeset viewer.