2 # NOTE: this is the unitils.properties file for the cdmlib-persistence module
3 # a separate unitils.properties exists for cdmlib-io and for cdmlib-services
6 # the list of all properties is found in
7 # http://unitils.org/unitils-default.properties
10 ### Unitils Modules ###
11 # List of modules that is loaded. Overloading this list is normally not useful, unless you want to add a custom
12 # module. Disabling a module can be performed by setting unitils.module.<modulename>.enabled to false.
13 # If a module's specific dependencies are not found (e.g. hibernate is not in you classpath), this module is not loaded,
14 # even if it is in this list and the enabled property is set to true. It's therefore not strictly necessary to disable
15 # any of these modules.
16 #DEFAULT: unitils.modules=database,dbunit,hibernate,mock,easymock,inject,spring,jpa
17 unitils.module.easymock.enabled=false
18 unitils.module.mock.enabled=false
23 # Name or path of the user specific properties file. This file should contain the necessary parameters to connect to the
24 # developer's own unit test schema. It is recommended to override the name of this file in the project specific properties
25 # file, to include the name of the project. The system will try to find this file in the classpath, the user home folder
26 # (recommended) or the local filesystem.
28 unitils.configuration.localFileName=unitils-cdmlib-local.properties
32 database.driverClassName=org.h2.Driver
33 database.url=jdbc:h2:file:./h2/cdmTest;AUTO_SERVER=TRUE
37 database.schemaNames=PUBLIC
38 org.dbunit.dataset.datatype.IDataTypeFactory.implClassName.h2=org.dbunit.ext.h2.H2DataTypeFactory
39 org.unitils.core.dbsupport.DbSupport.implClassName.h2=eu.etaxonomy.cdm.database.H2DbSupport
40 database.storedIndentifierCase.h2=auto
41 database.identifierQuoteString.h2=auto
44 #### Transaction mode ###
46 # If set to commit or rollback, each test is run in a transaction,
47 # which is committed or rolled back after the test is finished.
48 # Since we have many tests with incomplete data these tests would be
49 # failing during commit so it is better use rollback as default
50 # and set commit for individual test where necessary
51 DatabaseModule.Transactional.value.default=rollback
53 # org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager is used by default:
55 # Implements transactions for unit tests, by delegating to a spring PlatformTransactionManager.
56 # The concrete implementation of PlatformTransactionManager that is used depends on the test class.
57 # If a custom PlatformTransactionManager was configured in a spring ApplicationContext, this one is used.
58 # If not, a suitable subclass of PlatformTransactionManager is created, depending on the configuration
59 # of a test. E.g. if some ORM persistence unit was configured on the test, a PlatformTransactionManager
60 # that can offer transactional behavior for such a persistence unit is used.
61 # If no such configuration is found, a DataSourceTransactionManager is used.
63 # org.unitils.database.transaction.UnitilsTransactionManager.implClassName=org.unitils.database.transaction.impl.SpringTransactionManager
67 HibernateModule.configuration.implClassName=org.hibernate.cfg.Configuration