From 739fba2ea08bff46a621f1fec5f3564bd6af40de Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 27 Nov 2017 22:07:07 +0000 Subject: [PATCH] JAL-2859 failing test demonstrating sequences with pdb without a local file map all get mapped together --- test/jalview/gui/StructureViewerTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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]); } } -- 1.7.10.2