test_class.declarator: jobRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private JobRestController jobRestController;
test_class.type: JobRestController
test_class.var_name: jobRestController
test_class.declarator: jobService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private JobService jobService;
test_class.type: JobService
test_class.var_name: jobService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/JobRestControllerTest.java
test_class.identifier: JobRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetJob() throws Exception
      {
          // Create a job.
          Job job = new Job();
          job.setId(JOB_ID);
  
          // Mock the external calls.
          when(jobService.getJob(JOB_ID, VERBOSE)).thenReturn(job);
  
          // Call the method under test.
          Job result = jobRestController.getJob(JOB_ID, VERBOSE);
  
          // Verify the external calls.
          verify(jobService).getJob(JOB_ID, VERBOSE);
          verifyNoMoreInteractionsHelper();
  
          // Validate the results.
          assertEquals(job, result);
      }
test_case.class_method_signature: JobRestControllerTest.testGetJob()
test_case.full_signature: @Test public void testGetJob()
test_case.identifier: testGetJob
test_case.invocations: setId thenReturn when getJob getJob getJob verify verifyNoMoreInteractionsHelper assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetJob()
focal_class.declarator: jobService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JobService jobService;
focal_class.type: JobService
focal_class.var_name: jobService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/JobRestController.java
focal_class.identifier: JobRestController
focal_class.class_method_signature: JobRestController.createJob(@RequestBody JobCreateRequest request)
focal_class.full_signature: @RequestMapping(value = "/jobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOBS_POST) public Job createJob(@RequestBody JobCreateRequest request)
focal_class.identifier: createJob
focal_class.modifiers: @RequestMapping(value = "/jobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOBS_POST) public
focal_class.parameters: (@RequestBody JobCreateRequest request)
focal_class.return: Job
focal_class.signature: Job createJob(@RequestBody JobCreateRequest request)
focal_class.class_method_signature: JobRestController.getJobs(@RequestParam(value = "namespace", required = false) String namespace,
          @RequestParam(value = "jobName", required = false) String jobName, @RequestParam(value = "status", required = false) JobStatusEnum status,
          @RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "endTime", required = false) String endTime)
focal_class.full_signature: @RequestMapping(value = "/jobs", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET) public JobSummaries getJobs(@RequestParam(value = "namespace", required = false) String namespace,
          @RequestParam(value = "jobName", required = false) String jobName, @RequestParam(value = "status", required = false) JobStatusEnum status,
          @RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "endTime", required = false) String endTime)
focal_class.identifier: getJobs
focal_class.modifiers: @RequestMapping(value = "/jobs", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET) public
focal_class.parameters: (@RequestParam(value = "namespace", required = false) String namespace,
          @RequestParam(value = "jobName", required = false) String jobName, @RequestParam(value = "status", required = false) JobStatusEnum status,
          @RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "endTime", required = false) String endTime)
focal_class.return: JobSummaries
focal_class.signature: JobSummaries getJobs(@RequestParam(value = "namespace", required = false) String namespace,
          @RequestParam(value = "jobName", required = false) String jobName, @RequestParam(value = "status", required = false) JobStatusEnum status,
          @RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "endTime", required = false) String endTime)
focal_class.class_method_signature: JobRestController.getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_class.full_signature: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET_BY_ID) public Job getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_class.identifier: getJob
focal_class.modifiers: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET_BY_ID) public
focal_class.parameters: (@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_class.return: Job
focal_class.signature: Job getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_class.class_method_signature: JobRestController.signalJob(@RequestBody JobSignalRequest request)
focal_class.full_signature: @RequestMapping(value = "/jobs/signal", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOBS_SIGNAL_POST) public Job signalJob(@RequestBody JobSignalRequest request)
focal_class.identifier: signalJob
focal_class.modifiers: @RequestMapping(value = "/jobs/signal", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOBS_SIGNAL_POST) public
focal_class.parameters: (@RequestBody JobSignalRequest request)
focal_class.return: Job
focal_class.signature: Job signalJob(@RequestBody JobSignalRequest request)
focal_class.class_method_signature: JobRestController.updateJob(@PathVariable("id") String id, @RequestBody JobUpdateRequest jobUpdateRequest)
focal_class.full_signature: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOBS_PUT) public Job updateJob(@PathVariable("id") String id, @RequestBody JobUpdateRequest jobUpdateRequest)
focal_class.identifier: updateJob
focal_class.modifiers: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOBS_PUT) public
focal_class.parameters: (@PathVariable("id") String id, @RequestBody JobUpdateRequest jobUpdateRequest)
focal_class.return: Job
focal_class.signature: Job updateJob(@PathVariable("id") String id, @RequestBody JobUpdateRequest jobUpdateRequest)
focal_class.class_method_signature: JobRestController.deleteJob(@PathVariable("id") String id, @RequestBody JobDeleteRequest jobDeleteRequest)
focal_class.full_signature: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_JOBS_DELETE) public Job deleteJob(@PathVariable("id") String id, @RequestBody JobDeleteRequest jobDeleteRequest)
focal_class.identifier: deleteJob
focal_class.modifiers: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_JOBS_DELETE) public
focal_class.parameters: (@PathVariable("id") String id, @RequestBody JobDeleteRequest jobDeleteRequest)
focal_class.return: Job
focal_class.signature: Job deleteJob(@PathVariable("id") String id, @RequestBody JobDeleteRequest jobDeleteRequest)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_JOBS_GET_BY_ID)
      public Job getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
          throws Exception
      {
          return jobService.getJob(id, verbose);
      }
focal_method.class_method_signature: JobRestController.getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_method.full_signature: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET_BY_ID) public Job getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_method.identifier: getJob
focal_method.invocations: getJob
focal_method.modifiers: @RequestMapping(value = "/jobs/ids/{id}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET_BY_ID) public
focal_method.parameters: (@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)
focal_method.return: Job
focal_method.signature: Job getJob(@PathVariable("id") String id, @RequestParam(value = "verbose", required = false, defaultValue = "false") Boolean verbose)