@Test void GetBlobPathWithSas_NullCloudBlockBlob_IllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.getBlobPathWithSas(null)); }
String getBlobPathWithSas(CloudBlockBlob blob) { Ensure.argIsNotNull(blob, "blob"); StorageCredentialsSharedAccessSignature signature = (StorageCredentialsSharedAccessSignature) blob.getServiceClient().getCredentials(); return blob.getStorageUri().getPrimaryUri().toString() + "?" + signature.getToken(); }
AzureStorageClient { String getBlobPathWithSas(CloudBlockBlob blob) { Ensure.argIsNotNull(blob, "blob"); StorageCredentialsSharedAccessSignature signature = (StorageCredentialsSharedAccessSignature) blob.getServiceClient().getCredentials(); return blob.getStorageUri().getPrimaryUri().toString() + "?" + signature.getToken(); } }
AzureStorageClient { String getBlobPathWithSas(CloudBlockBlob blob) { Ensure.argIsNotNull(blob, "blob"); StorageCredentialsSharedAccessSignature signature = (StorageCredentialsSharedAccessSignature) blob.getServiceClient().getCredentials(); return blob.getStorageUri().getPrimaryUri().toString() + "?" + signature.getToken(); }  }
AzureStorageClient { String getBlobPathWithSas(CloudBlockBlob blob) { Ensure.argIsNotNull(blob, "blob"); StorageCredentialsSharedAccessSignature signature = (StorageCredentialsSharedAccessSignature) blob.getServiceClient().getCredentials(); return blob.getStorageUri().getPrimaryUri().toString() + "?" + signature.getToken(); }   }
AzureStorageClient { String getBlobPathWithSas(CloudBlockBlob blob) { Ensure.argIsNotNull(blob, "blob"); StorageCredentialsSharedAccessSignature signature = (StorageCredentialsSharedAccessSignature) blob.getServiceClient().getCredentials(); return blob.getStorageUri().getPrimaryUri().toString() + "?" + signature.getToken(); }    }