From: Jim Procter Date: Mon, 13 Sep 2021 16:04:22 +0000 (+0100) Subject: JAL-3829 ensure unmock the FTS PDB and TDB clients after mocking for a test X-Git-Tag: Release_2_11_2_0~39^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=29538a14c49fcd47f00f1d2fff51f357b8e0388e;p=jalview.git JAL-3829 ensure unmock the FTS PDB and TDB clients after mocking for a test --- diff --git a/test/jalview/gui/StructureChooserTest.java b/test/jalview/gui/StructureChooserTest.java index 23b572f..97f2462 100644 --- a/test/jalview/gui/StructureChooserTest.java +++ b/test/jalview/gui/StructureChooserTest.java @@ -30,6 +30,7 @@ import jalview.datamodel.PDBEntry; import jalview.datamodel.Sequence; import jalview.datamodel.SequenceI; import jalview.fts.api.FTSData; +import jalview.fts.api.FTSRestClientI; import jalview.fts.core.FTSRestClient; import jalview.fts.core.FTSRestRequest; import jalview.fts.service.pdb.PDBFTSRestClient; @@ -150,6 +151,9 @@ public class StructureChooserTest FilterOption filterOpt = (FilterOption) sc.getCmbFilterOption() .getSelectedItem(); assertEquals("Cached Structures", filterOpt.getName()); + FTSRestClient.unMock((FTSRestClient) TDBeaconsFTSRestClient.getInstance()); + FTSRestClient.unMock((FTSRestClient) PDBFTSRestClient.getInstance()); + } @Test(groups = { "Network" })