@Test void GetBlobSize_NullBlobPath_IllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.getBlobSize(null)); }
long getBlobSize(String blobPath) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(blobPath, "blobPath"); CloudBlockBlob blockBlob = new CloudBlockBlob(new URI(blobPath)); blockBlob.downloadAttributes(); return blockBlob.getProperties().getLength(); }
AzureStorageClient { long getBlobSize(String blobPath) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(blobPath, "blobPath"); CloudBlockBlob blockBlob = new CloudBlockBlob(new URI(blobPath)); blockBlob.downloadAttributes(); return blockBlob.getProperties().getLength(); } }
AzureStorageClient { long getBlobSize(String blobPath) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(blobPath, "blobPath"); CloudBlockBlob blockBlob = new CloudBlockBlob(new URI(blobPath)); blockBlob.downloadAttributes(); return blockBlob.getProperties().getLength(); }  }
AzureStorageClient { long getBlobSize(String blobPath) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(blobPath, "blobPath"); CloudBlockBlob blockBlob = new CloudBlockBlob(new URI(blobPath)); blockBlob.downloadAttributes(); return blockBlob.getProperties().getLength(); }   }
AzureStorageClient { long getBlobSize(String blobPath) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(blobPath, "blobPath"); CloudBlockBlob blockBlob = new CloudBlockBlob(new URI(blobPath)); blockBlob.downloadAttributes(); return blockBlob.getProperties().getLength(); }    }