test_class.declarator: searchIndexRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SearchIndexRestController searchIndexRestController;
test_class.type: SearchIndexRestController
test_class.var_name: searchIndexRestController
test_class.declarator: searchIndexService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SearchIndexService searchIndexService;
test_class.type: SearchIndexService
test_class.var_name: searchIndexService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/SearchIndexRestControllerTest.java
test_class.identifier: SearchIndexRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetSearchIndex()
      {
          // Create a search index key.
          SearchIndexKey searchIndexKey = new SearchIndexKey(SEARCH_INDEX_NAME);
  
          // Create a search index get response.
          SearchIndex searchIndex =
              new SearchIndex(searchIndexKey, SEARCH_INDEX_TYPE, SEARCH_INDEX_STATUS, SEARCH_INDEX_DEFAULT_ACTIVE_FLAG, NO_SEARCH_INDEX_STATISTICS, USER_ID,
                  CREATED_ON, UPDATED_ON);
  
          // Mock the call to the search index service.
          when(searchIndexService.getSearchIndex(searchIndexKey)).thenReturn(searchIndex);
  
          // Get a search index.
          SearchIndex response = searchIndexRestController.getSearchIndex(SEARCH_INDEX_NAME);
  
          // Verify the calls.
          verify(searchIndexService, times(1)).getSearchIndex(new SearchIndexKey(SEARCH_INDEX_NAME));
  
          // Validate the returned object.
          assertEquals(searchIndex, response);
      }
test_case.class_method_signature: SearchIndexRestControllerTest.testGetSearchIndex()
test_case.full_signature: @Test public void testGetSearchIndex()
test_case.identifier: testGetSearchIndex
test_case.invocations: thenReturn when getSearchIndex getSearchIndex getSearchIndex verify times assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSearchIndex()
focal_class.declarator: SEARCH_INDEXES_URI_PREFIX = "/searchIndexes"
focal_class.modifier: public static final
focal_class.original_string: public static final String SEARCH_INDEXES_URI_PREFIX = "/searchIndexes";
focal_class.type: String
focal_class.var_name: SEARCH_INDEXES_URI_PREFIX
focal_class.declarator: searchIndexService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexService searchIndexService;
focal_class.type: SearchIndexService
focal_class.var_name: searchIndexService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/SearchIndexRestController.java
focal_class.identifier: SearchIndexRestController
focal_class.class_method_signature: SearchIndexRestController.createSearchIndex(@RequestBody SearchIndexCreateRequest request)
focal_class.full_signature: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_POST) public SearchIndex createSearchIndex(@RequestBody SearchIndexCreateRequest request)
focal_class.identifier: createSearchIndex
focal_class.modifiers: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_POST) public
focal_class.parameters: (@RequestBody SearchIndexCreateRequest request)
focal_class.return: SearchIndex
focal_class.signature: SearchIndex createSearchIndex(@RequestBody SearchIndexCreateRequest request)
focal_class.class_method_signature: SearchIndexRestController.deleteSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_class.full_signature: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_DELETE) public SearchIndex deleteSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_class.identifier: deleteSearchIndex
focal_class.modifiers: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_DELETE) public
focal_class.parameters: (@PathVariable("searchIndexName") String searchIndexName)
focal_class.return: SearchIndex
focal_class.signature: SearchIndex deleteSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_class.class_method_signature: SearchIndexRestController.getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_class.full_signature: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_GET) public SearchIndex getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_class.identifier: getSearchIndex
focal_class.modifiers: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_GET) public
focal_class.parameters: (@PathVariable("searchIndexName") String searchIndexName)
focal_class.return: SearchIndex
focal_class.signature: SearchIndex getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_class.class_method_signature: SearchIndexRestController.getSearchIndexes()
focal_class.full_signature: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ALL_GET) public SearchIndexKeys getSearchIndexes()
focal_class.identifier: getSearchIndexes
focal_class.modifiers: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ALL_GET) public
focal_class.parameters: ()
focal_class.return: SearchIndexKeys
focal_class.signature: SearchIndexKeys getSearchIndexes()
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_SEARCH_INDEXES_GET)
      public SearchIndex getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
      {
          return searchIndexService.getSearchIndex(new SearchIndexKey(searchIndexName));
      }
focal_method.class_method_signature: SearchIndexRestController.getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_method.full_signature: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_GET) public SearchIndex getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)
focal_method.identifier: getSearchIndex
focal_method.invocations: getSearchIndex
focal_method.modifiers: @RequestMapping(value = SEARCH_INDEXES_URI_PREFIX + "/{searchIndexName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_GET) public
focal_method.parameters: (@PathVariable("searchIndexName") String searchIndexName)
focal_method.return: SearchIndex
focal_method.signature: SearchIndex getSearchIndex(@PathVariable("searchIndexName") String searchIndexName)