JAL-4073 Pfam retrieval now works via a template including $PFAMID$ and $ALTYPE$...
[jalview.git] / test / jalview / ws / dbsources / PfamFullTest.java
index 23cceb2..eb2f147 100644 (file)
@@ -38,14 +38,14 @@ 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/wwwapi/entry/pfam/ABC/?annotation=alignment:full&download";
 
     // 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/wwwapi/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$&download");
     url = new PfamFull().getURL(" abc ");
     assertEquals(url, "http://" + path);
   }