@Test public void unbookmark() { mockServer.expect(requestTo(JobTemplate.UNBOOKMARK_URL.replaceFirst("\\{job-id\\}", "123456") + "?oauth2_access_token=ACCESS_TOKEN")) .andExpect(method(DELETE)) .andExpect(content().string("")) .andRespond(withSuccess("", MediaType.APPLICATION_JSON)); linkedIn.jobOperations().unbookmarkJob(123456); }
public void unbookmarkJob(int id) { restOperations.delete(UNBOOKMARK_URL, id); }
JobTemplate extends AbstractTemplate implements JobOperations { public void unbookmarkJob(int id) { restOperations.delete(UNBOOKMARK_URL, id); } }
JobTemplate extends AbstractTemplate implements JobOperations { public void unbookmarkJob(int id) { restOperations.delete(UNBOOKMARK_URL, id); } JobTemplate(RestOperations restOperations, ObjectMapper objectMapper ); }
JobTemplate extends AbstractTemplate implements JobOperations { public void unbookmarkJob(int id) { restOperations.delete(UNBOOKMARK_URL, id); } JobTemplate(RestOperations restOperations, ObjectMapper objectMapper ); Jobs searchJobs(JobSearchParameters parameters); Job getJob(int id); void bookmarkJob(int id); void unbookmarkJob(int id); Jobs getSuggestions(int start, int count); JobBookmarks getBookmarks(int start, int count); }
JobTemplate extends AbstractTemplate implements JobOperations { public void unbookmarkJob(int id) { restOperations.delete(UNBOOKMARK_URL, id); } JobTemplate(RestOperations restOperations, ObjectMapper objectMapper ); Jobs searchJobs(JobSearchParameters parameters); Job getJob(int id); void bookmarkJob(int id); void unbookmarkJob(int id); Jobs getSuggestions(int start, int count); JobBookmarks getBookmarks(int start, int count); static final String BASE_URL; static final String FIELDS; static final String SEARCH_FIELDS; static final String SEARCH_URL; static final String JOB_URL; static final String BOOKMARK_URL; static final String BOOKMARKS_URL; static final String UNBOOKMARK_URL; static final String SUGGESTED_URL; }