File tree Expand file tree Collapse file tree
src/test/java/org/biojava/nbio/core/sequence/io
biojava-protein-comparison-tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 <parent >
33 <artifactId >biojava</artifactId >
44 <groupId >org.biojava</groupId >
5- <version >7.1.2 -SNAPSHOT</version >
5+ <version >7.1.3 -SNAPSHOT</version >
66 </parent >
77 <modelVersion >4.0.0</modelVersion >
88 <artifactId >biojava-aa-prop</artifactId >
7070 <dependency >
7171 <groupId >org.biojava</groupId >
7272 <artifactId >biojava-core</artifactId >
73- <version >7.1.2 -SNAPSHOT</version >
73+ <version >7.1.3 -SNAPSHOT</version >
7474 </dependency >
7575 <dependency >
7676 <groupId >org.biojava</groupId >
7777 <artifactId >biojava-structure</artifactId >
78- <version >7.1.2 -SNAPSHOT</version >
78+ <version >7.1.3 -SNAPSHOT</version >
7979 </dependency >
8080
8181 <!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >biojava</artifactId >
66 <groupId >org.biojava</groupId >
7- <version >7.1.2 -SNAPSHOT</version >
7+ <version >7.1.3 -SNAPSHOT</version >
88 </parent >
99 <artifactId >biojava-alignment</artifactId >
1010 <name >biojava-alignment</name >
4747 <dependency >
4848 <groupId >org.biojava</groupId >
4949 <artifactId >biojava-core</artifactId >
50- <version >7.1.2 -SNAPSHOT</version >
50+ <version >7.1.3 -SNAPSHOT</version >
5151 <scope >compile</scope >
5252 </dependency >
5353 <dependency >
Original file line number Diff line number Diff line change 33 <parent >
44 <artifactId >biojava</artifactId >
55 <groupId >org.biojava</groupId >
6- <version >7.1.2 -SNAPSHOT</version >
6+ <version >7.1.3 -SNAPSHOT</version >
77 </parent >
88 <modelVersion >4.0.0</modelVersion >
99 <artifactId >biojava-core</artifactId >
Original file line number Diff line number Diff line change 55import org .junit .Test ;
66
77import java .io .IOException ;
8+ import java .net .URI ;
9+ import java .net .URISyntaxException ;
810import java .nio .file .Path ;
911import java .nio .file .Paths ;
1012import java .util .List ;
1618public class FastaStreamerTest {
1719
1820 @ Test
19- public void stream () throws IOException {
20- String file = this .getClass ().getResource ("PF00104_small.fasta.gz" ).getFile ();
21- Path path = Paths .get (file );
21+ public void stream () throws IOException , URISyntaxException {
22+ URI fileUri = this .getClass ().getResource ("PF00104_small.fasta.gz" ).toURI ();
23+ Path path = Paths .get (fileUri );
2224 List <ProteinSequence > sequences ;
2325
2426 sequences = FastaStreamer .from (path ).stream ().collect (Collectors .toList ());
@@ -38,9 +40,9 @@ public void stream() throws IOException {
3840 }
3941
4042 @ Test
41- public void iterate () {
42- String file = this .getClass ().getResource ("PF00104_small.fasta.gz" ).getFile ();
43- Path path = Paths .get (file );
43+ public void iterate () throws URISyntaxException {
44+ URI fileUri = this .getClass ().getResource ("PF00104_small.fasta.gz" ).toURI ();
45+ Path path = Paths .get (fileUri );
4446 int count = 0 ;
4547 for (ProteinSequence sequence : FastaStreamer .from (path ).each ()) {
4648 count ++;
Original file line number Diff line number Diff line change 33 <parent >
44 <artifactId >biojava</artifactId >
55 <groupId >org.biojava</groupId >
6- <version >7.1.2 -SNAPSHOT</version >
6+ <version >7.1.3 -SNAPSHOT</version >
77 </parent >
88 <modelVersion >4.0.0</modelVersion >
99 <artifactId >biojava-genome</artifactId >
7070 <dependency >
7171 <groupId >org.biojava</groupId >
7272 <artifactId >biojava-core</artifactId >
73- <version >7.1.2 -SNAPSHOT</version >
73+ <version >7.1.3 -SNAPSHOT</version >
7474 <scope >compile</scope >
7575 </dependency >
7676 <dependency >
7777 <groupId >org.biojava</groupId >
7878 <artifactId >biojava-alignment</artifactId >
79- <version >7.1.2 -SNAPSHOT</version >
79+ <version >7.1.3 -SNAPSHOT</version >
8080 <scope >compile</scope >
8181 </dependency >
8282 <dependency >
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >biojava</artifactId >
66 <groupId >org.biojava</groupId >
7- <version >7.1.2 -SNAPSHOT</version >
7+ <version >7.1.3 -SNAPSHOT</version >
88 </parent >
99 <artifactId >biojava-integrationtest</artifactId >
1010 <packaging >jar</packaging >
4040 <dependency >
4141 <groupId >org.biojava</groupId >
4242 <artifactId >biojava-structure</artifactId >
43- <version >7.1.2 -SNAPSHOT</version >
43+ <version >7.1.3 -SNAPSHOT</version >
4444 </dependency >
4545 <!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
4646 <dependency >
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >biojava</artifactId >
66 <groupId >org.biojava</groupId >
7- <version >7.1.2 -SNAPSHOT</version >
7+ <version >7.1.3 -SNAPSHOT</version >
88 </parent >
99 <artifactId >biojava-modfinder</artifactId >
1010 <name >biojava-modfinder</name >
3131 <dependency >
3232 <groupId >org.biojava</groupId >
3333 <artifactId >biojava-structure</artifactId >
34- <version >7.1.2 -SNAPSHOT</version >
34+ <version >7.1.3 -SNAPSHOT</version >
3535 <type >jar</type >
3636 <scope >compile</scope >
3737 </dependency >
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >org.biojava</groupId >
66 <artifactId >biojava</artifactId >
7- <version >7.1.2 -SNAPSHOT</version >
7+ <version >7.1.3 -SNAPSHOT</version >
88 </parent >
99
1010 <artifactId >biojava-ontology</artifactId >
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >biojava</artifactId >
66 <groupId >org.biojava</groupId >
7- <version >7.1.2 -SNAPSHOT</version >
7+ <version >7.1.3 -SNAPSHOT</version >
88 </parent >
99
1010 <artifactId >biojava-protein-comparison-tool</artifactId >
3636 <dependency >
3737 <groupId >org.biojava</groupId >
3838 <artifactId >biojava-alignment</artifactId >
39- <version >7.1.2 -SNAPSHOT</version >
39+ <version >7.1.3 -SNAPSHOT</version >
4040
4141 </dependency >
4242 <dependency >
4343 <groupId >org.biojava</groupId >
4444 <artifactId >biojava-core</artifactId >
45- <version >7.1.2 -SNAPSHOT</version >
45+ <version >7.1.3 -SNAPSHOT</version >
4646 </dependency >
4747 <dependency >
4848 <groupId >org.biojava</groupId >
4949 <artifactId >biojava-structure</artifactId >
50- <version >7.1.2 -SNAPSHOT</version >
50+ <version >7.1.3 -SNAPSHOT</version >
5151 </dependency >
5252 <dependency >
5353 <groupId >org.biojava</groupId >
5454 <artifactId >biojava-structure-gui</artifactId >
55- <version >7.1.2 -SNAPSHOT</version >
55+ <version >7.1.3 -SNAPSHOT</version >
5656 </dependency >
5757 <dependency >
5858 <groupId >net.sourceforge.jmol</groupId >
Original file line number Diff line number Diff line change 33 <parent >
44 <artifactId >biojava</artifactId >
55 <groupId >org.biojava</groupId >
6- <version >7.1.2 -SNAPSHOT</version >
6+ <version >7.1.3 -SNAPSHOT</version >
77 </parent >
88 <artifactId >biojava-protein-disorder</artifactId >
99 <packaging >jar</packaging >
6363 <dependency >
6464 <groupId >org.biojava</groupId >
6565 <artifactId >biojava-core</artifactId >
66- <version >7.1.2 -SNAPSHOT</version >
66+ <version >7.1.3 -SNAPSHOT</version >
6767 </dependency >
6868 <!-- logging dependencies (managed by parent pom, don't set versions or
6969 scopes here) -->
You can’t perform that action at this time.
0 commit comments