Skip to content

Commit 843e513

Browse files
committed
refact(test): rollback DBUtil.java
1 parent 04df0ae commit 843e513

File tree

1 file changed

+6
-6
lines changed
  • hugegraph-loader/src/test/java/org/apache/hugegraph/loader/test/functional

1 file changed

+6
-6
lines changed

hugegraph-loader/src/test/java/org/apache/hugegraph/loader/test/functional/DBUtil.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
package org.apache.hugegraph.loader.test.functional;
1919

20-
import org.apache.hugegraph.loader.exception.LoadException;
21-
2220
import java.sql.Connection;
2321
import java.sql.DriverManager;
2422
import java.sql.SQLException;
2523
import java.sql.Statement;
2624

25+
import org.apache.hugegraph.loader.exception.LoadException;
26+
2727
public class DBUtil {
2828

2929
private final String driver;
@@ -47,10 +47,10 @@ public void connect() {
4747
this.conn = DriverManager.getConnection(url, this.user, this.pass);
4848
} catch (ClassNotFoundException e) {
4949
throw new LoadException("Invalid driver class '%s'",
50-
e, this.driver);
50+
e, this.driver);
5151
} catch (SQLException e) {
5252
throw new LoadException("Failed to connect database via '%s'",
53-
e, this.url);
53+
e, this.url);
5454
}
5555
}
5656

@@ -63,10 +63,10 @@ public void connect(String database) {
6363
this.conn = DriverManager.getConnection(url, this.user, this.pass);
6464
} catch (ClassNotFoundException e) {
6565
throw new LoadException("Invalid driver class '%s'",
66-
e, this.driver);
66+
e, this.driver);
6767
} catch (SQLException e) {
6868
throw new LoadException("Failed to connect database via '%s'",
69-
e, this.url);
69+
e, this.url);
7070
}
7171
}
7272

0 commit comments

Comments
 (0)