From: Jim Procter Date: Tue, 11 Oct 2022 14:43:36 +0000 (+0100) Subject: JAL-4073 update tests X-Git-Tag: Release_2_11_2_6~12 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7179a05e5a5ab96eea7bf77b6e7b1d6f6bf5a15e;p=jalview.git JAL-4073 update tests --- diff --git a/test/jalview/ws/dbsources/PfamFullTest.java b/test/jalview/ws/dbsources/PfamFullTest.java index fd59ef3..d03057d 100644 --- a/test/jalview/ws/dbsources/PfamFullTest.java +++ b/test/jalview/ws/dbsources/PfamFullTest.java @@ -38,7 +38,7 @@ public class PfamFullTest @Test(groups = "Functional") public void testGetURL() { - String path = "www.ebi.ac.uk/interpro/wwwapi/entry/pfam/ABC/?annotation=alignment:full&download"; + 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 "); @@ -46,7 +46,7 @@ public class PfamFullTest // with override in properties Cache.setProperty(Pfam.PFAM_BASEURL_KEY, - "http://www.ebi.ac.uk/interpro/wwwapi/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$&download"); + "http://www.ebi.ac.uk/interpro/api/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$"); url = new PfamFull().getURL(" abc "); assertEquals(url, "http://" + path); } diff --git a/test/jalview/ws/dbsources/PfamSeedTest.java b/test/jalview/ws/dbsources/PfamSeedTest.java index d228c35..3c30086 100644 --- a/test/jalview/ws/dbsources/PfamSeedTest.java +++ b/test/jalview/ws/dbsources/PfamSeedTest.java @@ -38,7 +38,7 @@ public class PfamSeedTest @Test(groups = "Functional") public void testGetURL() { - String path = "www.ebi.ac.uk/interpro/wwwapi/entry/pfam/ABC/?annotation=alignment:seed&download"; + String path = "www.ebi.ac.uk/interpro/api/entry/pfam/ABC/?annotation=alignment:seed"; // with default value for domain String url = new PfamSeed().getURL(" abc "); @@ -46,7 +46,7 @@ public class PfamSeedTest // with override in properties Cache.setProperty(Pfam.PFAM_BASEURL_KEY, - "http://www.ebi.ac.uk/interpro/wwwapi/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$&download"); + "http://www.ebi.ac.uk/interpro/api/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$"); url = new PfamSeed().getURL(" abc "); assertEquals(url, "http://" + path); }