@Test public void getProfileId() { mockServer.expect(requestTo(LinkedInTemplate.BASE_URL + "~" + ProfileTemplate.PROFILE_FIELDS + "&oauth2_access_token=ACCESS_TOKEN")).andExpect(method(GET)) .andRespond(withSuccess(new ClassPathResource("profile.json", getClass()), MediaType.APPLICATION_JSON)); assertEquals("z37f0n3A05", linkedIn.profileOperations().getProfileId()); }
public String getProfileId() { return getUserProfile().getId(); }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public String getProfileId() { return getUserProfile().getId(); } }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public String getProfileId() { return getUserProfile().getId(); } ProfileTemplate(RestOperations restOperations, ObjectMapper objectMapper); }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public String getProfileId() { return getUserProfile().getId(); } ProfileTemplate(RestOperations restOperations, ObjectMapper objectMapper); String getProfileId(); String getProfileUrl(); LinkedInProfile getUserProfile(); LinkedInProfileFull getUserProfileFull(); LinkedInProfile getProfileById(String id); LinkedInProfile getProfileByPublicUrl(String url); LinkedInProfileFull getProfileFullById(String id); LinkedInProfileFull getProfileFullByPublicUrl(String url); LinkedInProfiles search(SearchParameters parameters); }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public String getProfileId() { return getUserProfile().getId(); } ProfileTemplate(RestOperations restOperations, ObjectMapper objectMapper); String getProfileId(); String getProfileUrl(); LinkedInProfile getUserProfile(); LinkedInProfileFull getUserProfileFull(); LinkedInProfile getProfileById(String id); LinkedInProfile getProfileByPublicUrl(String url); LinkedInProfileFull getProfileFullById(String id); LinkedInProfileFull getProfileFullByPublicUrl(String url); LinkedInProfiles search(SearchParameters parameters);  }