HAPoolTest

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@816 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-16 10:22:06 +00:00
parent ae6e7e45d8
commit 81a9557fa2
5 changed files with 83 additions and 2 deletions
@@ -92,6 +92,11 @@ public class TestDataSourceBasic extends TestCase {
public void test_wrap() throws Exception {
Assert.assertTrue(!dataSource.isWrapperFor(Date.class));
Assert.assertTrue(!dataSource.isWrapperFor(null));
Assert.assertTrue(dataSource.isWrapperFor(DataSource.class));
Assert.assertTrue(dataSource.unwrap(Date.class) == null);
Assert.assertTrue(dataSource.unwrap(null) == null);
Assert.assertTrue(dataSource.unwrap(DataSource.class) != null);
}
}