// SEQUENCE_ID
UrlLink ul = new UrlLink(DB + SEP + URL_PREFIX + DELIM + SEQUENCE_ID
+ DELIM + URL_SUFFIX);
- assertEquals(DB.toUpperCase(), ul.getTarget());
+ assertEquals(DB, ul.getTarget());
assertEquals(DB, ul.getLabel());
assertEquals(URL_PREFIX, ul.getUrl_prefix());
assertEquals(URL_SUFFIX, ul.getUrl_suffix());
// DB_ACCESSION
ul = new UrlLink(DB + SEP + URL_PREFIX + DELIM + DB_ACCESSION + DELIM
+ URL_SUFFIX);
- assertEquals(DB.toUpperCase(), ul.getTarget());
+ assertEquals(DB, ul.getTarget());
assertEquals(DB, ul.getLabel());
assertEquals(URL_PREFIX, ul.getUrl_prefix());
assertEquals(URL_SUFFIX, ul.getUrl_suffix());
// Not dynamic
ul = new UrlLink(DB + SEP + URL_PREFIX + URL_SUFFIX.substring(1));
- assertEquals(DB.toUpperCase(), ul.getTarget());
+ assertEquals(DB, ul.getTarget());
assertEquals(DB, ul.getLabel());
assertEquals(URL_PREFIX + URL_SUFFIX.substring(1), ul.getUrl_prefix());
assertFalse(ul.isDynamic());
// SEQUENCE_ID
UrlLink ul = new UrlLink(DB + SEP + URL_PREFIX + DELIM + SEQUENCE_ID
+ REGEX_NESTED + DELIM + URL_SUFFIX);
- assertEquals(DB.toUpperCase(), ul.getTarget());
+ assertEquals(DB, ul.getTarget());
assertEquals(DB, ul.getLabel());
assertEquals(URL_PREFIX, ul.getUrl_prefix());
assertEquals(URL_SUFFIX, ul.getUrl_suffix());
// DB_ACCESSION
ul = new UrlLink(DB + SEP + URL_PREFIX + DELIM + DB_ACCESSION
+ REGEX_NESTED + DELIM + URL_SUFFIX);
- assertEquals(DB.toUpperCase(), ul.getTarget());
+ assertEquals(DB, ul.getTarget());
assertEquals(DB, ul.getLabel());
assertEquals(URL_PREFIX, ul.getUrl_prefix());
assertEquals(URL_SUFFIX, ul.getUrl_suffix());
// invalid regex
ul = new UrlLink(DB + SEP + URL_PREFIX + DELIM + DB_ACCESSION
+ REGEX_RUBBISH + DELIM + URL_SUFFIX);
- assertEquals(DB.toUpperCase(), ul.getTarget());
+ assertEquals(DB, ul.getTarget());
assertEquals(DB, ul.getLabel());
assertEquals(URL_PREFIX, ul.getUrl_prefix());
assertEquals(URL_SUFFIX, ul.getUrl_suffix());
String key = DB + SEP + URL_PREFIX;
assertEquals(1, linkset.size());
assertTrue(linkset.containsKey(key));
- assertEquals(linkset.get(key).get(0), DB.toUpperCase());
+ assertEquals(linkset.get(key).get(0), DB);
assertEquals(linkset.get(key).get(1), DB);
assertEquals(linkset.get(key).get(2), null);
assertEquals(linkset.get(key).get(3), URL_PREFIX);
String key = DB + SEP + URL_PREFIX + URL_SUFFIX;
assertEquals(1, linkset.size());
assertTrue(linkset.containsKey(key));
- assertEquals(linkset.get(key).get(0), DB.toUpperCase());
+ assertEquals(linkset.get(key).get(0), DB);
assertEquals(linkset.get(key).get(1), DB);
assertEquals(linkset.get(key).get(2), null);
assertEquals(linkset.get(key).get(3), URL_PREFIX + URL_SUFFIX);
+ URL_SUFFIX;
assertEquals(1, linkset.size());
assertTrue(linkset.containsKey(key));
- assertEquals(linkset.get(key).get(0), DB.toUpperCase());
+ assertEquals(linkset.get(key).get(0), DB);
assertEquals(linkset.get(key).get(1), DB);
assertEquals(linkset.get(key).get(2), seq0.getName());
assertEquals(linkset.get(key).get(3), URL_PREFIX + seq0.getName()