Merge branch 'develop' into update_212_Dec_merge_with_21125_chamges
[jalview.git] / test / jalview / ws / dbsources / PfamFullTest.java
index 23cceb2..d03057d 100644 (file)
@@ -22,11 +22,11 @@ package jalview.ws.dbsources;
 
 import static org.testng.Assert.assertEquals;
 
-import jalview.bin.Cache;
-
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
+import jalview.bin.Cache;
+
 public class PfamFullTest
 {
   @BeforeClass(alwaysRun = true)
@@ -38,14 +38,15 @@ public class PfamFullTest
   @Test(groups = "Functional")
   public void testGetURL()
   {
-    String path = "pfam.xfam.org/family/ABC/alignment/full/gzipped";
+    String path = "www.ebi.ac.uk/interpro/api/entry/pfam/ABC/?annotation=alignment:full";
 
     // with default value for domain
     String url = new PfamFull().getURL(" abc ");
     assertEquals(url, "https://" + path);
 
     // with override in properties
-    Cache.setProperty(Pfam.PFAM_BASEURL_KEY, "http://pfam.xfam.org");
+    Cache.setProperty(Pfam.PFAM_BASEURL_KEY,
+            "http://www.ebi.ac.uk/interpro/api/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$");
     url = new PfamFull().getURL(" abc ");
     assertEquals(url, "http://" + path);
   }