JAL-2885 tests updated for code changes
[jalview.git] / test / jalview / ws / dbsources / PfamFullTest.java
index d675fbe..b914a45 100644 (file)
@@ -18,13 +18,15 @@ public class PfamFullTest
   @Test(groups = "Functional")
   public void testGetURL()
   {
+    String path = "pfam.xfam.org/family/ABC/alignment/full";
+
     // with default value for domain
     String url = new PfamFull().getURL(" abc ");
-    assertEquals(url, "http://pfam.xfam.org/family/ABC/alignment/full");
+    assertEquals(url, "https://" + path);
 
     // with override in properties
-    Cache.setProperty("PFAM_DOMAIN", "https://pfam.xfam.org");
+    Cache.setProperty(Pfam.PFAM_BASEURL_KEY, "http://pfam.xfam.org");
     url = new PfamFull().getURL(" abc ");
-    assertEquals(url, "https://pfam.xfam.org/family/ABC/alignment/full");
+    assertEquals(url, "http://" + path);
   }
 }