Added tests for the 'scheduled-tasks' element parsing within the 'task' namespace.

This commit is contained in:
Mark Fisher
2009-06-01 21:40:45 +00:00
parent b9a3065c0c
commit e67aa6cbb2
2 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?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:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<task:scheduled-tasks scheduler="testScheduler">
<task:task ref="testBean" method="test" fixed-rate="1000"/>
<task:task ref="testBean" method="test" fixed-rate="2000"/>
<task:task ref="testBean" method="test" fixed-delay="3000"/>
<task:task ref="testBean" method="test" cron="*/4 * 9-17 * * MON-FRI"/>
</task:scheduled-tasks>
<task:scheduler id="testScheduler"/>
<bean id="testBean" class="org.springframework.scheduling.config.ScheduledTasksBeanDefinitionParserTests$TestBean"/>
</beans>