newseq.setStart(refseq.getStart() + 25);
newseq.setEnd(refseq.getLength() + 25 + refseq.getStart());
StructureSelectionManager ssm = new jalview.structure.StructureSelectionManager();
+ ssm.setProcessSecondaryStructure(true);
+ ssm.setAddTempFacAnnot(true);
PDBfile pmap = ssm.setMapping(true, new SequenceI[]
{ newseq }, new String[]
{ null }, "test/jalview/ext/jmol/1QCF.pdb",
assertTrue(pmap != null);
assertEquals("Original and copied sequence of different lengths.",
refseq.getLength(), newseq.getLength());
- assertTrue(refseq.getAnnotation().length > 0
+ assertTrue(refseq.getAnnotation() != null
+ && refseq.getAnnotation().length > 0);
+ assertTrue(newseq.getAnnotation() != null
&& newseq.getAnnotation().length > 0);
for (AlignmentAnnotation oannot : refseq.getAnnotation())
{