-
Notifications
You must be signed in to change notification settings - Fork 1
/
beans-test.xml
35 lines (31 loc) · 1.83 KB
/
beans-test.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:oxm="http://www.springframework.org/schema/oxm" xmlns:util="http://www.springframework.org/schema/util"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<constructor-arg value="jdbc:hsqldb:mem:scheduler;hsqldb.tx=mvcc" />
<constructor-arg value="sa" />
<constructor-arg value="" />
</bean>
<jdbc:initialize-database enabled="true" data-source="dataSource">
<jdbc:script location="${script:classpath:/org/quartz/impl/jdbcjobstore/tables_hsqldb.sql}" />
</jdbc:initialize-database>
<bean id="jobExecutionRecordRepository" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.appng.core.repository.JobExecutionRecordRepository" />
</bean>
</beans>