@Test public void getGuide() { given(restTemplate.getForObject("https: .willReturn("James"); String guide = this.travelAgent.getGuide(); assertThat(guide).isEqualTo("James"); }
@HystrixCommand(fallbackMethod = "getBackupGuide") public String getGuide() { return rest.getForObject("https: }
TravelAgent { @HystrixCommand(fallbackMethod = "getBackupGuide") public String getGuide() { return rest.getForObject("https: } }
TravelAgent { @HystrixCommand(fallbackMethod = "getBackupGuide") public String getGuide() { return rest.getForObject("https: } TravelAgent(RestTemplate rest); }
TravelAgent { @HystrixCommand(fallbackMethod = "getBackupGuide") public String getGuide() { return rest.getForObject("https: } TravelAgent(RestTemplate rest); @HystrixCommand(fallbackMethod = "getBackupGuide") String getGuide(); }
TravelAgent { @HystrixCommand(fallbackMethod = "getBackupGuide") public String getGuide() { return rest.getForObject("https: } TravelAgent(RestTemplate rest); @HystrixCommand(fallbackMethod = "getBackupGuide") String getGuide();  }