Browse Source

Fixed job scheduling data test for Quartz 1.8

pull/263/head
Juergen Hoeller 12 years ago
parent
commit
bea990196d
  1. 1
      spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java
  2. 23
      spring-context-support/src/test/resources/org/springframework/scheduling/quartz/job-scheduling-data.xml

1
spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java

@ -876,7 +876,6 @@ public class QuartzSupportTests { @@ -876,7 +876,6 @@ public class QuartzSupportTests {
SchedulerFactoryBean bean = new SchedulerFactoryBean();
bean.setJobFactory(new SpringBeanJobFactory());
bean.setJobSchedulingDataLocation("org/springframework/scheduling/quartz/job-scheduling-data.xml");
bean.setResourceLoader(new FileSystemResourceLoader());
bean.afterPropertiesSet();
bean.start();

23
spring-context-support/src/test/resources/org/springframework/scheduling/quartz/job-scheduling-data.xml

@ -1,11 +1,10 @@ @@ -1,11 +1,10 @@
<quartz xmlns="http://www.opensymphony.com/quartz/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opensymphony.com/quartz/JobSchedulingData
http://www.opensymphony.com/quartz/xml/job_scheduling_data_1_5.xsd"
version="1.5">
<job>
<job-detail>
<?xml version='1.0' encoding='utf-8'?>
<job-scheduling-data xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_1_8.xsd"
version="1.8">
<schedule>
<job>
<name>myJob</name>
<group>myGroup</group>
<job-class>org.springframework.scheduling.quartz.QuartzSupportTests$DummyJob</job-class>
@ -15,15 +14,17 @@ @@ -15,15 +14,17 @@
<value>10</value>
</entry>
</job-data-map>
</job-detail>
</job>
<trigger>
<simple>
<name>myTrigger</name>
<group>myGroup</group>
<job-name>myJob</job-name>
<job-group>myGroup</job-group>
<repeat-count>1</repeat-count>
<repeat-interval>500</repeat-interval>
</simple>
</trigger>
</job>
</schedule>
</quartz>
</job-scheduling-data>

Loading…
Cancel
Save