mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
code format
This commit is contained in:
@@ -17,7 +17,7 @@ public class TestStat extends TestCase {
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
|
||||
|
||||
|
||||
dataSource = new DruidDataSource();
|
||||
dataSource.setUrl("jdbc:mock:xxx");
|
||||
dataSource.setName("com.alibaba.dragoon.monitor");
|
||||
@@ -47,12 +47,11 @@ public class TestStat extends TestCase {
|
||||
|
||||
rs.close();
|
||||
stmt.close();
|
||||
|
||||
|
||||
dataSource.shrink();
|
||||
|
||||
|
||||
JdbcStatManager.getInstance().getDataSourceList();
|
||||
Assert.assertEquals(1, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user