Skip to content

Commit c2099e2

Browse files
committed
test improvement.
1 parent ecf75d3 commit c2099e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

biojava-core/src/test/java/org/biojava/nbio/core/search/io/blast/BlastXMLQueryTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.biojava.nbio.core.search.io.Hit;
1717
import org.biojava.nbio.core.search.io.Hsp;
1818
import org.biojava.nbio.core.search.io.Result;
19-
import org.biojava.nbio.core.sequence.io.util.ClasspathResource;
2019
import org.junit.After;
2120
import org.junit.AfterClass;
2221
import org.junit.Before;
@@ -67,8 +66,8 @@ public void testSetFile() {
6766
@Test
6867
public void testCreateObjects() throws Exception {
6968
System.out.println("createObjects");
70-
String resource = "/org/biojava/nbio/core/search/io/blast/testBlastReport.xml";
7169

70+
String resource = "/org/biojava/nbio/core/search/io/blast/testBlastReport.xml";
7271
URL resourceURL = getClass().getResource(resource);
7372
File file = new File(resourceURL.getFile());
7473

@@ -77,7 +76,7 @@ public void testCreateObjects() throws Exception {
7776

7877
//instance.setQueryReferences(null);
7978
//instance.setDatabaseReferences(null);
80-
ArrayList<Result> result = instance.createObjects(Double.MAX_VALUE);
79+
ArrayList<Result> result = instance.createObjects(1e-10);
8180

8281
// test with random manual selected results
8382
BlastHsp hsp1hit1res1 = new BlastHspBuilder()

0 commit comments

Comments
 (0)