test_class.declarator: jobDefinitionRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private JobDefinitionRestController jobDefinitionRestController;
test_class.type: JobDefinitionRestController
test_class.var_name: jobDefinitionRestController
test_class.declarator: jobDefinitionService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private JobDefinitionService jobDefinitionService;
test_class.type: JobDefinitionService
test_class.var_name: jobDefinitionService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/JobDefinitionRestControllerTest.java
test_class.identifier: JobDefinitionRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetJobDefinition() throws Exception
      {
          String namespace = NAMESPACE;
          String jobName = JOB_NAME;
          JobDefinition jobDefinition = getJobDefinition(NAMESPACE, JOB_NAME);
          when(jobDefinitionService.getJobDefinition(namespace, jobName)).thenReturn(jobDefinition);
  
          JobDefinition resultJobDefinition = jobDefinitionRestController.getJobDefinition(namespace, jobName);
          // Verify the external calls.
          verify(jobDefinitionService).getJobDefinition(namespace, jobName);
          verifyNoMoreInteractions(jobDefinitionService);
          // Validate the returned object.
          assertEquals(jobDefinition, resultJobDefinition);
      }
test_case.class_method_signature: JobDefinitionRestControllerTest.testGetJobDefinition()
test_case.full_signature: @Test public void testGetJobDefinition()
test_case.identifier: testGetJobDefinition
test_case.invocations: getJobDefinition thenReturn when getJobDefinition getJobDefinition getJobDefinition verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetJobDefinition()
focal_class.declarator: jobDefinitionService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JobDefinitionService jobDefinitionService;
focal_class.type: JobDefinitionService
focal_class.var_name: jobDefinitionService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/JobDefinitionRestController.java
focal_class.identifier: JobDefinitionRestController
focal_class.class_method_signature: JobDefinitionRestController.createJobDefinition(@RequestBody JobDefinitionCreateRequest request)
focal_class.full_signature: @RequestMapping(value = "/jobDefinitions", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_POST) public JobDefinition createJobDefinition(@RequestBody JobDefinitionCreateRequest request)
focal_class.identifier: createJobDefinition
focal_class.modifiers: @RequestMapping(value = "/jobDefinitions", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_POST) public
focal_class.parameters: (@RequestBody JobDefinitionCreateRequest request)
focal_class.return: JobDefinition
focal_class.signature: JobDefinition createJobDefinition(@RequestBody JobDefinitionCreateRequest request)
focal_class.class_method_signature: JobDefinitionRestController.updateJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName,
          @RequestBody JobDefinitionUpdateRequest request)
focal_class.full_signature: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_PUT) public JobDefinition updateJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName,
          @RequestBody JobDefinitionUpdateRequest request)
focal_class.identifier: updateJobDefinition
focal_class.modifiers: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_PUT) public
focal_class.parameters: (@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName,
          @RequestBody JobDefinitionUpdateRequest request)
focal_class.return: JobDefinition
focal_class.signature: JobDefinition updateJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName,
          @RequestBody JobDefinitionUpdateRequest request)
focal_class.class_method_signature: JobDefinitionRestController.getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_class.full_signature: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_GET) public JobDefinition getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_class.identifier: getJobDefinition
focal_class.modifiers: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_class.return: JobDefinition
focal_class.signature: JobDefinition getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_GET)
      public JobDefinition getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName) throws Exception
      {
          return jobDefinitionService.getJobDefinition(namespace, jobName);
      }
focal_method.class_method_signature: JobDefinitionRestController.getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_method.full_signature: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_GET) public JobDefinition getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_method.identifier: getJobDefinition
focal_method.invocations: getJobDefinition
focal_method.modifiers: @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_GET) public
focal_method.parameters: (@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)
focal_method.return: JobDefinition
focal_method.signature: JobDefinition getJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName)