From 42df19afce43090aea47fe782195f11236801be7 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 10 May 2018 11:35:11 +0100 Subject: [PATCH] JAL-2920 basic test for Description from features with/out description, variation and original attributes --- test/jalview/ws/dbsources/UniprotTest.java | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/test/jalview/ws/dbsources/UniprotTest.java b/test/jalview/ws/dbsources/UniprotTest.java index f98ef85..c603a11 100644 --- a/test/jalview/ws/dbsources/UniprotTest.java +++ b/test/jalview/ws/dbsources/UniprotTest.java @@ -63,6 +63,9 @@ public class UniprotTest + "" + "" + "" + + "ML" + + "ML" + + "M" + "MHAPL VSKDL" + ""; @@ -98,7 +101,7 @@ public class UniprotTest * Check sequence features */ Vector features = entry.getFeature(); - assertEquals(3, features.size()); + assertEquals(6, features.size()); UniprotFeature sf = features.get(0); assertEquals("signal peptide", sf.getType()); assertNull(sf.getDescription()); @@ -118,6 +121,27 @@ public class UniprotTest assertEquals(21, sf.getBegin()); assertEquals(247, sf.getEnd()); + sf = features.get(3); + assertEquals("sequence variant", sf.getType()); + assertEquals("Variation: 'L' Original: 'M'", sf.getDescription()); + assertEquals(41, sf.getPosition()); + assertEquals(41, sf.getBegin()); + assertEquals(41, sf.getEnd()); + + sf = features.get(4); + assertEquals("sequence variant", sf.getType()); + assertEquals("Pathogenic Variation: 'L' Original: 'M'", + sf.getDescription()); + assertEquals(41, sf.getPosition()); + assertEquals(41, sf.getBegin()); + assertEquals(41, sf.getEnd()); + + sf = features.get(5); + assertEquals("sequence variant", sf.getType()); + assertEquals("Pathogenic Original: 'M'", sf.getDescription()); + assertEquals(41, sf.getPosition()); + assertEquals(41, sf.getBegin()); + assertEquals(41, sf.getEnd()); /* * Check cross-references */ -- 1.7.10.2