From: Jim Procter Date: Mon, 27 Nov 2017 22:07:07 +0000 (+0000) Subject: JAL-2859 failing test demonstrating sequences with pdb without a local file map all... X-Git-Tag: Release_2_10_3b1~5^2~2^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=739fba2ea08bff46a621f1fec5f3564bd6af40de;p=jalview.git JAL-2859 failing test demonstrating sequences with pdb without a local file map all get mapped together --- diff --git a/test/jalview/gui/StructureViewerTest.java b/test/jalview/gui/StructureViewerTest.java index 4d5b114..86342d2 100644 --- a/test/jalview/gui/StructureViewerTest.java +++ b/test/jalview/gui/StructureViewerTest.java @@ -39,8 +39,10 @@ public class StructureViewerTest PDBEntry pdbe4 = new PDBEntry("1GAQ", "A", Type.PDB, null); PDBEntry pdbe5 = new PDBEntry("3A6S", "B", Type.PDB, "path2"); PDBEntry pdbe6 = new PDBEntry("1GAQ", "B", Type.PDB, null); + PDBEntry pdbe7 = new PDBEntry("1FOO", "Q", Type.PDB, null); + PDBEntry[] pdbs = new PDBEntry[] { pdbe1, pdbe2, pdbe3, pdbe4, pdbe5, - pdbe6 }; + pdbe6, pdbe7 }; /* * seq1 ... seq6 associated with pdbe1 ... pdbe6 @@ -61,6 +63,7 @@ public class StructureViewerTest assertTrue(uniques.containsKey(pdbe4)); assertFalse(uniques.containsKey(pdbe5)); assertFalse(uniques.containsKey(pdbe6)); + assertTrue(uniques.containsKey(pdbe7)); // 1A70 associates with seq1 and seq3 SequenceI[] ss = uniques.get(pdbe1); @@ -79,5 +82,10 @@ public class StructureViewerTest assertEquals(ss.length, 2); assertSame(seqs[3], ss[0]); assertSame(seqs[5], ss[1]); + + // 1FOO has seq7 + ss = uniques.get(pdbe7); + assertEquals(ss.length, 1); + assertSame(seqs[6], ss[0]); } }