test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SearchIndexDaoHelperTest.java
test_class.identifier: SearchIndexDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetSearchIndexEntity()
      {
          // Create and persist database entities required for testing.
          SearchIndexEntity searchIndexEntity = searchIndexDaoTestHelper.createSearchIndexEntity(SEARCH_INDEX_NAME, SEARCH_INDEX_TYPE, SEARCH_INDEX_STATUS);
  
          // Retrieve the search index entity.
          assertEquals(searchIndexEntity, searchIndexDaoHelper.getSearchIndexEntity(new SearchIndexKey(SEARCH_INDEX_NAME)));
  
          // Try to retrieve a non-existing search index.
          try
          {
              searchIndexDaoHelper.getSearchIndexEntity(new SearchIndexKey(I_DO_NOT_EXIST));
              fail();
          }
          catch (ObjectNotFoundException e)
          {
              assertEquals(String.format("Search index with name \"%s\" doesn't exist.", I_DO_NOT_EXIST), e.getMessage());
          }
      }
test_case.class_method_signature: SearchIndexDaoHelperTest.testGetSearchIndexEntity()
test_case.full_signature: @Test public void testGetSearchIndexEntity()
test_case.identifier: testGetSearchIndexEntity
test_case.invocations: createSearchIndexEntity assertEquals getSearchIndexEntity getSearchIndexEntity fail assertEquals format getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSearchIndexEntity()
focal_class.declarator: searchIndexDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexDao searchIndexDao;
focal_class.type: SearchIndexDao
focal_class.var_name: searchIndexDao
focal_class.declarator: searchIndexStatusDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexStatusDaoHelper searchIndexStatusDaoHelper;
focal_class.type: SearchIndexStatusDaoHelper
focal_class.var_name: searchIndexStatusDaoHelper
focal_class.declarator: searchIndexTypeDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexTypeDaoHelper searchIndexTypeDaoHelper;
focal_class.type: SearchIndexTypeDaoHelper
focal_class.var_name: searchIndexTypeDaoHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SearchIndexDaoHelper.java
focal_class.identifier: SearchIndexDaoHelper
focal_class.class_method_signature: SearchIndexDaoHelper.getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_class.full_signature: public SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_class.identifier: getSearchIndexEntity
focal_class.modifiers: public
focal_class.parameters: (SearchIndexKey searchIndexKey)
focal_class.return: SearchIndexEntity
focal_class.signature: SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_class.class_method_signature: SearchIndexDaoHelper.updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.full_signature: public void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.identifier: updateSearchIndexStatus
focal_class.modifiers: public
focal_class.parameters: (SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.return: void
focal_class.signature: void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.class_method_signature: SearchIndexDaoHelper.activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
focal_class.full_signature: public void activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
focal_class.identifier: activateSearchIndex
focal_class.modifiers: public
focal_class.parameters: (SearchIndexEntity currentSearchIndexEntity)
focal_class.return: void
focal_class.signature: void activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
focal_class.class_method_signature: SearchIndexDaoHelper.getActiveSearchIndex(String indexType)
focal_class.full_signature: public String getActiveSearchIndex(String indexType)
focal_class.identifier: getActiveSearchIndex
focal_class.modifiers: public
focal_class.parameters: (String indexType)
focal_class.return: String
focal_class.signature: String getActiveSearchIndex(String indexType)
focal_method.body: public SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey) throws ObjectNotFoundException
      {
          SearchIndexEntity searchIndexEntity = searchIndexDao.getSearchIndexByKey(searchIndexKey);
  
          if (searchIndexEntity == null)
          {
              throw new ObjectNotFoundException(String.format("Search index with name \"%s\" doesn't exist.", searchIndexKey.getSearchIndexName()));
          }
  
          return searchIndexEntity;
      }
focal_method.class_method_signature: SearchIndexDaoHelper.getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_method.full_signature: public SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_method.identifier: getSearchIndexEntity
focal_method.invocations: getSearchIndexByKey format getSearchIndexName
focal_method.modifiers: public
focal_method.parameters: (SearchIndexKey searchIndexKey)
focal_method.return: SearchIndexEntity
focal_method.signature: SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey)