Skip to content

Commit 42df931

Browse files
committed
Polishing.
Removes superfluous method.
1 parent 60c0e6e commit 42df931

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/MySqlDataSourceConfiguration.java

+11
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,15 @@ public void afterPropertiesSet() throws Exception {
7777
new ByteArrayResource("DROP DATABASE test;CREATE DATABASE test;".getBytes()));
7878
}
7979
}
80+
81+
private DataSource createRootDataSource() {
82+
83+
MysqlDataSource dataSource = new MysqlDataSource();
84+
dataSource.setUrl(MYSQL_CONTAINER.getJdbcUrl());
85+
dataSource.setUser("root");
86+
dataSource.setPassword(MYSQL_CONTAINER.getPassword());
87+
dataSource.setDatabaseName(MYSQL_CONTAINER.getDatabaseName());
88+
89+
return dataSource;
90+
}
8091
}

0 commit comments

Comments
 (0)