FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added basic integration test to demonstrate the issue · biojava/biojava@e8be187 · GitHub

Commit e8be187

Browse files
committed
Added basic integration test to demonstrate the issue
1 parent 0570329 commit e8be187

1 file changed

Lines changed: 13 additions & 22 deletions

File tree

‎biojava-core/src/test/java/org/biojava/nbio/core/sequence/io/GenbankReaderTest.java‎

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,24 @@
2222

2323
import org.biojava.nbio.core.exceptions.CompoundNotFoundException;
2424
import org.biojava.nbio.core.sequence.DNASequence;
25-
import org.biojava.nbio.core.sequence.RNASequence;
2625
import org.biojava.nbio.core.sequence.ProteinSequence;
27-
import org.biojava.nbio.core.sequence.compound.AminoAcidCompound;
28-
import org.biojava.nbio.core.sequence.compound.AminoAcidCompoundSet;
29-
import org.biojava.nbio.core.sequence.compound.DNACompoundSet;
30-
import org.biojava.nbio.core.sequence.compound.RNACompoundSet;
31-
import org.biojava.nbio.core.sequence.compound.NucleotideCompound;
26+
import org.biojava.nbio.core.sequence.RNASequence;
27+
import org.biojava.nbio.core.sequence.compound.*;
3228
import org.biojava.nbio.core.sequence.features.FeatureInterface;
3329
import org.biojava.nbio.core.sequence.features.Qualifier;
3430
import org.biojava.nbio.core.sequence.template.AbstractSequence;
35-
import org.junit.After;
36-
import org.junit.AfterClass;
37-
import org.junit.Assert;
38-
import org.junit.Before;
39-
import org.junit.BeforeClass;
40-
import org.junit.Test;
31+
import org.junit.*;
4132
import org.slf4j.Logger;
4233
import org.slf4j.LoggerFactory;
4334

44-
import java.io.BufferedInputStream;
45-
import java.io.BufferedReader;
46-
import java.io.IOException;
47-
import java.io.InputStream;
48-
import java.io.InputStreamReader;
35+
import java.io.*;
4936
import java.util.ArrayList;
5037
import java.util.LinkedHashMap;
5138
import java.util.List;
5239
import java.util.Map;
5340

5441
import static org.hamcrest.CoreMatchers.is;
55-
import static org.junit.Assert.assertEquals;
56-
import static org.junit.Assert.assertFalse;
57-
import static org.junit.Assert.assertNotNull;
58-
import static org.junit.Assert.assertThat;
59-
import static org.junit.Assert.assertTrue;
42+
import static org.junit.Assert.*;
6043

6144
/**
6245
*
@@ -350,6 +333,14 @@ public void testLegacyLocusCompatable() throws IOException, CompoundNotFoundExce
350333

351334
}
352335

336+
@Test
337+
public void readSequenceWithZeroSpanFeature() throws IOException, CompoundNotFoundException {
338+
logger.info("make or read genbank file error when feature spans zero point of circular sequence (issue #855)");
339+
final DNASequence seq = readGenbankResource("/feature-spans-zero-point-circular-sequence.gb");
340+
341+
assertNotNull(seq);
342+
}
343+
353344
/**
354345
* Helper class to be able to verify the closed state of the input stream.
355346
*/

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL