1 package jalview.ws.dbsources;
3 import static org.testng.Assert.assertEquals;
5 import jalview.bin.Cache;
7 import org.testng.annotations.BeforeClass;
8 import org.testng.annotations.Test;
10 public class RfamSeedTest
12 @BeforeClass(alwaysRun = true)
15 Cache.loadProperties("test/jalview/io/testProps.jvprops");
18 @Test(groups = "Functional")
19 public void testGetURL()
21 String path = "rfam.xfam.org/family/ABC/alignment/stockholm";
23 // with default value for domain
24 String url = new RfamSeed().getURL(" abc ");
25 assertEquals(url, "https://" + path);
27 // with override in properties
28 Cache.setProperty(Rfam.RFAM_BASEURL_KEY, "http://rfam.xfam.org");
29 url = new RfamSeed().getURL(" abc ");
30 assertEquals(url, "http://" + path);