test_class.declarator: emrClusterDefinitionDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EmrClusterDefinitionDao emrClusterDefinitionDao;
test_class.type: EmrClusterDefinitionDao
test_class.var_name: emrClusterDefinitionDao
test_class.declarator: emrClusterDefinitionDaoHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private EmrClusterDefinitionDaoHelper emrClusterDefinitionDaoHelper;
test_class.type: EmrClusterDefinitionDaoHelper
test_class.var_name: emrClusterDefinitionDaoHelper
test_class.declarator: namespaceDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NamespaceDao namespaceDao;
test_class.type: NamespaceDao
test_class.var_name: namespaceDao
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/EmrClusterDefinitionDaoHelperTest.java
test_class.identifier: EmrClusterDefinitionDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetEmrClusterDefinitionKeys()
      {
          // Create a namespace entity.
          NamespaceEntity namespaceEntity = new NamespaceEntity();
  
          // Create a list of EMR cluster definition keys.
          List<EmrClusterDefinitionKey> emrClusterDefinitionKeys = Lists.newArrayList(new EmrClusterDefinitionKey(NAMESPACE, EMR_CLUSTER_DEFINITION_NAME));
  
          // Mock the external calls.
          when(namespaceDao.getNamespaceByCd(NAMESPACE)).thenReturn(namespaceEntity);
          when(emrClusterDefinitionDao.getEmrClusterDefinitionKeysByNamespace(namespaceEntity)).thenReturn(emrClusterDefinitionKeys);
  
          // Call the method under test.
          List<EmrClusterDefinitionKey> result = emrClusterDefinitionDaoHelper.getEmrClusterDefinitionKeys(NAMESPACE);
  
          // Verify the external calls.
          verify(namespaceDao).getNamespaceByCd(NAMESPACE);
          verify(emrClusterDefinitionDao).getEmrClusterDefinitionKeysByNamespace(namespaceEntity);
          verifyNoMoreInteractionsHelper();
  
          // Validate the result.
          assertEquals(emrClusterDefinitionKeys, result);
      }
test_case.class_method_signature: EmrClusterDefinitionDaoHelperTest.testGetEmrClusterDefinitionKeys()
test_case.full_signature: @Test public void testGetEmrClusterDefinitionKeys()
test_case.identifier: testGetEmrClusterDefinitionKeys
test_case.invocations: newArrayList thenReturn when getNamespaceByCd thenReturn when getEmrClusterDefinitionKeysByNamespace getEmrClusterDefinitionKeys getNamespaceByCd verify getEmrClusterDefinitionKeysByNamespace verify verifyNoMoreInteractionsHelper assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetEmrClusterDefinitionKeys()
focal_class.declarator: emrClusterDefinitionDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private EmrClusterDefinitionDao emrClusterDefinitionDao;
focal_class.type: EmrClusterDefinitionDao
focal_class.var_name: emrClusterDefinitionDao
focal_class.declarator: namespaceDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NamespaceDao namespaceDao;
focal_class.type: NamespaceDao
focal_class.var_name: namespaceDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/EmrClusterDefinitionDaoHelper.java
focal_class.identifier: EmrClusterDefinitionDaoHelper
focal_class.class_method_signature: EmrClusterDefinitionDaoHelper.getEmrClusterDefinitionEntity(EmrClusterDefinitionKey emrClusterDefinitionKey)
focal_class.full_signature: public EmrClusterDefinitionEntity getEmrClusterDefinitionEntity(EmrClusterDefinitionKey emrClusterDefinitionKey)
focal_class.identifier: getEmrClusterDefinitionEntity
focal_class.modifiers: public
focal_class.parameters: (EmrClusterDefinitionKey emrClusterDefinitionKey)
focal_class.return: EmrClusterDefinitionEntity
focal_class.signature: EmrClusterDefinitionEntity getEmrClusterDefinitionEntity(EmrClusterDefinitionKey emrClusterDefinitionKey)
focal_class.class_method_signature: EmrClusterDefinitionDaoHelper.getEmrClusterDefinitionKeys(String namespace)
focal_class.full_signature: public List<EmrClusterDefinitionKey> getEmrClusterDefinitionKeys(String namespace)
focal_class.identifier: getEmrClusterDefinitionKeys
focal_class.modifiers: public
focal_class.parameters: (String namespace)
focal_class.return: List<EmrClusterDefinitionKey>
focal_class.signature: List<EmrClusterDefinitionKey> getEmrClusterDefinitionKeys(String namespace)
focal_method.body: public List<EmrClusterDefinitionKey> getEmrClusterDefinitionKeys(String namespace)
      {
          // Try to retrieve the relative namespace entity.
          NamespaceEntity namespaceEntity = namespaceDao.getNamespaceByCd(namespace);
  
          // If namespace entity exists, retrieve EMR cluster definition keys by namespace entity.
          if (namespaceEntity != null)
          {
              return emrClusterDefinitionDao.getEmrClusterDefinitionKeysByNamespace(namespaceEntity);
          }
          else
          {
              return Lists.newArrayList();
          }
      }
focal_method.class_method_signature: EmrClusterDefinitionDaoHelper.getEmrClusterDefinitionKeys(String namespace)
focal_method.full_signature: public List<EmrClusterDefinitionKey> getEmrClusterDefinitionKeys(String namespace)
focal_method.identifier: getEmrClusterDefinitionKeys
focal_method.invocations: getNamespaceByCd getEmrClusterDefinitionKeysByNamespace newArrayList
focal_method.modifiers: public
focal_method.parameters: (String namespace)
focal_method.return: List<EmrClusterDefinitionKey>
focal_method.signature: List<EmrClusterDefinitionKey> getEmrClusterDefinitionKeys(String namespace)