git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d700e3d
)
JAL-2281 Minor unit test addition
author
kiramt
<k.mourao@dundee.ac.uk>
Thu, 3 Nov 2016 09:14:32 +0000
(09:14 +0000)
committer
kiramt
<k.mourao@dundee.ac.uk>
Thu, 3 Nov 2016 09:14:32 +0000
(09:14 +0000)
test/jalview/util/DBRefUtilsTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/util/DBRefUtilsTest.java
b/test/jalview/util/DBRefUtilsTest.java
index
0431cf6
..
c4272b8
100644
(file)
--- 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);