1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:
context=
"http://www.springframework.org/schema/context"
5 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans
6 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/context
8 http://www.springframework.org/schema/context/spring-context-2.5.xsd">
10 <import resource=
"classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
12 <context:component-scan base-package=
"eu/etaxonomy/cdm/ext"/>
15 use TestingTermInitializer
17 <bean id=
"testingTermInitializer" class=
"eu.etaxonomy.cdm.database.TestingTermInitializer">
18 <property name=
"termsDataSet" value=
"classpath:/eu/etaxonomy/cdm/database/TermsDataSet-with_auditing_info.xml"/>
19 <property name=
"termsDtd" value=
"classpath:/eu/etaxonomy/cdm/persistence/dao/hibernate/dataset.dtd"/>
20 <property name=
"omit" value=
"false"/>
22 <bean id=
"persistentTermInitializer" class=
"eu.etaxonomy.cdm.database.PersistentTermInitializer">
23 <property name=
"omit" value=
"true"/>
27 <bean id=
"dataSource" class=
"org.unitils.database.UnitilsDataSourceFactoryBean"/>
29 <bean id=
"hibernateProperties"
30 class=
"org.springframework.beans.factory.config.PropertiesFactoryBean">
31 <property name=
"properties">
33 <prop key=
"hibernate.dialect">org.hibernate.dialect.HSQLCorrectedDialect
</prop>
34 <prop key=
"hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider
</prop>
35 <prop key=
"hibernate.show_sql">false
</prop>
36 <prop key=
"hibernate.format_sql">false
</prop>
37 <prop key=
"hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider
</prop>
38 <prop key=
"hibernate.search.default.indexBase">./target/test-classes
</prop>
43 <bean id=
"tableGeneratorGlobalOverride"
44 class=
"eu.etaxonomy.cdm.persistence.hibernate.TableGeneratorGlobalOverride">
45 <property name=
"properties">
47 <!-- globally overriding id generation settings see: eu.etaxonomy.cdm.persistence.hibernate.TableGenerator -->
48 <prop key=
"optimizer">none
</prop>
49 <prop key=
"initial_value">3000</prop>
55 <bean id=
"taxonSpellingDirectory" class=
"org.springmodules.lucene.index.support.FSDirectoryFactoryBean">
56 <property name=
"location" value=
"file:./target/test-classes/eu.etaxonomy.cdm.model.taxon.TaxonBase_spelling"/>
57 <property name=
"create" value=
"true"/>
60 <bean id=
"taxonSpellingIndex" class=
"org.springmodules.lucene.index.support.SimpleIndexFactoryBean">
61 <property name=
"directory" ref=
"taxonSpellingDirectory"/>
62 <property name=
"create" value=
"true"/>
63 <property name=
"analyzer">
64 <bean class=
"org.apache.lucene.analysis.SimpleAnalyzer"/>
68 <bean id=
"authenticationManager" class=
"org.springframework.security.authentication.ProviderManager">
69 <property name=
"providers">
71 <bean class=
"org.springframework.security.authentication.TestingAuthenticationProvider"/>
76 <bean id=
"passwordEncoder" class=
"org.springframework.security.authentication.encoding.Md5PasswordEncoder"/>
78 <bean id=
"saltSource" class=
"org.springframework.security.authentication.dao.ReflectionSaltSource">
79 <property name=
"userPropertyToUse" value=
"getUsername"/>