test_class.declarator: systemJobRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SystemJobRestController systemJobRestController;
test_class.type: SystemJobRestController
test_class.var_name: systemJobRestController
test_class.declarator: systemJobService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SystemJobService systemJobService;
test_class.type: SystemJobService
test_class.var_name: systemJobService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/SystemJobRestControllerTest.java
test_class.identifier: SystemJobRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testRunSystemJobFileUploadCleanup() throws Exception
      {
          // Create the system job run request.
          SystemJobRunRequest systemJobRunRequest = new SystemJobRunRequest(FileUploadCleanupJob.JOB_NAME,
              Arrays.asList(new Parameter(ConfigurationValue.FILE_UPLOAD_CLEANUP_JOB_THRESHOLD_MINUTES.getKey(), String.valueOf(INTEGER_VALUE))));
  
          SystemJobRunResponse systemJobRunResponse = new SystemJobRunResponse(FileUploadCleanupJob.JOB_NAME,
              Arrays.asList(new Parameter(ConfigurationValue.FILE_UPLOAD_CLEANUP_JOB_THRESHOLD_MINUTES.getKey(), String.valueOf(INTEGER_VALUE))));
  
          when(systemJobService.runSystemJob(systemJobRunRequest)).thenReturn(systemJobRunResponse);
  
          // Request to run the system job.
          SystemJobRunResponse resultSystemJobRunResponse = systemJobRestController.runSystemJob(systemJobRunRequest);
  
          // Verify the external calls.
          verify(systemJobService).runSystemJob(systemJobRunRequest);
          verifyNoMoreInteractions(systemJobService);
  
          // Validate the returned object.
          assertEquals(systemJobRunResponse, resultSystemJobRunResponse);
      }
test_case.class_method_signature: SystemJobRestControllerTest.testRunSystemJobFileUploadCleanup()
test_case.full_signature: @Test public void testRunSystemJobFileUploadCleanup()
test_case.identifier: testRunSystemJobFileUploadCleanup
test_case.invocations: asList getKey valueOf asList getKey valueOf thenReturn when runSystemJob runSystemJob runSystemJob verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRunSystemJobFileUploadCleanup()
focal_class.declarator: systemJobService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SystemJobService systemJobService;
focal_class.type: SystemJobService
focal_class.var_name: systemJobService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/SystemJobRestController.java
focal_class.identifier: SystemJobRestController
focal_class.class_method_signature: SystemJobRestController.runSystemJob(@RequestBody SystemJobRunRequest request)
focal_class.full_signature: @RequestMapping(value = "/systemJobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SYSTEM_JOBS_POST) public SystemJobRunResponse runSystemJob(@RequestBody SystemJobRunRequest request)
focal_class.identifier: runSystemJob
focal_class.modifiers: @RequestMapping(value = "/systemJobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SYSTEM_JOBS_POST) public
focal_class.parameters: (@RequestBody SystemJobRunRequest request)
focal_class.return: SystemJobRunResponse
focal_class.signature: SystemJobRunResponse runSystemJob(@RequestBody SystemJobRunRequest request)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/systemJobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_SYSTEM_JOBS_POST)
      public SystemJobRunResponse runSystemJob(@RequestBody SystemJobRunRequest request) throws Exception
      {
          // Run the system job.
          return systemJobService.runSystemJob(request);
      }
focal_method.class_method_signature: SystemJobRestController.runSystemJob(@RequestBody SystemJobRunRequest request)
focal_method.full_signature: @RequestMapping(value = "/systemJobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SYSTEM_JOBS_POST) public SystemJobRunResponse runSystemJob(@RequestBody SystemJobRunRequest request)
focal_method.identifier: runSystemJob
focal_method.invocations: runSystemJob
focal_method.modifiers: @RequestMapping(value = "/systemJobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SYSTEM_JOBS_POST) public
focal_method.parameters: (@RequestBody SystemJobRunRequest request)
focal_method.return: SystemJobRunResponse
focal_method.signature: SystemJobRunResponse runSystemJob(@RequestBody SystemJobRunRequest request)