mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
format code
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@527 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -17,14 +17,15 @@ public class Case1 extends TestCase {
|
||||
|
||||
final long startTime = System.currentTimeMillis();
|
||||
final long okTime = startTime + 1000 * 1;
|
||||
|
||||
|
||||
dataSource.setDriver(new MockDriver() {
|
||||
|
||||
@Override
|
||||
public Connection connect(String url, Properties info) throws SQLException {
|
||||
if (System.currentTimeMillis() < okTime) {
|
||||
throw new SQLException();
|
||||
throw new SQLException();
|
||||
}
|
||||
|
||||
|
||||
return super.connect(url, info);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user