test_class.declarator: logger = LoggerFactory.getLogger(StoragePlatformRestControllerTest.class)
test_class.modifier: private static
test_class.original_string: private static Logger logger = LoggerFactory.getLogger(StoragePlatformRestControllerTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: storagePlatformRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private StoragePlatformRestController storagePlatformRestController;
test_class.type: StoragePlatformRestController
test_class.var_name: storagePlatformRestController
test_class.declarator: storagePlatformService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private StoragePlatformService storagePlatformService;
test_class.type: StoragePlatformService
test_class.var_name: storagePlatformService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/StoragePlatformRestControllerTest.java
test_class.identifier: StoragePlatformRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetStoragePlatform() throws Exception
      {
          StoragePlatform storagePlatform = new StoragePlatform(StoragePlatformEntity.S3);
          when(storagePlatformService.getStoragePlatform(StoragePlatformEntity.S3)).thenReturn(storagePlatform);
          StoragePlatform resultStoragePlatform = storagePlatformRestController.getStoragePlatform(StoragePlatformEntity.S3);
          assertNotNull(storagePlatform);
          assertTrue(StoragePlatformEntity.S3.equals(storagePlatform.getName()));
          logger.info("Storage platform name: " + storagePlatform.getName());
          // Verify the external calls.
          verify(storagePlatformService).getStoragePlatform(StoragePlatformEntity.S3);
          verifyNoMoreInteractions(storagePlatformService);
          // Validate the returned object.
          assertEquals(storagePlatform, resultStoragePlatform);
      }
test_case.class_method_signature: StoragePlatformRestControllerTest.testGetStoragePlatform()
test_case.full_signature: @Test public void testGetStoragePlatform()
test_case.identifier: testGetStoragePlatform
test_case.invocations: thenReturn when getStoragePlatform getStoragePlatform assertNotNull assertTrue equals getName info getName getStoragePlatform verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetStoragePlatform()
focal_class.declarator: storagePlatformService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private StoragePlatformService storagePlatformService;
focal_class.type: StoragePlatformService
focal_class.var_name: storagePlatformService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/StoragePlatformRestController.java
focal_class.identifier: StoragePlatformRestController
focal_class.class_method_signature: StoragePlatformRestController.getStoragePlatform(@PathVariable("name") String name)
focal_class.full_signature: @RequestMapping(value = "/storagePlatforms/{name}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_GET) public StoragePlatform getStoragePlatform(@PathVariable("name") String name)
focal_class.identifier: getStoragePlatform
focal_class.modifiers: @RequestMapping(value = "/storagePlatforms/{name}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_GET) public
focal_class.parameters: (@PathVariable("name") String name)
focal_class.return: StoragePlatform
focal_class.signature: StoragePlatform getStoragePlatform(@PathVariable("name") String name)
focal_class.class_method_signature: StoragePlatformRestController.getStoragePlatforms()
focal_class.full_signature: @RequestMapping(value = "/storagePlatforms", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_ALL_GET) public StoragePlatforms getStoragePlatforms()
focal_class.identifier: getStoragePlatforms
focal_class.modifiers: @RequestMapping(value = "/storagePlatforms", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_ALL_GET) public
focal_class.parameters: ()
focal_class.return: StoragePlatforms
focal_class.signature: StoragePlatforms getStoragePlatforms()
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/storagePlatforms/{name}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_GET)
      public StoragePlatform getStoragePlatform(@PathVariable("name") String name)
      {
          return storagePlatformService.getStoragePlatform(name);
      }
focal_method.class_method_signature: StoragePlatformRestController.getStoragePlatform(@PathVariable("name") String name)
focal_method.full_signature: @RequestMapping(value = "/storagePlatforms/{name}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_GET) public StoragePlatform getStoragePlatform(@PathVariable("name") String name)
focal_method.identifier: getStoragePlatform
focal_method.invocations: getStoragePlatform
focal_method.modifiers: @RequestMapping(value = "/storagePlatforms/{name}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_GET) public
focal_method.parameters: (@PathVariable("name") String name)
focal_method.return: StoragePlatform
focal_method.signature: StoragePlatform getStoragePlatform(@PathVariable("name") String name)