private List<Volume> createVolumeData(String name,int numVolumes){
  List<Volume> volumes=new ArrayList<Volume>();
  URI cgUri=createBlockConsistencyGroup(name + "-cg");
  for (int i=1; i <= numVolumes; i++) {
    Volume volume=new Volume();
    URI volumeURI=URIUtil.createId(Volume.class);
    testVolumeURIs.add(volumeURI);
    volume.setId(volumeURI);
    volume.setLabel(name + i);
    volume.setConsistencyGroup(cgUri);
    _dbClient.createObject(volume);
  }
  return volumes;
}

private List < Volume > createVolumeData ( String name , int numVolumes ) { List < Volume > volumes = new ArrayList < Volume > ( ) ; URI cgUri = createBlockConsistencyGroup ( name + "-cg" ) ; for ( int i = 1 ; i <= numVolumes ; i ++ ) { Volume volume = new Volume ( ) ; URI volumeURI = URIUtil . createId ( Volume . class ) ; testVolumeURIs . add ( volumeURI ) ; volume . setId ( volumeURI ) ; volume . setLabel ( name + i ) ; volume . setConsistencyGroup ( cgUri ) ; _dbClient . createObject ( volume ) ; } return volumes ; }
creates the blockobject volume data .
