test_class.file: spring-social-yammer/src/test/java/org/springframework/social/yammer/api/impl/TopicTemplateTest.java
test_class.identifier: TopicTemplateTest
test_class.superclass: extends AbstractYammerApiTest
test_case.body: @Test
  	public void testGetTopic(){
  		mockServer.expect(requestTo("https://www.yammer.com/api/v1/topics/123.json")).andExpect(method(GET))
  				.andRespond(withSuccess(jsonResource("testdata/yammer-topic"), APPLICATION_JSON));
  		
  		Topic topic = yammerTemplate.topicOperations().getTopic(123L);
  		assertThat(topic, notNullValue());
  		assertThat(topic.getId(), equalTo(712836L));
  		
  	}
test_case.class_method_signature: TopicTemplateTest.testGetTopic()
test_case.full_signature: @Test public void testGetTopic()
test_case.identifier: testGetTopic
test_case.invocations: andRespond andExpect expect requestTo method withSuccess jsonResource getTopic topicOperations assertThat notNullValue assertThat getId equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTopic()
focal_class.declarator: restTemplate
focal_class.modifier: private
focal_class.original_string: private RestTemplate restTemplate;
focal_class.type: RestTemplate
focal_class.var_name: restTemplate
focal_class.file: spring-social-yammer/src/main/java/org/springframework/social/yammer/api/impl/TopicTemplate.java
focal_class.identifier: TopicTemplate
focal_class.interfaces: implements TopicOperations
focal_class.class_method_signature: TopicTemplate.TopicTemplate(RestTemplate restTemplate)
focal_class.full_signature: public  TopicTemplate(RestTemplate restTemplate)
focal_class.identifier: TopicTemplate
focal_class.modifiers: public
focal_class.parameters: (RestTemplate restTemplate)
focal_class.signature:  TopicTemplate(RestTemplate restTemplate)
focal_class.class_method_signature: TopicTemplate.getTopic(long id)
focal_class.full_signature: public Topic getTopic(long id)
focal_class.identifier: getTopic
focal_class.modifiers: public
focal_class.parameters: (long id)
focal_class.return: Topic
focal_class.signature: Topic getTopic(long id)
focal_class.superclass: extends AbstractYammerOperations
focal_method.body: public Topic getTopic(long id) {
  		return restTemplate.getForObject(buildUri("topics/"+String.valueOf(id)+".json"), Topic.class);
  	}
focal_method.class_method_signature: TopicTemplate.getTopic(long id)
focal_method.full_signature: public Topic getTopic(long id)
focal_method.identifier: getTopic
focal_method.invocations: getForObject buildUri valueOf
focal_method.modifiers: public
focal_method.parameters: (long id)
focal_method.return: Topic
focal_method.signature: Topic getTopic(long id)