@Test public void sendGetRequest() { }
public String sendGetRequest(String url){ String externalResponse=""; RestTemplate template=new RestTemplate(); try{ externalResponse=template.getForObject(url,String.class); } catch (Exception ex){ ex.printStackTrace(); } return externalResponse; }
ExternalService { public String sendGetRequest(String url){ String externalResponse=""; RestTemplate template=new RestTemplate(); try{ externalResponse=template.getForObject(url,String.class); } catch (Exception ex){ ex.printStackTrace(); } return externalResponse; } }
ExternalService { public String sendGetRequest(String url){ String externalResponse=""; RestTemplate template=new RestTemplate(); try{ externalResponse=template.getForObject(url,String.class); } catch (Exception ex){ ex.printStackTrace(); } return externalResponse; }  }
ExternalService { public String sendGetRequest(String url){ String externalResponse=""; RestTemplate template=new RestTemplate(); try{ externalResponse=template.getForObject(url,String.class); } catch (Exception ex){ ex.printStackTrace(); } return externalResponse; }  String sendGetRequest(String url); String sendPostRequest(String body); String getToken(); String getLeagueStanding(int leagueID); String getLeagueFixture(int leagueID, int matchDay); }
ExternalService { public String sendGetRequest(String url){ String externalResponse=""; RestTemplate template=new RestTemplate(); try{ externalResponse=template.getForObject(url,String.class); } catch (Exception ex){ ex.printStackTrace(); } return externalResponse; }  String sendGetRequest(String url); String sendPostRequest(String body); String getToken(); String getLeagueStanding(int leagueID); String getLeagueFixture(int leagueID, int matchDay);  }