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

Improved unit test · biojava/biojava@f014aef · GitHub

Commit f014aef

Browse files
committed
Improved unit test
1 parent 5f4ab81 commit f014aef

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
import org.biojava.nbio.core.sequence.DNASequence;
2525
import org.biojava.nbio.core.sequence.ProteinSequence;
2626
import org.biojava.nbio.core.sequence.RNASequence;
27+
import org.biojava.nbio.core.sequence.Strand;
2728
import org.biojava.nbio.core.sequence.compound.*;
2829
import org.biojava.nbio.core.sequence.features.FeatureInterface;
2930
import org.biojava.nbio.core.sequence.features.Qualifier;
31+
import org.biojava.nbio.core.sequence.location.template.AbstractLocation;
3032
import org.biojava.nbio.core.sequence.template.AbstractSequence;
3133
import org.junit.*;
3234
import org.slf4j.Logger;
@@ -339,6 +341,14 @@ public void readSequenceWithZeroSpanFeature() throws IOException, CompoundNotFou
339341
final DNASequence seq = readGenbankResource("/feature-spans-zero-point-circular-sequence.gb");
340342

341343
assertNotNull(seq);
344+
345+
final FeatureInterface<AbstractSequence<NucleotideCompound>, NucleotideCompound> f = seq.getFeatures().get(33);
346+
final AbstractLocation fLocation = f.getLocations();
347+
348+
assertEquals(true, fLocation.isCircular());
349+
assertEquals(7028, (int)fLocation.getStart().getPosition());
350+
assertEquals(286, (int)fLocation.getEnd().getPosition());
351+
assertEquals(Strand.NEGATIVE, fLocation.getStrand());
342352
}
343353

344354
/**

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL