test/unit/org/openstreetmap/josm/plugins/opendata/core/io/archive/ZipReaderTest.java
@Test
    public void testReadZipFiles() throws Exception {
        for (Path p : NonRegFunctionalTests.listDataFiles("zip")) {
            File zipfile = p.toFile();
            Logging.info("Testing reading file "+zipfile.getPath());
            try (InputStream is = new FileInputStream(zipfile)) {
                for (Entry<File, DataSet> entry : ZipReader.parseDataSets(is, null, null, false).entrySet()) {
                    String name = entry.getKey().getName();
                    Logging.info("Checking dataset for entry "+name);
                    NonRegFunctionalTests.testGeneric(zipfile.getName()+"/"+name, entry.getValue());
                }
            }
        }
    }
/**
     * Test for various zip files reading
     * @throws Exception if an error occurs during reading
     */
Test for various zip files reading
@throws Exception if an error occurs during reading
Test for various zip files reading @throws Exception if an error occurs during reading
@Test
    public void testReadZipFiles() throws Exception {
        for (Path p : NonRegFunctionalTests.listDataFiles("zip")) {
            File zipfile = p.toFile();
            Logging.info("Testing reading file "+zipfile.getPath());
            try (InputStream is = new FileInputStream(zipfile)) {
                for (Entry<File, DataSet> entry : ZipReader.parseDataSets(is, null, null, false).entrySet()) {
                    String name = entry.getKey().getName();
                    Logging.info("Checking dataset for entry "+name);
                    NonRegFunctionalTests.testGeneric(zipfile.getName()+"/"+name, entry.getValue());
                }
            }
        }
    }
@ Test public void testReadZipFiles ( ) throws Exception { for ( Path p : NonRegFunctionalTests . listDataFiles ( "zip" ) ) { File zipfile = p . toFile ( ) ; Logging . info ( "Testing reading file " + zipfile . getPath ( ) ) ; try ( InputStream is = new FileInputStream ( zipfile ) ) { for ( Entry < File , DataSet > entry : ZipReader . parseDataSets ( is , null , null , false ) . entrySet ( ) ) { String name = entry . getKey ( ) . getName ( ) ; Logging . info ( "Checking dataset for entry " + name ) ; NonRegFunctionalTests . testGeneric ( zipfile . getName ( ) + "/" + name , entry . getValue ( ) ) ; } } } }
Test for various zip files reading
 @throws Exception if an error occurs during reading
Test for various zip files reading @throws Exception if an error occurs during reading