JAL-2885 tests updated for code changes
[jalview.git] / test / jalview / ws / dbsources / PfamSeedTest.java
index 537c97e..2fa1871 100644 (file)
@@ -18,13 +18,15 @@ public class PfamSeedTest
   @Test(groups = "Functional")
   public void testGetURL()
   {
+    String path = "pfam.xfam.org/family/ABC/alignment/seed";
+
     // with default value for domain
     String url = new PfamSeed().getURL(" abc ");
-    assertEquals(url, "http://pfam.xfam.org/family/ABC/alignment/seed");
+    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 PfamSeed().getURL(" abc ");
-    assertEquals(url, "https://pfam.xfam.org/family/ABC/alignment/seed");
+    assertEquals(url, "http://" + path);
   }
 }