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(expected = IllegalArgumentException.class)
      public void testGetJobsWrongDatFormat() throws Exception
      {
          // Create a job summary.
          JobSummary jobSummary = new JobSummary();
          jobSummary.setId(JOB_ID);
          jobSummary.setNamespace(JOB_NAMESPACE);
          jobSummary.setJobName(JOB_NAME);
  
          // Create a job summaries object.
          JobSummaries jobSummaries = new JobSummaries(Arrays.asList(jobSummary));
  
          // Mock the external calls.
          when(jobService.getJobs(JOB_NAMESPACE, JOB_NAME, JobStatusEnum.RUNNING, START_TIME, END_TIME)).thenReturn(jobSummaries);
  
          jobRestController.getJobs(JOB_NAMESPACE, JOB_NAME, JobStatusEnum.RUNNING, "adgwgsfg", "201907070948035049583045");
      }
test_case.class_method_signature: JobRestControllerTest.testGetJobsWrongDatFormat()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void testGetJobsWrongDatFormat()
test_case.identifier: testGetJobsWrongDatFormat
test_case.invocations: setId setNamespace setJobName asList thenReturn when getJobs getJobs
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetJobsWrongDatFormat()
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", 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)
          throws Exception
      {
          return jobService.getJobs(namespace, jobName, status, getDateTime(startTime), getDateTime(endTime));
      }
focal_method.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_method.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_method.identifier: getJobs
focal_method.invocations: getJobs getDateTime getDateTime
focal_method.modifiers: @RequestMapping(value = "/jobs", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOBS_GET) public
focal_method.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_method.return: JobSummaries
focal_method.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)