mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
完善mock和测试
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@836 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user