test_class.declarator: globalAttributeDefinitionDaoHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private GlobalAttributeDefinitionDaoHelper globalAttributeDefinitionDaoHelper;
test_class.type: GlobalAttributeDefinitionDaoHelper
test_class.var_name: globalAttributeDefinitionDaoHelper
test_class.declarator: globalAttributeDefinitionDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private GlobalAttributeDefinitionDao globalAttributeDefinitionDao;
test_class.type: GlobalAttributeDefinitionDao
test_class.var_name: globalAttributeDefinitionDao
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/GlobalAttributeDefinitionDaoHelperTest.java
test_class.identifier: GlobalAttributeDefinitionDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testValidateGlobalAttributeDefinitionNoExists()
      {
          // Create a global attribute definition key.
          GlobalAttributeDefinitionKey globalAttributeDefinitionKey =
              new GlobalAttributeDefinitionKey(GLOBAL_ATTRIBUTE_DEFINITON_LEVEL, GLOBAL_ATTRIBUTE_DEFINITON_NAME);
  
          // Mock calls to external methods.
          when(globalAttributeDefinitionDao.getGlobalAttributeDefinitionByKey(globalAttributeDefinitionKey)).thenReturn(null);
  
          // Call the method under test.
          globalAttributeDefinitionDaoHelper.validateGlobalAttributeDefinitionNoExists(globalAttributeDefinitionKey);
  
          // Verify the external calls.
          verify(globalAttributeDefinitionDao).getGlobalAttributeDefinitionByKey(globalAttributeDefinitionKey);
          verifyNoMoreInteractions(globalAttributeDefinitionDao);
      }
test_case.class_method_signature: GlobalAttributeDefinitionDaoHelperTest.testValidateGlobalAttributeDefinitionNoExists()
test_case.full_signature: @Test public void testValidateGlobalAttributeDefinitionNoExists()
test_case.identifier: testValidateGlobalAttributeDefinitionNoExists
test_case.invocations: thenReturn when getGlobalAttributeDefinitionByKey validateGlobalAttributeDefinitionNoExists getGlobalAttributeDefinitionByKey verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateGlobalAttributeDefinitionNoExists()
focal_class.declarator: globalAttributeDefinitionDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private GlobalAttributeDefinitionDao globalAttributeDefinitionDao;
focal_class.type: GlobalAttributeDefinitionDao
focal_class.var_name: globalAttributeDefinitionDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/GlobalAttributeDefinitionDaoHelper.java
focal_class.identifier: GlobalAttributeDefinitionDaoHelper
focal_class.class_method_signature: GlobalAttributeDefinitionDaoHelper.getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.full_signature: public GlobalAttributeDefinitionEntity getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.identifier: getGlobalAttributeDefinitionEntity
focal_class.modifiers: public
focal_class.parameters: (GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.return: GlobalAttributeDefinitionEntity
focal_class.signature: GlobalAttributeDefinitionEntity getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.class_method_signature: GlobalAttributeDefinitionDaoHelper.validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.full_signature: public void validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.identifier: validateGlobalAttributeDefinitionNoExists
focal_class.modifiers: public
focal_class.parameters: (GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.return: void
focal_class.signature: void validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.class_method_signature: GlobalAttributeDefinitionDaoHelper.getAllowedAttributeValues(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.full_signature: public List<String> getAllowedAttributeValues(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.identifier: getAllowedAttributeValues
focal_class.modifiers: public
focal_class.parameters: (GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_class.return: List<String>
focal_class.signature: List<String> getAllowedAttributeValues(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.body: public void validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey) throws AlreadyExistsException
      {
          // Validate that the global attribute definition entity does not already exist.
          if (globalAttributeDefinitionDao.getGlobalAttributeDefinitionByKey(globalAttributeDefinitionKey) != null)
          {
              throw new AlreadyExistsException(String.format("Unable to create global attribute definition with global attribute definition level \"%s\" and " +
                      "global attribute definition name \"%s\" because it already exists.",
                  globalAttributeDefinitionKey.getGlobalAttributeDefinitionLevel(), globalAttributeDefinitionKey.getGlobalAttributeDefinitionName()));
          }
      }
focal_method.class_method_signature: GlobalAttributeDefinitionDaoHelper.validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.full_signature: public void validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.identifier: validateGlobalAttributeDefinitionNoExists
focal_method.invocations: getGlobalAttributeDefinitionByKey format getGlobalAttributeDefinitionLevel getGlobalAttributeDefinitionName
focal_method.modifiers: public
focal_method.parameters: (GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.return: void
focal_method.signature: void validateGlobalAttributeDefinitionNoExists(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)