@Test void PostMessageToQueue_NullEntity_IllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.azureTableInsertEntity("tableUri", null)); }
void azureTableInsertEntity(String tableUri, TableServiceEntity entity) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(tableUri, "tableUri"); Ensure.argIsNotNull(entity, "entity"); CloudTable table = new CloudTable(new URI(tableUri)); TableOperation insert = TableOperation.insert(entity); table.execute(insert); }
AzureStorageClient { void azureTableInsertEntity(String tableUri, TableServiceEntity entity) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(tableUri, "tableUri"); Ensure.argIsNotNull(entity, "entity"); CloudTable table = new CloudTable(new URI(tableUri)); TableOperation insert = TableOperation.insert(entity); table.execute(insert); } }
AzureStorageClient { void azureTableInsertEntity(String tableUri, TableServiceEntity entity) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(tableUri, "tableUri"); Ensure.argIsNotNull(entity, "entity"); CloudTable table = new CloudTable(new URI(tableUri)); TableOperation insert = TableOperation.insert(entity); table.execute(insert); }  }
AzureStorageClient { void azureTableInsertEntity(String tableUri, TableServiceEntity entity) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(tableUri, "tableUri"); Ensure.argIsNotNull(entity, "entity"); CloudTable table = new CloudTable(new URI(tableUri)); TableOperation insert = TableOperation.insert(entity); table.execute(insert); }   }
AzureStorageClient { void azureTableInsertEntity(String tableUri, TableServiceEntity entity) throws StorageException, URISyntaxException { Ensure.stringIsNotBlank(tableUri, "tableUri"); Ensure.argIsNotNull(entity, "entity"); CloudTable table = new CloudTable(new URI(tableUri)); TableOperation insert = TableOperation.insert(entity); table.execute(insert); }    }