From 29538a14c49fcd47f00f1d2fff51f357b8e0388e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 13 Sep 2021 17:04:22 +0100 Subject: [PATCH] JAL-3829 ensure unmock the FTS PDB and TDB clients after mocking for a test --- test/jalview/gui/StructureChooserTest.java | 4 ++++ 1 file changed, 4 insertions(+) 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" }) -- 1.7.10.2