Changeset 17406 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-12-13T16:04:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/CreateMultipolygonActionTest.java
r17343 r17406 174 174 assertEquals(numCoastlineWays, ds.getWays().stream().filter(w -> "coastline".equals(w.get("natural"))).count()); 175 175 } 176 177 /** 178 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/20230">Bug #20230</a>. 179 * @throws Exception if an error occurs 180 */ 181 @Test 182 void testTicket20230() throws Exception { 183 DataSet ds = OsmReader.parseDataSet(TestUtils.getRegressionDataStream(20230, "data.osm"), null); 184 assertEquals(1, ds.getRelations().size()); 185 Relation mp = ds.getRelations().iterator().next(); 186 Relation modMp = createMultipolygon(ds.getWays(), "type:way", mp, true); 187 assertNotNull(modMp); 188 assertEquals(1, ds.getRelations().size()); 189 modMp = ds.getRelations().iterator().next(); 190 assertTrue(modMp.hasTag("building", "yes")); 191 assertEquals(0, ds.getWays().stream().filter(w -> w.hasTag("building", "yes")).count()); 192 } 176 193 }
Note:
See TracChangeset
for help on using the changeset viewer.