Changeset 16802 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
r16553 r16802 102 102 || n.isKeyTrue("noexit") 103 103 || n.hasKey("entrance", "barrier") 104 || n.getParentWays().stream().anyMatch( Test::isBuilding);104 || n.getParentWays().stream().anyMatch(p -> isBuilding(p) || p.hasTag(RAILWAY, "platform")); 105 105 } 106 106 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/UnconnectedWaysTest.java
r16618 r16802 119 119 } 120 120 } 121 122 /** 123 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/19568">Bug #19568</a>. 124 * @throws IOException if any I/O error occurs 125 * @throws IllegalDataException if the OSM data cannot be parsed 126 * @throws FileNotFoundException if the data file cannot be found 127 */ 128 @Test 129 public void testTicket19568() throws IOException, IllegalDataException, FileNotFoundException { 130 try (InputStream fis = TestUtils.getRegressionDataStream(19568, "data.osm")) { 131 final DataSet ds = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE); 132 MainApplication.getLayerManager().addLayer(new OsmDataLayer(ds, null, null)); 133 134 bib.startTest(null); 135 bib.setBeforeUpload(false); 136 bib.visit(ds.allPrimitives()); 137 bib.endTest(); 138 assertThat(bib.getErrors(), isEmpty()); 139 } 140 } 121 141 }
Note:
See TracChangeset
for help on using the changeset viewer.