import jalview.bin.Cache;
import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
import jalview.gui.JvOptionPane;
import jalview.structure.StructureImportSettings;
sq.getAnnotation().length > 0);
assertTrue("No PDBEntry on sequence " + sq.getName(),
sq.getAllPDBEntries().size() > 0);
- org.testng.Assert.assertEquals(sq.getEnd() - sq.getStart() + 1,
- sq.getLength(),
- "Sequence start/end doesn't match number of residues in sequence for "
- + sq.getName());
+ // FIXME: should test that all residues extracted as sequences from
+ // chains in structure have a mapping to data in the structure
+
+ for (int rs = sq.getStart(); rs < sq.getStart()
+ + sq.getLength(); rs++)
+ {
+ List<SequenceFeature> sf = sq.findFeatures(rs, rs, "RESNUM");
+ assertEquals(sf.size(), 1);
+ }
}
}
}