mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
DruidDataSource support clone
This commit is contained in:
@@ -68,6 +68,18 @@ public class TestClone extends TestCase {
|
||||
Assert.assertTrue(mockConn_0.isClosed());
|
||||
Assert.assertTrue(mockConn_1.isClosed());
|
||||
Assert.assertTrue(mockConn_2.isClosed());
|
||||
|
||||
// now is new dataSource;
|
||||
dataSource = clone;
|
||||
|
||||
Connection conn_3 = dataSource.getConnection();
|
||||
Connection conn_4 = dataSource.getConnection();
|
||||
Connection conn_5 = dataSource.getConnection();
|
||||
|
||||
conn_3.close();
|
||||
conn_4.close();
|
||||
conn_5.close();
|
||||
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user