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 testGetGlobalAttributeDefinitionEntity()
      {
          // Create a global attribute definition key.
          GlobalAttributeDefinitionKey globalAttributeDefinitionKey =
              new GlobalAttributeDefinitionKey(GLOBAL_ATTRIBUTE_DEFINITON_LEVEL, GLOBAL_ATTRIBUTE_DEFINITON_NAME);
  
          // Create a global attribute definition entity.
          GlobalAttributeDefinitionEntity globalAttributeDefinitionEntity =
              globalAttributeDefinitionDaoTestHelper.createGlobalAttributeDefinitionEntity(GLOBAL_ATTRIBUTE_DEFINITON_LEVEL, GLOBAL_ATTRIBUTE_DEFINITON_NAME);
  
          // Mock calls to external methods.
          when(globalAttributeDefinitionDao.getGlobalAttributeDefinitionByKey(globalAttributeDefinitionKey)).thenReturn(globalAttributeDefinitionEntity);
  
          // Call the method under test.
          GlobalAttributeDefinitionEntity response = globalAttributeDefinitionDaoHelper.getGlobalAttributeDefinitionEntity(globalAttributeDefinitionKey);
  
          // Verify the external calls.
          verify(globalAttributeDefinitionDao).getGlobalAttributeDefinitionByKey(globalAttributeDefinitionKey);
          verifyNoMoreInteractions(globalAttributeDefinitionDao);
  
          // Validate the response.
          assertEquals(globalAttributeDefinitionEntity, response);
      }
test_case.class_method_signature: GlobalAttributeDefinitionDaoHelperTest.testGetGlobalAttributeDefinitionEntity()
test_case.full_signature: @Test public void testGetGlobalAttributeDefinitionEntity()
test_case.identifier: testGetGlobalAttributeDefinitionEntity
test_case.invocations: createGlobalAttributeDefinitionEntity thenReturn when getGlobalAttributeDefinitionByKey getGlobalAttributeDefinitionEntity getGlobalAttributeDefinitionByKey verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetGlobalAttributeDefinitionEntity()
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 GlobalAttributeDefinitionEntity getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
          throws ObjectNotFoundException
      {
          GlobalAttributeDefinitionEntity globalAttributeDefinitionEntity =
              globalAttributeDefinitionDao.getGlobalAttributeDefinitionByKey(globalAttributeDefinitionKey);
  
          if (globalAttributeDefinitionEntity == null)
          {
              throw new ObjectNotFoundException(String
                  .format("Global attribute definition with level \"%s\" doesn't exist for global attribute definition name \"%s\".",
                      globalAttributeDefinitionKey.getGlobalAttributeDefinitionLevel(), globalAttributeDefinitionKey.getGlobalAttributeDefinitionName()));
          }
  
          return globalAttributeDefinitionEntity;
      }
focal_method.class_method_signature: GlobalAttributeDefinitionDaoHelper.getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.full_signature: public GlobalAttributeDefinitionEntity getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.identifier: getGlobalAttributeDefinitionEntity
focal_method.invocations: getGlobalAttributeDefinitionByKey format getGlobalAttributeDefinitionLevel getGlobalAttributeDefinitionName
focal_method.modifiers: public
focal_method.parameters: (GlobalAttributeDefinitionKey globalAttributeDefinitionKey)
focal_method.return: GlobalAttributeDefinitionEntity
focal_method.signature: GlobalAttributeDefinitionEntity getGlobalAttributeDefinitionEntity(GlobalAttributeDefinitionKey globalAttributeDefinitionKey)