JAL-3829 ensure unmock the FTS PDB and TDB clients after mocking for a test
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 13 Sep 2021 16:04:22 +0000 (17:04 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 13 Sep 2021 16:04:22 +0000 (17:04 +0100)
test/jalview/gui/StructureChooserTest.java

index 23b572f..97f2462 100644 (file)
@@ -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" })