Search in sources :

Example 1 with AzureKeyVaultConfig

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);
}
Also used : AzureKeyVaultConfig(com.quorum.tessera.config.AzureKeyVaultConfig) Test(org.junit.Test)

Aggregations

AzureKeyVaultConfig (com.quorum.tessera.config.AzureKeyVaultConfig)1 Test (org.junit.Test)1