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 testGetStoragePlatforms() throws Exception
      {
          StoragePlatforms storagePlatforms = new StoragePlatforms(Arrays.asList(new StoragePlatform()));
          when(storagePlatformService.getStoragePlatforms()).thenReturn(storagePlatforms);
          StoragePlatforms resultStoragePlatforms = storagePlatformRestController.getStoragePlatforms();
          assertNotNull(storagePlatforms);
          logger.info("Total number of storage platforms: " + storagePlatforms.getStoragePlatforms().size());
          assertTrue(storagePlatforms.getStoragePlatforms().size() >= 1); // We should have at least 1 row of reference data present (i.e. S3).
  
          // Verify the external calls.
          verify(storagePlatformService).getStoragePlatforms();
          verifyNoMoreInteractions(storagePlatformService);
          // Validate the returned object.
          assertEquals(storagePlatforms, resultStoragePlatforms);
      }
test_case.class_method_signature: StoragePlatformRestControllerTest.testGetStoragePlatforms()
test_case.full_signature: @Test public void testGetStoragePlatforms()
test_case.identifier: testGetStoragePlatforms
test_case.invocations: asList thenReturn when getStoragePlatforms getStoragePlatforms assertNotNull info size getStoragePlatforms assertTrue size getStoragePlatforms getStoragePlatforms verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetStoragePlatforms()
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", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_ALL_GET)
      public StoragePlatforms getStoragePlatforms()
      {
          return storagePlatformService.getStoragePlatforms();
      }
focal_method.class_method_signature: StoragePlatformRestController.getStoragePlatforms()
focal_method.full_signature: @RequestMapping(value = "/storagePlatforms", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_ALL_GET) public StoragePlatforms getStoragePlatforms()
focal_method.identifier: getStoragePlatforms
focal_method.invocations: getStoragePlatforms
focal_method.modifiers: @RequestMapping(value = "/storagePlatforms", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_STORAGE_PLATFORMS_ALL_GET) public
focal_method.parameters: ()
focal_method.return: StoragePlatforms
focal_method.signature: StoragePlatforms getStoragePlatforms()