完善mock和测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@836 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-18 07:00:02 +00:00
parent 4ed95e9e0f
commit a5d592933b
5 changed files with 115 additions and 52 deletions
@@ -746,10 +746,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
// 兼容JBOSS
public void setExceptionSorterClassName(String exceptionSorter) throws Exception {
this.setExceptionSoter(exceptionSorter);
this.setExceptionSorter(exceptionSorter);
}
public void setExceptionSoter(String exceptionSorter) throws Exception {
public void setExceptionSorter(String exceptionSorter) throws Exception {
if (exceptionSorter == null) {
this.exceptionSoter = NullExceptionSorter.getInstance();
return;
@@ -284,12 +284,12 @@ public class DruidDataSourceFactory implements ObjectFactory {
value = properties.getProperty(PROP_EXCEPTION_SORTER);
if (value != null) {
dataSource.setExceptionSoter(value);
dataSource.setExceptionSorter(value);
}
value = properties.getProperty(PROP_EXCEPTION_SORTER_CLASS_NAME);
if (value != null) {
dataSource.setExceptionSoter(value);
dataSource.setExceptionSorter(value);
}
value = properties.getProperty(PROP_INITCONNECTIONSQLS);