code format

This commit is contained in:
wenshao
2011-11-16 14:07:08 +08:00
parent 146bcd728c
commit bb57f86db1
157 changed files with 888 additions and 912 deletions
@@ -10,14 +10,15 @@ import com.alibaba.druid.stat.DruidDataSourceStatManager;
import com.alibaba.druid.stat.JdbcStatManager;
public class ParamTest extends TestCase {
protected void setUp() throws Exception {
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
protected void tearDown() throws Exception {
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
public void test_default() throws Exception {
DruidDataSource dataSource = new DruidDataSource();
dataSource.setUrl("jdbc:mock:");
@@ -79,7 +80,7 @@ public class ParamTest extends TestCase {
error = ex;
}
Assert.assertNotNull(error);
dataSource.close();
}
@@ -104,7 +105,7 @@ public class ParamTest extends TestCase {
}
Assert.assertEquals(10, JdbcStatManager.getInstance().getConnectionstat().getConnectCount());
dataSource.close();
}
}