Added tests for the 'scheduled-tasks' element parsing within the 'task' namespace.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user