From 7179a05e5a5ab96eea7bf77b6e7b1d6f6bf5a15e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 11 Oct 2022 15:43:36 +0100 Subject: [PATCH] JAL-4073 update tests --- test/jalview/ws/dbsources/PfamFullTest.java | 4 ++-- test/jalview/ws/dbsources/PfamSeedTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); } -- 1.7.10.2