use of com.quorum.tessera.config.AzureKeyVaultConfig in project tessera by ConsenSys.
the class AzureKeyVaultHandlerTest method handle.
@Test
public void handle() {
String vaultUrl = "vaultUrl";
KeyVaultConfigOptions keyVaultConfigOptions = mock(KeyVaultConfigOptions.class);
when(keyVaultConfigOptions.getVaultUrl()).thenReturn(vaultUrl);
AzureKeyVaultConfig keyVaultConfig = (AzureKeyVaultConfig) azureKeyVaultHandler.handle(keyVaultConfigOptions);
assertThat(keyVaultConfig).isNotNull().isExactlyInstanceOf(AzureKeyVaultConfig.class);
assertThat(keyVaultConfig.getUrl()).isEqualTo(vaultUrl);
}
Aggregations