test_class.declarator: apiAdapter = new StravaAdapter()
test_class.modifier: private
test_class.original_string: private StravaAdapter apiAdapter = new StravaAdapter();
test_class.type: StravaAdapter
test_class.var_name: apiAdapter
test_class.declarator: strava = Mockito.mock(Strava.class)
test_class.modifier: private
test_class.original_string: private Strava strava = Mockito.mock(Strava.class);
test_class.type: Strava
test_class.var_name: strava
test_class.file: spring-social-strava/src/test/java/org/springframework/social/strava/connect/StravaAdapterTest.java
test_class.identifier: StravaAdapterTest
test_case.body: @Test
  	public void fetchProfile() {
  		AthleteOperations athleteOperations = Mockito.mock(AthleteOperations.class);
  		when(strava.athleteOperations()).thenReturn(athleteOperations);
  		when(athleteOperations.getAthleteProfile()).thenReturn(createProfile(123456L, "Craig", "Walls", "cwalls@example.com", "http://pics.com/227615/medium.jpg", "http://pics.com/227615/large.jpg"));
          UserProfile profile = apiAdapter.fetchUserProfile(strava);
          assertEquals("Craig Walls", profile.getName());
          assertEquals("cwalls@example.com", profile.getEmail());
          assertEquals("cwalls@example.com", profile.getUsername());
  	}
test_case.class_method_signature: StravaAdapterTest.fetchProfile()
test_case.full_signature: @Test public void fetchProfile()
test_case.identifier: fetchProfile
test_case.invocations: mock thenReturn when athleteOperations thenReturn when getAthleteProfile createProfile fetchUserProfile assertEquals getName assertEquals getEmail assertEquals getUsername
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fetchProfile()
focal_class.file: spring-social-strava/src/main/java/org/springframework/social/strava/connect/StravaAdapter.java
focal_class.identifier: StravaAdapter
focal_class.interfaces: implements ApiAdapter<Strava>
focal_class.class_method_signature: StravaAdapter.test(Strava strava)
focal_class.full_signature: public boolean test(Strava strava)
focal_class.identifier: test
focal_class.modifiers: public
focal_class.parameters: (Strava strava)
focal_class.return: boolean
focal_class.signature: boolean test(Strava strava)
focal_class.class_method_signature: StravaAdapter.setConnectionValues(Strava strava, ConnectionValues values)
focal_class.full_signature: public void setConnectionValues(Strava strava, ConnectionValues values)
focal_class.identifier: setConnectionValues
focal_class.modifiers: public
focal_class.parameters: (Strava strava, ConnectionValues values)
focal_class.return: void
focal_class.signature: void setConnectionValues(Strava strava, ConnectionValues values)
focal_class.class_method_signature: StravaAdapter.fetchUserProfile(Strava strava)
focal_class.full_signature: public UserProfile fetchUserProfile(Strava strava)
focal_class.identifier: fetchUserProfile
focal_class.modifiers: public
focal_class.parameters: (Strava strava)
focal_class.return: UserProfile
focal_class.signature: UserProfile fetchUserProfile(Strava strava)
focal_class.class_method_signature: StravaAdapter.updateStatus(Strava strava, String message)
focal_class.full_signature: public void updateStatus(Strava strava, String message)
focal_class.identifier: updateStatus
focal_class.modifiers: public
focal_class.parameters: (Strava strava, String message)
focal_class.return: void
focal_class.signature: void updateStatus(Strava strava, String message)
focal_method.body: public UserProfile fetchUserProfile(Strava strava) {
          StravaAthleteProfile profile = strava.athleteOperations().getAthleteProfile();
  		return new UserProfileBuilder().setName(profile.getName()).setEmail(profile.getEmail()).setUsername(profile.getEmail()).build();
  	}
focal_method.class_method_signature: StravaAdapter.fetchUserProfile(Strava strava)
focal_method.full_signature: public UserProfile fetchUserProfile(Strava strava)
focal_method.identifier: fetchUserProfile
focal_method.invocations: getAthleteProfile athleteOperations build setUsername setEmail setName getName getEmail getEmail
focal_method.modifiers: public
focal_method.parameters: (Strava strava)
focal_method.return: UserProfile
focal_method.signature: UserProfile fetchUserProfile(Strava strava)