@@ -0,0 +1,828 @@
+package quartz.config;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0A/**%0A * @author ameryhan%0A * @date 2019/7/24 18:26%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(classes = %7B JobSchedulerApplication.class %7D)%0Apublic class LaunchJobResolverTest %7B%0A    @Autowired%0A    private LaunchJobResolver launchJobResolver;%0A%0A    @Test%0A    public void test() %7B%0A        //%E7%8F%BE%E5%9C%A8ut%E6%9C%89%E5%95%8F%E9%A1%8C%EF%BC%8C%E4%BD%86%E6%98%AFrun spring boot main %E5%87%BD%E6%95%B8%E6%B2%92%E6%9C%89%E5%95%8F%E9%A1%8C%0A        try %7B%0A            launchJobResolver.launchWithCron();%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace();%0A        %7D%0A        Assert.assertTrue(1 == 1);%0A    %7D%0A%7D%0A

修改spring quartz