@Test void me() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(new ClassPathResource("/user/me.json", getClass()), APPLICATION_JSON)); final Me me = userResource.me(); assertThat(me.getId()).isEqualTo("553d437215522ed4b3df8c50"); assertThat(me.getUsername()).isEqualTo("MadLittleMods"); assertThat(me.getDisplayName()).isEqualTo("Eric Eastwood"); assertThat(me.getUrl()).isEqualTo("/MadLittleMods"); assertThat(me.getAvatarUrl()).isEqualTo("https: }
@Override public Me me() { return restTemplate.getForObject("https: }
UserResourceTemplate implements UserResource { @Override public Me me() { return restTemplate.getForObject("https: } }
UserResourceTemplate implements UserResource { @Override public Me me() { return restTemplate.getForObject("https: } UserResourceTemplate(final RestTemplate restTemplate); }
UserResourceTemplate implements UserResource { @Override public Me me() { return restTemplate.getForObject("https: } UserResourceTemplate(final RestTemplate restTemplate); @Override Me me(); }
UserResourceTemplate implements UserResource { @Override public Me me() { return restTemplate.getForObject("https: } UserResourceTemplate(final RestTemplate restTemplate); @Override Me me();  }