Skip to content

Commit

Permalink
for #601, refacotr the integrate test jdbc package location
Browse files Browse the repository at this point in the history
  • Loading branch information
haocao committed Aug 11, 2018
1 parent fc0c22b commit afb9fdb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private static void createJdbcSchema(final DatabaseType dbType) {
Connection conn;
for (int i = 0; i < 2; i++) {
conn = initialConnection("jdbc_" + i, dbType);
RunScript.execute(conn, new InputStreamReader(AbstractSQLTest.class.getClassLoader().getResourceAsStream("integrate/jdbc/jdbc_init.sql")));
RunScript.execute(conn, new InputStreamReader(AbstractSQLTest.class.getClassLoader().getResourceAsStream("integrate/cases/jdbc/jdbc_init.sql")));
conn.close();
}
} catch (final SQLException ex) {
Expand Down Expand Up @@ -158,7 +158,7 @@ private static void closeDataSources(final Collection<DataSource> dataSources) t
protected final void importDataSet() {
try {
ShardingConnection conn = shardingDataSource.getConnection();
RunScript.execute(conn, new InputStreamReader(AbstractSQLTest.class.getClassLoader().getResourceAsStream("integrate/jdbc/jdbc_data.sql")));
RunScript.execute(conn, new InputStreamReader(AbstractSQLTest.class.getClassLoader().getResourceAsStream("integrate/cases/jdbc/jdbc_data.sql")));
conn.close();
} catch (final SQLException ex) {
ex.printStackTrace();
Expand Down

0 comments on commit afb9fdb

Please sign in to comment.