Remove unnecessary static driver definition. Spring figures this out. (#470)
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -37,12 +37,6 @@ public class CIMySqlTestDatabase implements Testdatabase {
|
||||
this.password = System.getProperty("spring.datasource.password");
|
||||
this.uri = System.getProperty("spring.datasource.url");
|
||||
createSchemaUri();
|
||||
initSystemProperties();
|
||||
}
|
||||
|
||||
private final void initSystemProperties() {
|
||||
System.setProperty("spring.datasource.driverClassName", getDriverClassName());
|
||||
System.setProperty("spring.jpa.database", "MYSQL");
|
||||
}
|
||||
|
||||
private void createSchemaUri() {
|
||||
@@ -85,12 +79,6 @@ public class CIMySqlTestDatabase implements Testdatabase {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDriverClassName() {
|
||||
return "org.mariadb.jdbc.Driver";
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUri() {
|
||||
return uri;
|
||||
|
||||
@@ -20,6 +20,4 @@ public interface Testdatabase {
|
||||
|
||||
public String getUri();
|
||||
|
||||
String getDriverClassName();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user