Package com.jd.ofc.schedule

Source Code of com.jd.ofc.schedule.TestRun

package com.jd.ofc.schedule;

import org.junit.Test;

import com.firefly.schedule.common.Config;
import com.firefly.schedule.core.Schedule;

public class TestRun {
 
  @Test
  public void run(){
    Config config = new Config();
    config.setOpenHeart(true);
    Schedule schedule = new TestSchedule();
    schedule.setConfig(config);
    schedule.start();
    try {
      Thread.sleep(100000000);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
}
TOP

Related Classes of com.jd.ofc.schedule.TestRun

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.