test_class.declarator: configurationEntryRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private ConfigurationEntryRestController configurationEntryRestController;
test_class.type: ConfigurationEntryRestController
test_class.var_name: configurationEntryRestController
test_class.declarator: configurationEntryService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ConfigurationEntryService configurationEntryService;
test_class.type: ConfigurationEntryService
test_class.var_name: configurationEntryService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/ConfigurationEntryRestControllerTest.java
test_class.identifier: ConfigurationEntryRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetConfigurationEntry()
      {
          // Create a configuration entry key and value and value clob.
          String configurationEntryKey = "KEY";
          String configurationEntryValue = "VALUE";
          String configurationEntryValueClob = "VALUE CLOB";
  
          // Create a configuration entry get response.
          ConfigurationEntry configurationEntry = new ConfigurationEntry(configurationEntryKey, configurationEntryValue, configurationEntryValueClob);
  
          // Mock the call to the configuration entry service.
          when(configurationEntryService.getConfigurationEntry(configurationEntryKey)).thenReturn(configurationEntry);
  
          // Get a configuration entry.
          ConfigurationEntry response = configurationEntryRestController.getConfigurationEntry(configurationEntryKey);
  
          // Verify the call.
          verify(configurationEntryService).getConfigurationEntry(configurationEntryKey);
  
          // Validate the returned object.
          assertEquals("Response not equal to expected configuration entry response.", configurationEntry, response);
      }
test_case.class_method_signature: ConfigurationEntryRestControllerTest.testGetConfigurationEntry()
test_case.full_signature: @Test public void testGetConfigurationEntry()
test_case.identifier: testGetConfigurationEntry
test_case.invocations: thenReturn when getConfigurationEntry getConfigurationEntry getConfigurationEntry verify assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetConfigurationEntry()
focal_class.declarator: CONFIGURATION_ENTRIES_URI_PREFIX = "/configurationEntries"
focal_class.modifier: public static final
focal_class.original_string: public static final String CONFIGURATION_ENTRIES_URI_PREFIX = "/configurationEntries";
focal_class.type: String
focal_class.var_name: CONFIGURATION_ENTRIES_URI_PREFIX
focal_class.declarator: configurationEntryService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ConfigurationEntryService configurationEntryService;
focal_class.type: ConfigurationEntryService
focal_class.var_name: configurationEntryService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/ConfigurationEntryRestController.java
focal_class.identifier: ConfigurationEntryRestController
focal_class.class_method_signature: ConfigurationEntryRestController.getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_class.full_signature: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX + "/{configurationEntryKey}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_GET) public ConfigurationEntry getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_class.identifier: getConfigurationEntry
focal_class.modifiers: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX + "/{configurationEntryKey}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_GET) public
focal_class.parameters: (@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_class.return: ConfigurationEntry
focal_class.signature: ConfigurationEntry getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_class.class_method_signature: ConfigurationEntryRestController.getConfigurationEntries()
focal_class.full_signature: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_ALL_GET) public ConfigurationEntryKeys getConfigurationEntries()
focal_class.identifier: getConfigurationEntries
focal_class.modifiers: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_ALL_GET) public
focal_class.parameters: ()
focal_class.return: ConfigurationEntryKeys
focal_class.signature: ConfigurationEntryKeys getConfigurationEntries()
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX + "/{configurationEntryKey}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_GET)
      public ConfigurationEntry getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)
      {
          return configurationEntryService.getConfigurationEntry(configurationEntryKey);
      }
focal_method.class_method_signature: ConfigurationEntryRestController.getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_method.full_signature: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX + "/{configurationEntryKey}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_GET) public ConfigurationEntry getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_method.identifier: getConfigurationEntry
focal_method.invocations: getConfigurationEntry
focal_method.modifiers: @RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX + "/{configurationEntryKey}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_GET) public
focal_method.parameters: (@PathVariable("configurationEntryKey") String configurationEntryKey)
focal_method.return: ConfigurationEntry
focal_method.signature: ConfigurationEntry getConfigurationEntry(@PathVariable("configurationEntryKey") String configurationEntryKey)