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"/>
14 <bean id=
"dataSource" class=
"org.unitils.database.UnitilsDataSourceFactoryBean"/>
16 <bean id=
"hibernateProperties"
17 class=
"org.springframework.beans.factory.config.PropertiesFactoryBean">
18 <property name=
"properties">
20 <prop key=
"hibernate.dialect">org.hibernate.dialect.HSQLCorrectedDialect
</prop>
21 <prop key=
"hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider
</prop>
22 <prop key=
"hibernate.show_sql">false
</prop>
23 <prop key=
"hibernate.format_sql">false
</prop>
24 <prop key=
"hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider
</prop>
25 <prop key=
"hibernate.search.default.indexBase">./target/test-classes
</prop>
30 <bean id=
"taxonSpellingDirectory" class=
"org.springmodules.lucene.index.support.FSDirectoryFactoryBean">
31 <property name=
"location" value=
"file:./target/test-classes/eu.etaxonomy.cdm.model.taxon.TaxonBase_spelling"/>
32 <property name=
"create" value=
"true"/>
35 <bean id=
"taxonSpellingIndex" class=
"org.springmodules.lucene.index.support.SimpleIndexFactoryBean">
36 <property name=
"directory" ref=
"taxonSpellingDirectory"/>
37 <property name=
"create" value=
"true"/>
38 <property name=
"analyzer">
39 <bean class=
"org.apache.lucene.analysis.SimpleAnalyzer"/>
43 <bean id=
"authenticationManager" class=
"org.springframework.security.authentication.ProviderManager">
44 <property name=
"providers">
46 <bean class=
"org.springframework.security.authentication.TestingAuthenticationProvider"/>
51 <bean id=
"passwordEncoder" class=
"org.springframework.security.authentication.encoding.Md5PasswordEncoder"/>
53 <bean id=
"saltSource" class=
"org.springframework.security.authentication.dao.ReflectionSaltSource">
54 <property name=
"userPropertyToUse" value=
"getUsername"/>