@Test void PostMessageToQueue_NullContent_IllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.postMessageToQueue("queuePath", null)); }
void postMessageToQueue(String queuePath, String content) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(queuePath, "queuePath"); Ensure.stringIsNotBlank(content, "content"); CloudQueue queue = new CloudQueue(new URI(queuePath)); CloudQueueMessage queueMessage = new CloudQueueMessage(content); queue.addMessage(queueMessage); }
AzureStorageClient { void postMessageToQueue(String queuePath, String content) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(queuePath, "queuePath"); Ensure.stringIsNotBlank(content, "content"); CloudQueue queue = new CloudQueue(new URI(queuePath)); CloudQueueMessage queueMessage = new CloudQueueMessage(content); queue.addMessage(queueMessage); } }
AzureStorageClient { void postMessageToQueue(String queuePath, String content) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(queuePath, "queuePath"); Ensure.stringIsNotBlank(content, "content"); CloudQueue queue = new CloudQueue(new URI(queuePath)); CloudQueueMessage queueMessage = new CloudQueueMessage(content); queue.addMessage(queueMessage); }  }
AzureStorageClient { void postMessageToQueue(String queuePath, String content) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(queuePath, "queuePath"); Ensure.stringIsNotBlank(content, "content"); CloudQueue queue = new CloudQueue(new URI(queuePath)); CloudQueueMessage queueMessage = new CloudQueueMessage(content); queue.addMessage(queueMessage); }   }
AzureStorageClient { void postMessageToQueue(String queuePath, String content) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(queuePath, "queuePath"); Ensure.stringIsNotBlank(content, "content"); CloudQueue queue = new CloudQueue(new URI(queuePath)); CloudQueueMessage queueMessage = new CloudQueueMessage(content); queue.addMessage(queueMessage); }    }