@Test(expected = IllegalArgumentException.class) public void deleteContainerThrows() throws Exception { StorageServiceImpl.deleteContainer(invalidStorageInputs); }
@NotNull public static String deleteContainer(@NotNull final StorageInputs inputs) throws Exception { final CloudBlobClient blobClient = getCloudBlobClient(inputs); final CloudBlobContainer container = blobClient.getContainerReference(inputs.getContainerName()); container.delete(); return inputs.getContainerName(); }
StorageServiceImpl { @NotNull public static String deleteContainer(@NotNull final StorageInputs inputs) throws Exception { final CloudBlobClient blobClient = getCloudBlobClient(inputs); final CloudBlobContainer container = blobClient.getContainerReference(inputs.getContainerName()); container.delete(); return inputs.getContainerName(); } }
StorageServiceImpl { @NotNull public static String deleteContainer(@NotNull final StorageInputs inputs) throws Exception { final CloudBlobClient blobClient = getCloudBlobClient(inputs); final CloudBlobContainer container = blobClient.getContainerReference(inputs.getContainerName()); container.delete(); return inputs.getContainerName(); }  }
StorageServiceImpl { @NotNull public static String deleteContainer(@NotNull final StorageInputs inputs) throws Exception { final CloudBlobClient blobClient = getCloudBlobClient(inputs); final CloudBlobContainer container = blobClient.getContainerReference(inputs.getContainerName()); container.delete(); return inputs.getContainerName(); }  @NotNull static String createContainer(@NotNull final StorageInputs inputs); @NotNull static String listContainers(@NotNull final StorageInputs inputs); @NotNull static String deleteContainer(@NotNull final StorageInputs inputs); @NotNull static String listBlobs(@NotNull final StorageInputs inputs); @NotNull static String deleteBlob(@NotNull final StorageInputs inputs); @NotNull static CloudBlobClient getCloudBlobClient(@NotNull final StorageInputs inputs); }
StorageServiceImpl { @NotNull public static String deleteContainer(@NotNull final StorageInputs inputs) throws Exception { final CloudBlobClient blobClient = getCloudBlobClient(inputs); final CloudBlobContainer container = blobClient.getContainerReference(inputs.getContainerName()); container.delete(); return inputs.getContainerName(); }  @NotNull static String createContainer(@NotNull final StorageInputs inputs); @NotNull static String listContainers(@NotNull final StorageInputs inputs); @NotNull static String deleteContainer(@NotNull final StorageInputs inputs); @NotNull static String listBlobs(@NotNull final StorageInputs inputs); @NotNull static String deleteBlob(@NotNull final StorageInputs inputs); @NotNull static CloudBlobClient getCloudBlobClient(@NotNull final StorageInputs inputs);  }