Review deprecated code usage.
Suppress warnings for own deprecated code usage in tests as we provide types that are deprecated yet we want to cover these with tests. Move off external deprecated API. Closes gh-208.
This commit is contained in:
@@ -53,6 +53,7 @@ public class MySqlDatabaseSecretIntegrationTests extends IntegrationTestSupport
|
||||
|
||||
private VaultProperties vaultProperties = Settings.createVaultProperties();
|
||||
private VaultConfigOperations configOperations;
|
||||
@SuppressWarnings("deprecation")
|
||||
private VaultMySqlProperties mySql = new VaultMySqlProperties();
|
||||
|
||||
/**
|
||||
|
||||
@@ -51,6 +51,7 @@ public class MySqlSecretIntegrationTests extends IntegrationTestSupport {
|
||||
|
||||
private VaultProperties vaultProperties = Settings.createVaultProperties();
|
||||
private VaultConfigOperations configOperations;
|
||||
@SuppressWarnings("deprecation")
|
||||
private VaultMySqlProperties mySql = new VaultMySqlProperties();
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,6 +57,7 @@ public class PostgreSqlSecretIntegrationTests extends IntegrationTestSupport {
|
||||
|
||||
private VaultProperties vaultProperties = Settings.createVaultProperties();
|
||||
private VaultConfigOperations configOperations;
|
||||
@SuppressWarnings("deprecation")
|
||||
private VaultPostgreSqlProperties postgreSql = new VaultPostgreSqlProperties();
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
/**
|
||||
* Tests for {@link VaultConfigDatabaseBootstrapConfiguration}.
|
||||
@@ -47,6 +47,7 @@ public class VaultConfigDatabaseBootstrapConfigurationTests
|
||||
@Autowired
|
||||
DatabaseSecretBackendMetadataFactory factory;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Autowired
|
||||
VaultMySqlProperties properties;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user