test/unit/org/openstreetmap/josm/plugins/opendata/core/io/datasets/DataSetUpdaterTest.java
@Test
    public void testTicket11166() throws Exception {
        File file = new File(TestUtils.getRegressionDataFile(11166, "raba760dissJosm.zip"));
        try (InputStream is = new FileInputStream(file)) {
            Predicate<? super Way> p = w -> w.getNodesCount() >= 0.9 * OsmApi.getOsmApi().getCapabilities().getMaxWayNodes();
            DataSet ds = ZipReader.parseDataSet(is, null, null, false);
            assertTrue(ds.getWays().stream().filter(p).findAny().isPresent());
            DataSetUpdater.updateDataSet(ds, null, file);
            assertFalse(ds.getWays().stream().filter(p).findAny().isPresent());
        }
    }
/**
     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11166">#11166</a>
     * @throws Exception if an error occurs during reading
     */
Non-regression test for ticket #11166
@throws Exception if an error occurs during reading
Non - regression test for ticket #11166 @throws Exception if an error occurs during reading
@Test
    public void testTicket11166() throws Exception {
        File file = new File(TestUtils.getRegressionDataFile(11166, "raba760dissJosm.zip"));
        try (InputStream is = new FileInputStream(file)) {
            Predicate<? super Way> p = w -> w.getNodesCount() >= 0.9 * OsmApi.getOsmApi().getCapabilities().getMaxWayNodes();
            DataSet ds = ZipReader.parseDataSet(is, null, null, false);
            assertTrue(ds.getWays().stream().filter(p).findAny().isPresent());
            DataSetUpdater.updateDataSet(ds, null, file);
            assertFalse(ds.getWays().stream().filter(p).findAny().isPresent());
        }
    }
@ Test public void testTicket11166 ( ) throws Exception { File file = new File ( TestUtils . getRegressionDataFile ( 11166 , "raba760dissJosm.zip" ) ) ; try ( InputStream is = new FileInputStream ( file ) ) { Predicate < ? super Way > p = w -> w . getNodesCount ( ) >= 0.9 * OsmApi . getOsmApi ( ) . getCapabilities ( ) . getMaxWayNodes ( ) ; DataSet ds = ZipReader . parseDataSet ( is , null , null , false ) ; assertTrue ( ds . getWays ( ) . stream ( ) . filter ( p ) . findAny ( ) . isPresent ( ) ) ; DataSetUpdater . updateDataSet ( ds , null , file ) ; assertFalse ( ds . getWays ( ) . stream ( ) . filter ( p ) . findAny ( ) . isPresent ( ) ) ; } }
Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11166">#11166</a>
 @throws Exception if an error occurs during reading
Non - regression test for ticket <a href = " https : // josm . openstreetmap . de / ticket / 11166 " > #11166< / a > @throws Exception if an error occurs during reading