Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.validation.tests;
|
---|
3 |
|
---|
4 | import static org.CustomMatchers.isEmpty;
|
---|
5 | import static org.junit.Assert.assertThat;
|
---|
6 |
|
---|
7 | import java.io.FileInputStream;
|
---|
8 | import java.io.InputStream;
|
---|
9 |
|
---|
10 | import org.junit.Before;
|
---|
11 | import org.junit.Test;
|
---|
12 | import org.openstreetmap.josm.JOSMFixture;
|
---|
13 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
14 | import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
|
---|
15 | import org.openstreetmap.josm.io.OsmReader;
|
---|
16 |
|
---|
17 | public class UnconnectedWaysTest {
|
---|
18 |
|
---|
19 | UnconnectedWays bib;
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Setup test.
|
---|
23 | */
|
---|
24 | @Before
|
---|
25 | public void setUp() throws Exception {
|
---|
26 | bib = new UnconnectedWays.UnconnectedHighways();
|
---|
27 | JOSMFixture.createUnitTestFixture().init();
|
---|
28 | bib.initialize();
|
---|
29 | bib.startTest(null);
|
---|
30 | }
|
---|
31 |
|
---|
32 | @Test
|
---|
33 | public void testTicket6313() throws Exception {
|
---|
34 | try (InputStream fis = new FileInputStream("data_nodist/UnconnectedWaysTest.osm")) {
|
---|
35 | final DataSet ds = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE);
|
---|
36 | bib.visit(ds.allPrimitives());
|
---|
37 | bib.endTest();
|
---|
38 | assertThat(bib.getErrors(), isEmpty());
|
---|
39 | }
|
---|
40 | }
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.