1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.unitils;
|
11
|
|
12
|
import javax.sql.DataSource;
|
13
|
|
14
|
import org.apache.commons.dbcp.BasicDataSource;
|
15
|
import org.unitils.database.config.PropertiesDataSourceFactory;
|
16
|
|
17
|
/**
|
18
|
* @author cmathew
|
19
|
* @date 8 Apr 2015
|
20
|
*
|
21
|
*/
|
22
|
public class CdmTestDataSourceFactory extends PropertiesDataSourceFactory {
|
23
|
|
24
|
@Override
|
25
|
public DataSource createDataSource() {
|
26
|
BasicDataSource dataSource = (BasicDataSource)super.createDataSource();
|
27
|
dataSource.setMaxActive(-1);
|
28
|
return dataSource;
|
29
|
}
|
30
|
|
31
|
}
|