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 PfamFullTest
12 @BeforeClass(alwaysRun = true)
15 Cache.loadProperties("test/jalview/io/testProps.jvprops");
18 @Test(groups = "Functional")
19 public void testGetURL()
21 // with default value for domain
22 String url = new PfamFull().getURL(" abc ");
23 assertEquals(url, "http://pfam.xfam.org/family/ABC/alignment/full");
25 // with override in properties
26 Cache.setProperty("PFAM_DOMAIN", "https://pfam.xfam.org");
27 url = new PfamFull().getURL(" abc ");
28 assertEquals(url, "https://pfam.xfam.org/family/ABC/alignment/full");