Project

General

Profile

« Previous | Next » 

Revision 3e7f8ad4

Added by Cherian Mathew almost 9 years ago

removed incorrect test datasource setting and corresponding factory class

View differences:

src/test/java/eu/etaxonomy/cdm/unitils/CdmTestDataSourceFactory.java
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
}
src/test/resources/unitils.properties
41 41
database.storedIndentifierCase.h2=auto
42 42
database.identifierQuoteString.h2=auto
43 43

  
44
org.unitils.database.config.DataSourceFactory.implClassName=eu.etaxonomy.cdm.unitils.CdmTestDataSourceFactory
45 44

  
46 45

  
47 46

  

Also available in: Unified diff