X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fstructure%2FMapping.java;fp=test%2Fjalview%2Fstructure%2FMapping.java;h=716755baf875b8115e5a1d6203808ea1f9169e3d;hb=0703daae05998509e4f5b301224c61ccec3b77e2;hp=b0144fc54c4d4b88f620abe073fdb96e819e5e7e;hpb=2d3bf89e4c4a93d78af9772a78e94d5be7d15402;p=jalview.git diff --git a/test/jalview/structure/Mapping.java b/test/jalview/structure/Mapping.java index b0144fc..716755b 100644 --- a/test/jalview/structure/Mapping.java +++ b/test/jalview/structure/Mapping.java @@ -245,6 +245,8 @@ public class Mapping 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", @@ -252,7 +254,9 @@ public class Mapping 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()) {