JAL-3829 mocking for PDBFTS for related query to UniprotFTS mock.
[jalview.git] / src / jalview / fts / service / threedbeacons / TDBeaconsFTSRestClient.java
index 9ca42e5..73939c3 100644 (file)
@@ -36,26 +36,11 @@ public class TDBeaconsFTSRestClient extends FTSRestClient
 {
   private static final String DEFAULT_THREEDBEACONS_DOMAIN = "https://wwwdev.ebi.ac.uk/pdbe/pdbe-kb/3dbeacons/api/uniprot/summary/";
 
-  private static FTSRestClientI instance = null;
+  public static FTSRestClientI instance = null;
 
   protected TDBeaconsFTSRestClient()
   {
   }
-  public static void createMockTDBeaconsFSRestClient(String workingQuery, String jsonResponse) {
-    instance = new TDBeaconsFTSRestClient();
-    ((TDBeaconsFTSRestClient) instance).setMock(workingQuery,jsonResponse);
-  }
-  private String mockQuery = null;
-  
-  private String mockResponse = null;
-  protected void setMock(String workingQuery,String jsonResponse) {
-    mockQuery=workingQuery;
-    mockResponse = jsonResponse;
-  }
-  private boolean isMocked()
-  {
-    return mockQuery != null && mockResponse!=null;
-  }
   @SuppressWarnings("unchecked")
   @Override
   public FTSRestResponse executeRequest(FTSRestRequest tdbRestRequest)