JAL-2281 Minor unit test addition
authorkiramt <k.mourao@dundee.ac.uk>
Thu, 3 Nov 2016 09:14:32 +0000 (09:14 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Thu, 3 Nov 2016 09:14:32 +0000 (09:14 +0000)
test/jalview/util/DBRefUtilsTest.java

index 0431cf6..c4272b8 100644 (file)
@@ -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);