test_class.declarator: partitionKeyGroupRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private PartitionKeyGroupRestController partitionKeyGroupRestController;
test_class.type: PartitionKeyGroupRestController
test_class.var_name: partitionKeyGroupRestController
test_class.declarator: partitionKeyGroupService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PartitionKeyGroupService partitionKeyGroupService;
test_class.type: PartitionKeyGroupService
test_class.var_name: partitionKeyGroupService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/PartitionKeyGroupRestControllerTest.java
test_class.identifier: PartitionKeyGroupRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetPartitionKeyGroup()
      {
          PartitionKeyGroup partitionKeyGroup = new PartitionKeyGroup(new PartitionKeyGroupKey(PARTITION_KEY_GROUP));
          PartitionKeyGroupKey partitionKeyGroupKey = new PartitionKeyGroupKey(PARTITION_KEY_GROUP);
  
          when(partitionKeyGroupService.getPartitionKeyGroup(partitionKeyGroupKey)).thenReturn(partitionKeyGroup);
  
          // Retrieve the partition key group.
          PartitionKeyGroup resultPartitionKeyGroup = partitionKeyGroupRestController.getPartitionKeyGroup(PARTITION_KEY_GROUP);
  
          // Verify the external calls.
          verify(partitionKeyGroupService).getPartitionKeyGroup(partitionKeyGroupKey);
          verifyNoMoreInteractions(partitionKeyGroupService);
          // Validate the returned object.
          assertEquals(partitionKeyGroup, resultPartitionKeyGroup);
      }
test_case.class_method_signature: PartitionKeyGroupRestControllerTest.testGetPartitionKeyGroup()
test_case.full_signature: @Test public void testGetPartitionKeyGroup()
test_case.identifier: testGetPartitionKeyGroup
test_case.invocations: thenReturn when getPartitionKeyGroup getPartitionKeyGroup getPartitionKeyGroup verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetPartitionKeyGroup()
focal_class.declarator: PARTITION_KEY_GROUPS_URI_PREFIX = "/partitionKeyGroups"
focal_class.modifier: public static final
focal_class.original_string: public static final String PARTITION_KEY_GROUPS_URI_PREFIX = "/partitionKeyGroups";
focal_class.type: String
focal_class.var_name: PARTITION_KEY_GROUPS_URI_PREFIX
focal_class.declarator: partitionKeyGroupService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PartitionKeyGroupService partitionKeyGroupService;
focal_class.type: PartitionKeyGroupService
focal_class.var_name: partitionKeyGroupService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/PartitionKeyGroupRestController.java
focal_class.identifier: PartitionKeyGroupRestController
focal_class.class_method_signature: PartitionKeyGroupRestController.createPartitionKeyGroup(@RequestBody PartitionKeyGroupCreateRequest request)
focal_class.full_signature: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_POST) public PartitionKeyGroup createPartitionKeyGroup(@RequestBody PartitionKeyGroupCreateRequest request)
focal_class.identifier: createPartitionKeyGroup
focal_class.modifiers: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_POST) public
focal_class.parameters: (@RequestBody PartitionKeyGroupCreateRequest request)
focal_class.return: PartitionKeyGroup
focal_class.signature: PartitionKeyGroup createPartitionKeyGroup(@RequestBody PartitionKeyGroupCreateRequest request)
focal_class.class_method_signature: PartitionKeyGroupRestController.getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.full_signature: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_GET) public PartitionKeyGroup getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.identifier: getPartitionKeyGroup
focal_class.modifiers: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_GET) public
focal_class.parameters: (@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.return: PartitionKeyGroup
focal_class.signature: PartitionKeyGroup getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.class_method_signature: PartitionKeyGroupRestController.deletePartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.full_signature: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_DELETE) public PartitionKeyGroup deletePartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.identifier: deletePartitionKeyGroup
focal_class.modifiers: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_DELETE) public
focal_class.parameters: (@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.return: PartitionKeyGroup
focal_class.signature: PartitionKeyGroup deletePartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_class.class_method_signature: PartitionKeyGroupRestController.getPartitionKeyGroups()
focal_class.full_signature: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_ALL_GET) public PartitionKeyGroupKeys getPartitionKeyGroups()
focal_class.identifier: getPartitionKeyGroups
focal_class.modifiers: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_ALL_GET) public
focal_class.parameters: ()
focal_class.return: PartitionKeyGroupKeys
focal_class.signature: PartitionKeyGroupKeys getPartitionKeyGroups()
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_GET)
      public PartitionKeyGroup getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
      {
          PartitionKeyGroupKey partitionKeyGroupKey = new PartitionKeyGroupKey();
          partitionKeyGroupKey.setPartitionKeyGroupName(partitionKeyGroupName);
          return partitionKeyGroupService.getPartitionKeyGroup(partitionKeyGroupKey);
      }
focal_method.class_method_signature: PartitionKeyGroupRestController.getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_method.full_signature: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_GET) public PartitionKeyGroup getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_method.identifier: getPartitionKeyGroup
focal_method.invocations: setPartitionKeyGroupName getPartitionKeyGroup
focal_method.modifiers: @RequestMapping(value = PARTITION_KEY_GROUPS_URI_PREFIX + "/{partitionKeyGroupName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_PARTITION_KEY_GROUPS_GET) public
focal_method.parameters: (@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)
focal_method.return: PartitionKeyGroup
focal_method.signature: PartitionKeyGroup getPartitionKeyGroup(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName)