(no commit message)
[cdmlib.git] / cdmlib-io / src / test / resources / eu / etaxonomy / cdm / applicationContext-test.xml
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">
9
10 <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
11
12 <bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
13
14 <bean id="hibernateProperties"
15 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
16 <property name="properties">
17 <props>
18 <prop key="hibernate.dialect">org.hibernate.dialect.HSQLCorrectedDialect</prop>
19 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
20 <prop key="hibernate.show_sql">false</prop>
21 <prop key="hibernate.format_sql">false</prop>
22 <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</prop>
23 <prop key="hibernate.search.default.indexBase">./target/test-classes</prop>
24 </props>
25 </property>
26 </bean>
27
28 <bean id="taxonSpellingDirectory" class="org.springmodules.lucene.index.support.FSDirectoryFactoryBean">
29 <property name="location" value="file:./target/test-classes/eu.etaxonomy.cdm.model.taxon.TaxonBase_spelling"/>
30 <property name="create" value="true"/>
31 </bean>
32
33 <bean id="taxonSpellingIndex" class="org.springmodules.lucene.index.support.SimpleIndexFactoryBean">
34 <property name="directory" ref="taxonSpellingDirectory"/>
35 <property name="create" value="true"/>
36 <property name="analyzer">
37 <bean class="org.apache.lucene.analysis.SimpleAnalyzer"/>
38 </property>
39 </bean>
40
41 <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
42 <property name="providers">
43 <list>
44 <bean class="org.springframework.security.providers.TestingAuthenticationProvider"/>
45 </list>
46 </property>
47 </bean>
48
49 <bean id="passwordEncoder" class="org.springframework.security.providers.encoding.Md5PasswordEncoder"/>
50
51 <bean id="saltSource" class="org.springframework.security.providers.dao.salt.ReflectionSaltSource">
52 <property name="userPropertyToUse" value="getUsername"/>
53 </bean>
54
55 </beans>