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 testGetAllSegmentEfforts() throws Exception {
  		mockServer.expect(requestTo("https://www.strava.com/api/v3/segments/1234/all_efforts?start_date_local=2006-04-21T13%3A20%3A40Z&end_date_local=2006-04-22T13%3A20%3A40Z&per_page=200")).andExpect(method(GET))
  				.andExpect(header("Authorization", "Bearer ACCESS_TOKEN"))
  				.andRespond(withSuccess(new ClassPathResource("segmentEfforts.json", getClass()), MediaType.APPLICATION_JSON));
  
          List<StravaSegmentEffort> segmentEfforts = strava.segmentEffortOperations().getAllSegmentEfforts("1234", "2006-04-21T13:20:40Z", "2006-04-22T13:20:40Z");
  		assertEquals(3, segmentEfforts.size());
  
          StravaSegmentEffort segmentEffort = segmentEfforts.get(0);
  
  		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());
          assertEquals(10740235, segmentEffort.getActivity().getId());
  	}
test_case.class_method_signature: SegmentEffortTemplateTest.testGetAllSegmentEfforts()
test_case.full_signature: @Test public void testGetAllSegmentEfforts()
test_case.identifier: testGetAllSegmentEfforts
test_case.invocations: andRespond andExpect andExpect expect requestTo method header withSuccess getClass getAllSegmentEfforts segmentEffortOperations assertEquals size get assertEquals getId assertEquals getName assertEquals getId getAthlete assertEquals getDistance assertEquals getDate assertEquals getId getSegment assertEquals getElapsedTime assertEquals getId getActivity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAllSegmentEfforts()
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 List<StravaSegmentEffort> getAllSegmentEfforts(String segmentId, String startTime, String endTime) {
          MultiValueMap<String, String> parameters = new LinkedMultiValueMap<String, String>();
          parameters.set("start_date_local", startTime);
          parameters.set("end_date_local", endTime);
          parameters.set("per_page", "200");
          return restTemplate.getForObject(buildUri("/segments/" + segmentId + "/all_efforts", parameters), StravaSegmentEffortList.class);
      }
focal_method.class_method_signature: SegmentEffortTemplate.getAllSegmentEfforts(String segmentId, String startTime, String endTime)
focal_method.full_signature: public List<StravaSegmentEffort> getAllSegmentEfforts(String segmentId, String startTime, String endTime)
focal_method.identifier: getAllSegmentEfforts
focal_method.invocations: set set set getForObject buildUri
focal_method.modifiers: public
focal_method.parameters: (String segmentId, String startTime, String endTime)
focal_method.return: List<StravaSegmentEffort>
focal_method.signature: List<StravaSegmentEffort> getAllSegmentEfforts(String segmentId, String startTime, String endTime)