Merge remote-tracking branch 'origin/develop' into bug/JAL-2282
authorkiramt <k.mourao@dundee.ac.uk>
Thu, 3 Nov 2016 19:29:51 +0000 (19:29 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Thu, 3 Nov 2016 19:29:51 +0000 (19:29 +0000)
1  2 
test/jalview/util/DBRefUtilsTest.java

@@@ -74,16 -74,16 +74,23 @@@ public class DBRefUtilsTes
      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);
+     sources = new String[] { "embl", "uniprot" };
+     selected = DBRefUtils.selectRefs(dbrefs, sources);
+     assertEquals(3, selected.length);
+     assertSame(ref1, selected[0]);
+     assertSame(ref2, selected[1]);
+     assertSame(ref3, selected[2]);
    }
  
    /**