{
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)