title: what exactly runs the quarz cron job in spring?
body: <p>good people. i'm trying to use quartz with spring in a very simple project managed by maven.So in the module in which the mycron job class is i included a java main class to it just to see the job output some text and new date.
  here is my spring config:</p>
  
  <pre><code>&lt;!--Scheduling--&gt;
  &lt;!--Job--&gt;
      &lt;bean id="projUpdater" class="org.springframework.scheduling.quartz.JobDetailBean"&gt;
          &lt;property name="jobClass" value="com.myproject.utilscheduling.quartz.ProjUpdaterCronImpl" /&gt;
      &lt;/bean&gt;
  &lt;!---End of Jobs--&gt;
  &lt;!--Triggers--&gt;
      &lt;bean id="regularUpdateTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"&gt;
          &lt;property name="jobDetail" ref="projUpdater"/&gt;
          &lt;property name="cronExpression" value="30 1 * * * ?"/&gt;
      &lt;/bean&gt;
  &lt;!--End ofTriggers--&gt;
  &lt;!--Scheduler Factory--&gt;
  &lt;bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt;
      &lt;property name="triggers"&gt;
          &lt;list&gt;
              &lt;ref bean="regularUpdateTrigger"/&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;!--End of Scheduler Factory--&gt;
  &lt;!--End of Scheduling--&gt;
  </code></pre>
  
  <p>and here is the job class </p>
  
  <pre><code>public class ProjUpdaterCronImpl extends QuartzJobBean {
  
  public ProjUpdaterCronImpl() {
  }
  
  
  protected void executeInternal (JobExecutionContext ctx) throws JobExecutionException {
      System.out.println("[JOB] " + new Date() + "hello");
  }
  
  }
  </code></pre>
  
  <p>here is main class</p>
  
  <pre><code>public class NewMain {
  
  /**
   * @param args the command line arguments
   */
   public static void main(String[] args) {
      System.out.println("starting job");
   }
  
  }
  </code></pre>
  
  <p>so in my understanding the job will be started after 1mn30s and posted on the console.I'm wrong.i faced couple or errors that i solve so i can safely assume that there is no error in in spring configuration file since there is none when building and running.So what did i do wrong or what did i forget to do?</p>
  
  <p>second concern since i'm forcing myself to go the test driven way how will i possibly test a the cron job class?
  thanks for reading</p>