Examples of ScheduleExpression


Examples of javax.ejb.ScheduleExpression

   }     

  
   @Test(timeout = 5000)
   public void testRangeYearsA() throws ParseException {
       ScheduleExpression expr = new ScheduleExpression().year("2009-2013").month(2).dayOfMonth(29).hour(23).minute(1).second(0).start(new Date(0));;
       EJBCronTrigger trigger = new EJBCronTrigger(expr);
       assertEquals(new GregorianCalendar(2012, 1, 29, 23, 1,0).getTime(), trigger.getFireTimeAfter(new GregorianCalendar(2009, 1, 1, 23, 0, 0).getTime()));
      
   }
View Full Code Here
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.