fixed #815 添加一个Quartz的集成类及testcase

Signed-off-by: wendal <wendal1985@gmail.com>
This commit is contained in:
wendal
2015-05-07 12:10:23 +08:00
parent 9717e17a3c
commit c30536c061
4 changed files with 81 additions and 0 deletions
@@ -0,0 +1,31 @@
package com.alibaba.druid.bvt.quartz;
import java.util.Properties;
import junit.framework.TestCase;
import org.quartz.Scheduler;
import org.quartz.impl.StdSchedulerFactory;
public class QuartzTest extends TestCase {
StdSchedulerFactory factory;
Scheduler scheduler;
@Override
protected void setUp() throws Exception {
Properties props = new Properties();
props.load(getClass().getClassLoader().getResourceAsStream("bvt/quartz/quartz.properties"));
factory = new StdSchedulerFactory(props);
scheduler = factory.getScheduler();
}
protected void tearDown() throws Exception {
scheduler.shutdown();
}
public void testQuartz() throws Exception {
scheduler.start();
}
}