NCBIGene2GOAssociationParser extends BasicLineParser<Gene2GOAssociation> implements QueuingParser<Gene2GOAssociation> { public int getCount() { return count; } NCBIGene2GOAssociationParser( Collection<Taxon> taxa ); int getCount(); @Override Collection<Gene2GOAssociation> getResults(); @SuppressWarnings({ "unused", "WeakerAccess" }) // Possible external use Gene2GOAssociation mapFromGene2GO( String line ); @Override void parse( InputStream inputStream, BlockingQueue<Gene2GOAssociation> aqueue ); @Override Gene2GOAssociation parseOneLine( String line );  }
@Test public void testParseAndLoad() throws Exception { try (InputStream is = this.getClass().getResourceAsStream( "/data/loader/association/gene2go.gz" ); InputStream gZipIs = new GZIPInputStream( is )) { gene2GOAssLoader.load( gZipIs ); gZipIs.close(); is.close(); int count = gene2GOAssLoader.getCount(); assertTrue( count >= 61 ); } }