### Question:
EgovSchedulerRunner { public void start() { List<String> paths = new ArrayList<String>(); paths.add(contextPath); paths.add(schedulerJobPath); for (int index = 0; index < jobPaths.size(); index++) { paths.add(jobPaths.get(index)); } String[] locations = paths.toArray(new String[paths.size()]); ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(locations, false); context.refresh(); logger.warn("ApplicationContext Running Time: " + delayTime / 1000 + " seconds"); boolean mustContinue = false; long realDelayTIme = delayTime; if (delayTime < 0) { mustContinue = true; realDelayTIme = - 1 * delayTime; } if (mustContinue) { logger.info("Continue..."); while(!Thread.currentThread().isInterrupted()) { try { Thread.sleep(realDelayTIme); } catch (InterruptedException ie) { break; } } logger.info("Sleeping ends..."); context.close(); } else { try { logger.info("Sleeping Time: " + realDelayTIme / 1000 + " seconds"); Thread.sleep(realDelayTIme); logger.info("Sleeping ends..."); } catch (InterruptedException ie) { } context.close(); } } EgovSchedulerRunner(String contextPath, String schedulerJobPath, List<String> jobPaths, long delayTime); void setContextPath(String contextPath); void setSchedulerJobPath(String schedulerJobPath); void setJobPath(List<String> jobPaths); void setDelayTime(long delayTime); void start();  }### Answer:
@Test(timeout=50000) public void testNoRepeatStart() { EgovSchedulerRunner egovSchedulerRunner = new EgovSchedulerRunner( "/META-INF/spring/launch/context-scheduler.xml", "/META-INF/spring/launch/context-job.xml", new ArrayList<String>(), 30000); egovSchedulerRunner.start(); }
@Test(timeout=50000) public void testContinueStart() { ThreadRunner runner = new ThreadRunner(); runner.start(); try { Thread.sleep(40000); } catch (InterruptedException ie) { } runner.interrupt(); }