test_class.file: spring-social-strava/src/test/java/org/springframework/social/strava/api/impl/SegmentEffortTemplateTest.java
test_class.identifier: SegmentEffortTemplateTest
test_class.superclass: extends AbstractStravaApiTest
test_case.body: @Test
      public void testGetSegmentEffortById() throws Exception {
          mockServer.expect(requestTo("https://www.strava.com/api/v3/segment_efforts/1234567")).andExpect(method(GET))
                  .andExpect(header("Authorization", "Bearer ACCESS_TOKEN"))
                  .andRespond(withSuccess(new ClassPathResource("segmentEffort.json", getClass()), MediaType.APPLICATION_JSON));
  
          StravaSegmentEffort segmentEffort = strava.segmentEffortOperations().getSegmentEffortById("1234567");
          assertEquals(188196580, segmentEffort.getId());
          assertEquals("SF2G San Bruno Ave Climb", segmentEffort.getName());
          assertEquals("5099", segmentEffort.getAthlete().getId());
          assertEquals(236.82, segmentEffort.getDistance(), .1);
          assertEquals("2006-04-21T13:20:40Z", segmentEffort.getDate());
          assertEquals(345781, segmentEffort.getSegment().getId());
          assertEquals(62, segmentEffort.getElapsedTime());
      }
test_case.class_method_signature: SegmentEffortTemplateTest.testGetSegmentEffortById()
test_case.full_signature: @Test public void testGetSegmentEffortById()
test_case.identifier: testGetSegmentEffortById
test_case.invocations: andRespond andExpect andExpect expect requestTo method header withSuccess getClass getSegmentEffortById segmentEffortOperations assertEquals getId assertEquals getName assertEquals getId getAthlete assertEquals getDistance assertEquals getDate assertEquals getId getSegment assertEquals getElapsedTime
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSegmentEffortById()
focal_class.declarator: restTemplate
focal_class.modifier: private final
focal_class.original_string: private final RestTemplate restTemplate;
focal_class.type: RestTemplate
focal_class.var_name: restTemplate
focal_class.file: spring-social-strava/src/main/java/org/springframework/social/strava/api/impl/SegmentEffortTemplate.java
focal_class.identifier: SegmentEffortTemplate
focal_class.interfaces: implements SegmentEffortOperations
focal_class.class_method_signature: SegmentEffortTemplate.SegmentEffortTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.full_signature: public  SegmentEffortTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.identifier: SegmentEffortTemplate
focal_class.modifiers: public
focal_class.parameters: (RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.signature:  SegmentEffortTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.class_method_signature: SegmentEffortTemplate.getSegmentEfforts(String segmentId, String athleteId)
focal_class.full_signature: public List<StravaSegmentEffort> getSegmentEfforts(String segmentId, String athleteId)
focal_class.identifier: getSegmentEfforts
focal_class.modifiers: public
focal_class.parameters: (String segmentId, String athleteId)
focal_class.return: List<StravaSegmentEffort>
focal_class.signature: List<StravaSegmentEffort> getSegmentEfforts(String segmentId, String athleteId)
focal_class.class_method_signature: SegmentEffortTemplate.getSegmentEffortById(String id)
focal_class.full_signature: public StravaSegmentEffort getSegmentEffortById(String id)
focal_class.identifier: getSegmentEffortById
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: StravaSegmentEffort
focal_class.signature: StravaSegmentEffort getSegmentEffortById(String id)
focal_class.class_method_signature: SegmentEffortTemplate.getAllSegmentEfforts(String segmentId, String startTime, String endTime)
focal_class.full_signature: public List<StravaSegmentEffort> getAllSegmentEfforts(String segmentId, String startTime, String endTime)
focal_class.identifier: getAllSegmentEfforts
focal_class.modifiers: public
focal_class.parameters: (String segmentId, String startTime, String endTime)
focal_class.return: List<StravaSegmentEffort>
focal_class.signature: List<StravaSegmentEffort> getAllSegmentEfforts(String segmentId, String startTime, String endTime)
focal_class.superclass: extends AbstractStravaOperations
focal_method.body: public StravaSegmentEffort getSegmentEffortById(String id) {
          return restTemplate.getForObject(buildUri("/segment_efforts/" + id), StravaSegmentEffort.class);
      }
focal_method.class_method_signature: SegmentEffortTemplate.getSegmentEffortById(String id)
focal_method.full_signature: public StravaSegmentEffort getSegmentEffortById(String id)
focal_method.identifier: getSegmentEffortById
focal_method.invocations: getForObject buildUri
focal_method.modifiers: public
focal_method.parameters: (String id)
focal_method.return: StravaSegmentEffort
focal_method.signature: StravaSegmentEffort getSegmentEffortById(String id)