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 |
|
---|
9 | import org.junit.Before;
|
---|
10 | import org.junit.Test;
|
---|
11 | import org.openstreetmap.josm.Main;
|
---|
12 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
13 | import org.openstreetmap.josm.data.projection.Projections;
|
---|
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 | @Before
|
---|
22 | public void setUp() throws Exception {
|
---|
23 | bib = new UnconnectedWays.UnconnectedHighways();
|
---|
24 | Main.initApplicationPreferences();
|
---|
25 | Main.setProjection(Projections.getProjectionByCode("EPSG:3857"));
|
---|
26 | bib.initialize();
|
---|
27 | bib.startTest(null);
|
---|
28 | }
|
---|
29 |
|
---|
30 | @Test
|
---|
31 | public void testTicket6313() throws Exception {
|
---|
32 | final DataSet ds = OsmReader.parseDataSet(new FileInputStream("data_nodist/UnconnectedWaysTest.osm"), NullProgressMonitor.INSTANCE);
|
---|
33 | bib.visit(ds.allPrimitives());
|
---|
34 | bib.endTest();
|
---|
35 | assertThat(bib.getErrors(), isEmpty());
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.