@Test public void testNullHandling() throws Exception { AzureUserAccess instance = new AzureUserAccess(tableClient); User user = User.create(null, null); instance.addUser(user); Optional<User> userForPersistentId = instance.getUserForPid(null); Optional<User> userForTimLocalId = instance.getUserForTimLocalId(user.getId()); assertThat(userForPersistentId.get(), is(user)); assertThat(userForTimLocalId.get(), is(user)); assertThat(user.getId(), not(isEmptyOrNullString())); }
protected void create(String partitionKey, String rowKey, Map<String, EntityProperty> properties) throws StorageException { table.execute(TableOperation.insert(new DynamicTableEntity(partitionKey, rowKey, new HashMap<>(properties)))); }
AzureAccess { protected void create(String partitionKey, String rowKey, Map<String, EntityProperty> properties) throws StorageException { table.execute(TableOperation.insert(new DynamicTableEntity(partitionKey, rowKey, new HashMap<>(properties)))); } }
AzureAccess { protected void create(String partitionKey, String rowKey, Map<String, EntityProperty> properties) throws StorageException { table.execute(TableOperation.insert(new DynamicTableEntity(partitionKey, rowKey, new HashMap<>(properties)))); } AzureAccess(CloudTableClient client, String tableName); }
AzureAccess { protected void create(String partitionKey, String rowKey, Map<String, EntityProperty> properties) throws StorageException { table.execute(TableOperation.insert(new DynamicTableEntity(partitionKey, rowKey, new HashMap<>(properties)))); } AzureAccess(CloudTableClient client, String tableName);  }
AzureAccess { protected void create(String partitionKey, String rowKey, Map<String, EntityProperty> properties) throws StorageException { table.execute(TableOperation.insert(new DynamicTableEntity(partitionKey, rowKey, new HashMap<>(properties)))); } AzureAccess(CloudTableClient client, String tableName);   }