From 1b39bb74ab3d7db5e14b5fc0ea7c3be6fa947707 Mon Sep 17 00:00:00 2001 From: kiramt Date: Thu, 3 Nov 2016 09:14:32 +0000 Subject: [PATCH] JAL-2281 Minor unit test addition --- test/jalview/util/DBRefUtilsTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 1.7.10.2