Search in sources :

Example 11 with Archive

use of org.gbif.dwc.Archive in project eol-globi-data by jhpoelen.

the class DwCAUtilTest method emitRecords.

@Test
public void emitRecords() throws IOException, URISyntaxException {
    URI archiveURI = getClass().getResource("dwca.zip").toURI();
    String tmpDir = "target/tmp/myarchive";
    Archive dwcArchive = DwCAUtil.archiveFor(archiveURI, tmpDir);
    assertHasRecords(dwcArchive);
}
Also used : Archive(org.gbif.dwc.Archive) CoreMatchers.containsString(org.hamcrest.CoreMatchers.containsString) URI(java.net.URI) Test(org.junit.Test)

Aggregations

Archive (org.gbif.dwc.Archive)11 URI (java.net.URI)10 Test (org.junit.Test)9 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)6 InteractionListener (org.eol.globi.process.InteractionListener)5 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)4 IOException (java.io.IOException)2 Path (java.nio.file.Path)2 File (java.io.File)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 InteractionListenerClosable (org.eol.globi.process.InteractionListenerClosable)1 ArchiveFile (org.gbif.dwc.ArchiveFile)1 UnsupportedArchiveException (org.gbif.dwc.UnsupportedArchiveException)1