test_class.declarator: ebsRaiderImplUnderTest
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private  EBSRaiderImpl ebsRaiderImplUnderTest;
test_class.type: EBSRaiderImpl
test_class.var_name: ebsRaiderImplUnderTest
test_class.declarator: ec2Delegator
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private  EC2Delegator ec2Delegator;
test_class.type: EC2Delegator
test_class.var_name: ec2Delegator
test_class.declarator: instance
test_class.modifier: private
test_class.original_string: private  Instance instance;
test_class.type: Instance
test_class.var_name: instance
test_class.declarator: describeVolumesResult
test_class.modifier: private
test_class.original_string: private DescribeVolumesResult describeVolumesResult;
test_class.type: DescribeVolumesResult
test_class.var_name: describeVolumesResult
test_class.file: cloudraider-core/src/test/java/com/intuit/cloudraider/core/impl/EBSRaiderImplTest.java
test_class.identifier: EBSRaiderImplTest
test_case.body: @Test
      public void testgetVolumesForGivenInstanceId() throws Exception{
  
          List<Volume> volumes = ebsRaiderImplUnderTest.getVolumesForGivenInstanceId("1234");
  
          Assert.assertTrue(volumes.isEmpty());
  
          volumes = new ArrayList<Volume>();
          Volume volume = new Volume();
          volume.setVolumeId("123");
          volume.setState("attached");
  
          volumes.add(volume);
  
          PowerMockito.when(describeVolumesResult.getVolumes()).thenReturn(volumes);
  
          Assert.assertFalse(volumes.isEmpty());
          Assert.assertEquals(volumes.get(0).getVolumeId(), "123");
          Assert.assertEquals(volumes.get(0).getState(), "attached");
  
      }
test_case.class_method_signature: EBSRaiderImplTest.testgetVolumesForGivenInstanceId()
test_case.full_signature: @Test public void testgetVolumesForGivenInstanceId()
test_case.identifier: testgetVolumesForGivenInstanceId
test_case.invocations: getVolumesForGivenInstanceId assertTrue isEmpty setVolumeId setState add thenReturn when getVolumes assertFalse isEmpty assertEquals getVolumeId get assertEquals getState get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testgetVolumesForGivenInstanceId()
focal_class.declarator: logger = LoggerFactory.getLogger(this.getClass())
focal_class.original_string: Logger logger = LoggerFactory.getLogger(this.getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: ec2Delegator
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private EC2Delegator ec2Delegator;
focal_class.type: EC2Delegator
focal_class.var_name: ec2Delegator
focal_class.file: cloudraider-core/src/main/java/com/intuit/cloudraider/core/impl/EBSRaiderImpl.java
focal_class.identifier: EBSRaiderImpl
focal_class.interfaces: implements EBSRaider
focal_class.class_method_signature: EBSRaiderImpl.EBSRaiderImpl()
focal_class.full_signature: public  EBSRaiderImpl()
focal_class.identifier: EBSRaiderImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  EBSRaiderImpl()
focal_class.class_method_signature: EBSRaiderImpl.detachEbsVolume(String volumeId)
focal_class.full_signature: public String detachEbsVolume(String volumeId)
focal_class.identifier: detachEbsVolume
focal_class.modifiers: public
focal_class.parameters: (String volumeId)
focal_class.return: String
focal_class.signature: String detachEbsVolume(String volumeId)
focal_class.class_method_signature: EBSRaiderImpl.attachEbsVolume(String instanceId, String deviceName, String volumeId)
focal_class.full_signature: public String attachEbsVolume(String instanceId, String deviceName, String volumeId)
focal_class.identifier: attachEbsVolume
focal_class.modifiers: public
focal_class.parameters: (String instanceId, String deviceName, String volumeId)
focal_class.return: String
focal_class.signature: String attachEbsVolume(String instanceId, String deviceName, String volumeId)
focal_class.class_method_signature: EBSRaiderImpl.getVolumesState(String... volumeIds)
focal_class.full_signature: public Map getVolumesState(String... volumeIds)
focal_class.identifier: getVolumesState
focal_class.modifiers: public
focal_class.parameters: (String... volumeIds)
focal_class.return: Map
focal_class.signature: Map getVolumesState(String... volumeIds)
focal_class.class_method_signature: EBSRaiderImpl.getVolumesForGivenInstanceId(String instanceId)
focal_class.full_signature: public List<Volume> getVolumesForGivenInstanceId(String instanceId)
focal_class.identifier: getVolumesForGivenInstanceId
focal_class.modifiers: public
focal_class.parameters: (String instanceId)
focal_class.return: List<Volume>
focal_class.signature: List<Volume> getVolumesForGivenInstanceId(String instanceId)
focal_method.body: public List<Volume> getVolumesForGivenInstanceId(String instanceId) {
          return ec2Delegator.getEc2().describeVolumes(new DescribeVolumesRequest()
                  .withFilters(new Filter()
                          .withName("attachment.instance-id")
                          .withValues(instanceId)))
                  .getVolumes();
      }
focal_method.class_method_signature: EBSRaiderImpl.getVolumesForGivenInstanceId(String instanceId)
focal_method.full_signature: public List<Volume> getVolumesForGivenInstanceId(String instanceId)
focal_method.identifier: getVolumesForGivenInstanceId
focal_method.invocations: getVolumes describeVolumes getEc2 withFilters withValues withName
focal_method.modifiers: public
focal_method.parameters: (String instanceId)
focal_method.return: List<Volume>
focal_method.signature: List<Volume> getVolumesForGivenInstanceId(String instanceId)