test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SearchIndexTypeDaoHelperTest.java
test_class.identifier: SearchIndexTypeDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetSearchIndexTypeEntity()
      {
          // Create and persist database entities required for testing.
          SearchIndexTypeEntity searchIndexTypeEntity = searchIndexTypeDaoTestHelper.createSearchIndexTypeEntity(SEARCH_INDEX_TYPE);
  
          // Retrieve the search index type entity.
          assertEquals(searchIndexTypeEntity, searchIndexTypeDaoHelper.getSearchIndexTypeEntity(SEARCH_INDEX_TYPE));
  
          // Test case insensitivity of the search index type code.
          assertEquals(searchIndexTypeEntity, searchIndexTypeDaoHelper.getSearchIndexTypeEntity(SEARCH_INDEX_TYPE.toUpperCase()));
          assertEquals(searchIndexTypeEntity, searchIndexTypeDaoHelper.getSearchIndexTypeEntity(SEARCH_INDEX_TYPE.toLowerCase()));
  
          // Try to retrieve a non existing search index type.
          try
          {
              searchIndexTypeDaoHelper.getSearchIndexTypeEntity(I_DO_NOT_EXIST);
              fail();
          }
          catch (ObjectNotFoundException e)
          {
              assertEquals(String.format("Search index type with code \"%s\" doesn't exist.", I_DO_NOT_EXIST), e.getMessage());
          }
      }
test_case.class_method_signature: SearchIndexTypeDaoHelperTest.testGetSearchIndexTypeEntity()
test_case.full_signature: @Test public void testGetSearchIndexTypeEntity()
test_case.identifier: testGetSearchIndexTypeEntity
test_case.invocations: createSearchIndexTypeEntity assertEquals getSearchIndexTypeEntity assertEquals getSearchIndexTypeEntity toUpperCase assertEquals getSearchIndexTypeEntity toLowerCase getSearchIndexTypeEntity fail assertEquals format getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSearchIndexTypeEntity()
focal_class.declarator: searchIndexTypeDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexTypeDao searchIndexTypeDao;
focal_class.type: SearchIndexTypeDao
focal_class.var_name: searchIndexTypeDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SearchIndexTypeDaoHelper.java
focal_class.identifier: SearchIndexTypeDaoHelper
focal_class.class_method_signature: SearchIndexTypeDaoHelper.getSearchIndexTypeEntity(String code)
focal_class.full_signature: public SearchIndexTypeEntity getSearchIndexTypeEntity(String code)
focal_class.identifier: getSearchIndexTypeEntity
focal_class.modifiers: public
focal_class.parameters: (String code)
focal_class.return: SearchIndexTypeEntity
focal_class.signature: SearchIndexTypeEntity getSearchIndexTypeEntity(String code)
focal_method.body: public SearchIndexTypeEntity getSearchIndexTypeEntity(String code) throws ObjectNotFoundException
      {
          SearchIndexTypeEntity searchIndexTypeEntity = searchIndexTypeDao.getSearchIndexTypeByCode(code);
  
          if (searchIndexTypeEntity == null)
          {
              throw new ObjectNotFoundException(String.format("Search index type with code \"%s\" doesn't exist.", code));
          }
  
          return searchIndexTypeEntity;
      }
focal_method.class_method_signature: SearchIndexTypeDaoHelper.getSearchIndexTypeEntity(String code)
focal_method.full_signature: public SearchIndexTypeEntity getSearchIndexTypeEntity(String code)
focal_method.identifier: getSearchIndexTypeEntity
focal_method.invocations: getSearchIndexTypeByCode format
focal_method.modifiers: public
focal_method.parameters: (String code)
focal_method.return: SearchIndexTypeEntity
focal_method.signature: SearchIndexTypeEntity getSearchIndexTypeEntity(String code)