import jalview.datamodel.DBRefEntry;
import jalview.datamodel.Mapping;
-import jalview.datamodel.Sequence.DBModList;
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
import jalview.datamodel.features.SequenceFeatures;
public void testParse() throws MalformedURLException, IOException
{
File dataFile = new File("test/jalview/io/J03321.embl.txt");
- FileParse fp = new FileParse(dataFile, DataSourceType.FILE);
+ FileParse fp = new FileParse(dataFile.getAbsolutePath(), DataSourceType.FILE);
EmblFlatFile parser = new EmblFlatFile(fp, "EmblTest");
parser.parse();
List<SequenceI> seqs = parser.getSeqs();
* (some e.g. INTERPRO are duplicates). Jalview adds a dbref to 'self'.
* Sample a few here. Note DBRefEntry constructor capitalises source.
*/
- List<DBRefEntry> dbrefs = seq.getDBRefs();
+ List<DBRefEntry> dbrefs = Arrays.asList(seq.getDBRefs());
+
assertEquals(dbrefs.size(), 32);
// xref to 'self':
DBRefEntry selfRef = new DBRefEntry("EMBLTEST", "1", "J03321");
List<SequenceI> seqs = parser.getSeqs();
assertEquals(seqs.size(), 1);
SequenceI seq = seqs.get(0);
- DBModList<DBRefEntry> dbrefs = seq.getDBRefs();
+ List<DBRefEntry> dbrefs = Arrays.asList(seq.getDBRefs());
/*
* dna should have dbref to itself, and to inferred EMBLCDSPROTEIN:QHD43415.1