@Test public void testGetTopic(){ mockServer.expect(requestTo("https: .andRespond(withSuccess(jsonResource("testdata/yammer-topic"), APPLICATION_JSON)); Topic topic = yammerTemplate.topicOperations().getTopic(123L); assertThat(topic, notNullValue()); assertThat(topic.getId(), equalTo(712836L)); }
public Topic getTopic(long id) { return restTemplate.getForObject(buildUri("topics/"+String.valueOf(id)+".json"), Topic.class); }
TopicTemplate extends AbstractYammerOperations implements TopicOperations { public Topic getTopic(long id) { return restTemplate.getForObject(buildUri("topics/"+String.valueOf(id)+".json"), Topic.class); } }
TopicTemplate extends AbstractYammerOperations implements TopicOperations { public Topic getTopic(long id) { return restTemplate.getForObject(buildUri("topics/"+String.valueOf(id)+".json"), Topic.class); } TopicTemplate(RestTemplate restTemplate); }
TopicTemplate extends AbstractYammerOperations implements TopicOperations { public Topic getTopic(long id) { return restTemplate.getForObject(buildUri("topics/"+String.valueOf(id)+".json"), Topic.class); } TopicTemplate(RestTemplate restTemplate); Topic getTopic(long id); }
TopicTemplate extends AbstractYammerOperations implements TopicOperations { public Topic getTopic(long id) { return restTemplate.getForObject(buildUri("topics/"+String.valueOf(id)+".json"), Topic.class); } TopicTemplate(RestTemplate restTemplate); Topic getTopic(long id);  }