From: kiramt Date: Thu, 3 Nov 2016 09:14:32 +0000 (+0000) Subject: JAL-2281 Minor unit test addition X-Git-Tag: Release_2_10_1^2~12^2^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1b39bb74ab3d7db5e14b5fc0ea7c3be6fa947707;p=jalview.git JAL-2281 Minor unit test addition --- diff --git a/test/jalview/util/DBRefUtilsTest.java b/test/jalview/util/DBRefUtilsTest.java index 0431cf6..c4272b8 100644 --- a/test/jalview/util/DBRefUtilsTest.java +++ b/test/jalview/util/DBRefUtilsTest.java @@ -74,6 +74,13 @@ public class DBRefUtilsTest assertSame(ref2, selected[0]); assertSame(ref3, selected[1]); + // case insensitive + sources = new String[] { "Uniprot" }; + selected = DBRefUtils.selectRefs(dbrefs, sources); + assertEquals(2, selected.length); + assertSame(ref2, selected[0]); + assertSame(ref3, selected[1]); + sources = new String[] { "EMBLCDS" }; selected = DBRefUtils.selectRefs(dbrefs, sources); assertNull(selected);