From 7e52e3419fa2b4576ec0115276c02ea4aeb30c38 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 16 Sep 2016 12:12:24 +0100 Subject: [PATCH] JAL-2164 update asserts for padded residue numbers in RESNUM tests --- test/jalview/io/AnnotatedPDBFileInputTest.java | 12 ++++++------ test/jalview/structure/StructureSelectionManagerTest.java | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/jalview/io/AnnotatedPDBFileInputTest.java b/test/jalview/io/AnnotatedPDBFileInputTest.java index f79b7c6..f3504e9 100644 --- a/test/jalview/io/AnnotatedPDBFileInputTest.java +++ b/test/jalview/io/AnnotatedPDBFileInputTest.java @@ -121,9 +121,9 @@ public class AnnotatedPDBFileInputTest SequenceFeature[] sf = al.getSequenceAt(0).getSequenceFeatures(); assertEquals(296, sf.length); assertEquals("RESNUM", sf[0].getType()); - assertEquals("GLU:19 1gaqA", sf[0].getDescription()); + assertEquals("GLU: 19 1gaqA", sf[0].getDescription()); assertEquals("RESNUM", sf[295].getType()); - assertEquals("TYR:314 1gaqA", sf[295].getDescription()); + assertEquals("TYR: 314 1gaqA", sf[295].getDescription()); /* * 1GAQ/B @@ -131,9 +131,9 @@ public class AnnotatedPDBFileInputTest sf = al.getSequenceAt(1).getSequenceFeatures(); assertEquals(98, sf.length); assertEquals("RESNUM", sf[0].getType()); - assertEquals("ALA:1 1gaqB", sf[0].getDescription()); + assertEquals("ALA: 1 1gaqB", sf[0].getDescription()); assertEquals("RESNUM", sf[97].getType()); - assertEquals("ALA:98 1gaqB", sf[97].getDescription()); + assertEquals("ALA: 98 1gaqB", sf[97].getDescription()); /* * 1GAQ/C @@ -141,9 +141,9 @@ public class AnnotatedPDBFileInputTest sf = al.getSequenceAt(2).getSequenceFeatures(); assertEquals(296, sf.length); assertEquals("RESNUM", sf[0].getType()); - assertEquals("GLU:19 1gaqC", sf[0].getDescription()); + assertEquals("GLU: 19 1gaqC", sf[0].getDescription()); assertEquals("RESNUM", sf[295].getType()); - assertEquals("TYR:314 1gaqC", sf[295].getDescription()); + assertEquals("TYR: 314 1gaqC", sf[295].getDescription()); } @Test(groups = { "Functional" }) diff --git a/test/jalview/structure/StructureSelectionManagerTest.java b/test/jalview/structure/StructureSelectionManagerTest.java index baaa96b..2074fb4 100644 --- a/test/jalview/structure/StructureSelectionManagerTest.java +++ b/test/jalview/structure/StructureSelectionManagerTest.java @@ -138,7 +138,7 @@ public class StructureSelectionManagerTest SequenceFeature sf = pmap.getSeqs().get(0).getSequenceFeatures()[0]; assertEquals("RESNUM", sf.getType()); assertEquals("1gaq", sf.getFeatureGroup()); - assertEquals("GLU:19 1gaqA", sf.getDescription()); + assertEquals("GLU: 19 1gaqA", sf.getDescription()); /* * Verify a RESNUM sequence feature in the StructureSelectionManager mapped @@ -148,6 +148,6 @@ public class StructureSelectionManagerTest sf = map.sequence.getSequenceFeatures()[0]; assertEquals("RESNUM", sf.getType()); assertEquals("1gaq", sf.getFeatureGroup()); - assertEquals("ALA:1 1gaqB", sf.getDescription()); + assertEquals("ALA: 1 1gaqB", sf.getDescription()); } } -- 1.7.10.2