test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SearchIndexStatusDaoHelperTest.java
test_class.identifier: SearchIndexStatusDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetSearchIndexStatusEntity()
      {
          // Create and persist database entities required for testing.
          SearchIndexStatusEntity searchIndexStatusEntity = searchIndexStatusDaoTestHelper.createSearchIndexStatusEntity(SEARCH_INDEX_STATUS);
  
          // Retrieve the search index status entity.
          assertEquals(searchIndexStatusEntity, searchIndexStatusDaoHelper.getSearchIndexStatusEntity(SEARCH_INDEX_STATUS));
  
          // Test case insensitivity of the search index status code.
          assertEquals(searchIndexStatusEntity, searchIndexStatusDaoHelper.getSearchIndexStatusEntity(SEARCH_INDEX_STATUS.toUpperCase()));
          assertEquals(searchIndexStatusEntity, searchIndexStatusDaoHelper.getSearchIndexStatusEntity(SEARCH_INDEX_STATUS.toLowerCase()));
  
          // Try to retrieve a non existing search index status.
          try
          {
              searchIndexStatusDaoHelper.getSearchIndexStatusEntity(I_DO_NOT_EXIST);
              fail();
          }
          catch (ObjectNotFoundException e)
          {
              assertEquals(String.format("Search index status with code \"%s\" doesn't exist.", I_DO_NOT_EXIST), e.getMessage());
          }
      }
test_case.class_method_signature: SearchIndexStatusDaoHelperTest.testGetSearchIndexStatusEntity()
test_case.full_signature: @Test public void testGetSearchIndexStatusEntity()
test_case.identifier: testGetSearchIndexStatusEntity
test_case.invocations: createSearchIndexStatusEntity assertEquals getSearchIndexStatusEntity assertEquals getSearchIndexStatusEntity toUpperCase assertEquals getSearchIndexStatusEntity toLowerCase getSearchIndexStatusEntity fail assertEquals format getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSearchIndexStatusEntity()
focal_class.declarator: searchIndexStatusDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexStatusDao searchIndexStatusDao;
focal_class.type: SearchIndexStatusDao
focal_class.var_name: searchIndexStatusDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SearchIndexStatusDaoHelper.java
focal_class.identifier: SearchIndexStatusDaoHelper
focal_class.class_method_signature: SearchIndexStatusDaoHelper.getSearchIndexStatusEntity(String code)
focal_class.full_signature: public SearchIndexStatusEntity getSearchIndexStatusEntity(String code)
focal_class.identifier: getSearchIndexStatusEntity
focal_class.modifiers: public
focal_class.parameters: (String code)
focal_class.return: SearchIndexStatusEntity
focal_class.signature: SearchIndexStatusEntity getSearchIndexStatusEntity(String code)
focal_method.body: public SearchIndexStatusEntity getSearchIndexStatusEntity(String code) throws ObjectNotFoundException
      {
          SearchIndexStatusEntity searchIndexStatusEntity = searchIndexStatusDao.getSearchIndexStatusByCode(code);
  
          if (searchIndexStatusEntity == null)
          {
              throw new ObjectNotFoundException(String.format("Search index status with code \"%s\" doesn't exist.", code));
          }
  
          return searchIndexStatusEntity;
      }
focal_method.class_method_signature: SearchIndexStatusDaoHelper.getSearchIndexStatusEntity(String code)
focal_method.full_signature: public SearchIndexStatusEntity getSearchIndexStatusEntity(String code)
focal_method.identifier: getSearchIndexStatusEntity
focal_method.invocations: getSearchIndexStatusByCode format
focal_method.modifiers: public
focal_method.parameters: (String code)
focal_method.return: SearchIndexStatusEntity
focal_method.signature: SearchIndexStatusEntity getSearchIndexStatusEntity(String code)