@Test public void testGetResults() throws Exception { mockMvc.perform(get("/jobResults").contentType(MediaType.ALL)) .andExpect(status().isOk()) .andReturn(); verify(jobResultsServiceMock).getJobResults(); }
@RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody public List<JobResult> getJobResults() { return jobResultsService.getJobResults(); }
JobResultsController { @RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody public List<JobResult> getJobResults() { return jobResultsService.getJobResults(); } }
JobResultsController { @RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody public List<JobResult> getJobResults() { return jobResultsService.getJobResults(); }  }
JobResultsController { @RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody public List<JobResult> getJobResults() { return jobResultsService.getJobResults(); }  @RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody List<JobResult> getJobResults(); @RequestMapping(value = "files/job_report/{id}.pdf", method = RequestMethod.GET) @ResponseBody ResponseEntity<byte[]> getJobReportPdf(@PathVariable("id") Long jobExecutionId); }
JobResultsController { @RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody public List<JobResult> getJobResults() { return jobResultsService.getJobResults(); }  @RequestMapping(value = "jobResults", method = RequestMethod.GET) @ResponseBody List<JobResult> getJobResults(); @RequestMapping(value = "files/job_report/{id}.pdf", method = RequestMethod.GET) @ResponseBody ResponseEntity<byte[]> getJobReportPdf(@PathVariable("id") Long jobExecutionId);  }