X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Fdbsources%2FPfamFullTest.java;h=d03057dfa0a9eef7c2f5df9854a5b79e9bec897c;hb=7f98aeaa190d77fd40dcf80d55faedcace024d6f;hp=f5cc640b2c8fe8d5b70423d7d5aaece569bf4dd2;hpb=2bef55651d4b9d94148f75e3a697ec63823b218a;p=jalview.git diff --git a/test/jalview/ws/dbsources/PfamFullTest.java b/test/jalview/ws/dbsources/PfamFullTest.java index f5cc640..d03057d 100644 --- a/test/jalview/ws/dbsources/PfamFullTest.java +++ b/test/jalview/ws/dbsources/PfamFullTest.java @@ -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"; + 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); }