test_class.declarator: allowedAttributeValueRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private AllowedAttributeValueRestController allowedAttributeValueRestController;
test_class.type: AllowedAttributeValueRestController
test_class.var_name: allowedAttributeValueRestController
test_class.declarator: allowedAttributeValueService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AllowedAttributeValueService allowedAttributeValueService;
test_class.type: AllowedAttributeValueService
test_class.var_name: allowedAttributeValueService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/AllowedAttributeValueRestControllerTest.java
test_class.identifier: AllowedAttributeValueRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetAllowedAttributeValue()
      {
          // Create attribute value list key.
          AttributeValueListKey attributeValueListKey = new AttributeValueListKey(NAMESPACE_CODE, ATTRIBUTE_VALUE_LIST_NAME);
  
          // Create the allowed attribute values information.
          AllowedAttributeValuesInformation allowedAttributeValuesInformation = new AllowedAttributeValuesInformation();
          allowedAttributeValuesInformation.setAttributeValueListKey(attributeValueListKey);
          allowedAttributeValuesInformation.setAllowedAttributeValues(Arrays.asList(ALLOWED_ATTRIBUTE_VALUE));
  
          // Mock calls to external method.
          when(allowedAttributeValueService.getAllowedAttributeValues(attributeValueListKey)).thenReturn(allowedAttributeValuesInformation);
  
          // Call the method under test.
          AllowedAttributeValuesInformation response = allowedAttributeValueRestController.getAllowedAttributeValues(NAMESPACE_CODE, ATTRIBUTE_VALUE_LIST_NAME);
  
          // Verify the external calls.
          verify(allowedAttributeValueService).getAllowedAttributeValues(attributeValueListKey);
          verifyNoMoreInteractions(allowedAttributeValueService);
  
          // Validate the response.
          assertEquals(allowedAttributeValuesInformation, response);
      }
test_case.class_method_signature: AllowedAttributeValueRestControllerTest.testGetAllowedAttributeValue()
test_case.full_signature: @Test public void testGetAllowedAttributeValue()
test_case.identifier: testGetAllowedAttributeValue
test_case.invocations: setAttributeValueListKey setAllowedAttributeValues asList thenReturn when getAllowedAttributeValues getAllowedAttributeValues getAllowedAttributeValues verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAllowedAttributeValue()
focal_class.declarator: ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX = "/allowedAttributeValues"
focal_class.modifier: public static final
focal_class.original_string: public static final String ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX = "/allowedAttributeValues";
focal_class.type: String
focal_class.var_name: ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX
focal_class.declarator: allowedAttributeValueService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private AllowedAttributeValueService allowedAttributeValueService;
focal_class.type: AllowedAttributeValueService
focal_class.var_name: allowedAttributeValueService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/AllowedAttributeValueRestController.java
focal_class.identifier: AllowedAttributeValueRestController
focal_class.class_method_signature: AllowedAttributeValueRestController.createAllowedAttributeValues(@RequestBody AllowedAttributeValuesCreateRequest request)
focal_class.full_signature: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_POST) public AllowedAttributeValuesInformation createAllowedAttributeValues(@RequestBody AllowedAttributeValuesCreateRequest request)
focal_class.identifier: createAllowedAttributeValues
focal_class.modifiers: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_POST) public
focal_class.parameters: (@RequestBody AllowedAttributeValuesCreateRequest request)
focal_class.return: AllowedAttributeValuesInformation
focal_class.signature: AllowedAttributeValuesInformation createAllowedAttributeValues(@RequestBody AllowedAttributeValuesCreateRequest request)
focal_class.class_method_signature: AllowedAttributeValueRestController.getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_class.full_signature: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX + "/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_ALL_GET) public AllowedAttributeValuesInformation getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_class.identifier: getAllowedAttributeValues
focal_class.modifiers: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX + "/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_ALL_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_class.return: AllowedAttributeValuesInformation
focal_class.signature: AllowedAttributeValuesInformation getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_class.class_method_signature: AllowedAttributeValueRestController.deleteAllowedAttributeValues(@RequestBody AllowedAttributeValuesDeleteRequest request)
focal_class.full_signature: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX, method = RequestMethod.DELETE, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_DELETE) public AllowedAttributeValuesInformation deleteAllowedAttributeValues(@RequestBody AllowedAttributeValuesDeleteRequest request)
focal_class.identifier: deleteAllowedAttributeValues
focal_class.modifiers: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX, method = RequestMethod.DELETE, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_DELETE) public
focal_class.parameters: (@RequestBody AllowedAttributeValuesDeleteRequest request)
focal_class.return: AllowedAttributeValuesInformation
focal_class.signature: AllowedAttributeValuesInformation deleteAllowedAttributeValues(@RequestBody AllowedAttributeValuesDeleteRequest request)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX +
          "/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_ALL_GET)
      public AllowedAttributeValuesInformation getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
      {
          return allowedAttributeValueService.getAllowedAttributeValues(new AttributeValueListKey(namespace, attributeValueListName));
      }
focal_method.class_method_signature: AllowedAttributeValueRestController.getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_method.full_signature: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX + "/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_ALL_GET) public AllowedAttributeValuesInformation getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_method.identifier: getAllowedAttributeValues
focal_method.invocations: getAllowedAttributeValues
focal_method.modifiers: @RequestMapping(value = ALLOWED_ATTRIBUTE_VALUES_URI_PREFIX + "/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_ALLOWED_ATTRIBUTE_VALUES_ALL_GET) public
focal_method.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)
focal_method.return: AllowedAttributeValuesInformation
focal_method.signature: AllowedAttributeValuesInformation getAllowedAttributeValues(@PathVariable("namespace") String namespace,
          @PathVariable("attributeValueListName") String attributeValueListName)