tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1134507 - /openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/timer/EJBCronTriggerTest.java
Date Sat, 11 Jun 2011 02:19:49 GMT
Author: genspring
Date: Sat Jun 11 02:19:48 2011
New Revision: 1134507

URL: http://svn.apache.org/viewvc?rev=1134507&view=rev
Log:
adding a test case for BothDayOfMonthAndDayOfWeek,  it's commented out because it's not passing
right now.

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/timer/EJBCronTriggerTest.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/timer/EJBCronTriggerTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/timer/EJBCronTriggerTest.java?rev=1134507&r1=1134506&r2=1134507&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/timer/EJBCronTriggerTest.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/timer/EJBCronTriggerTest.java
Sat Jun 11 02:19:48 2011
@@ -156,6 +156,15 @@ public class EJBCronTriggerTest {
        EJBCronTrigger trigger = new EJBCronTrigger(expr);
        assertEquals(new GregorianCalendar(2011, 4, 18, 23, 59, 59).getTime(), trigger.getFireTimeAfter(new
GregorianCalendar(2011, 4, 18, 23, 59, 58).getTime()));
    }
+   
+/*   @Test(timeout = 5000000)
+   public void testBothDayOfMonthAndDayOfWeekE() throws ParseException {
+       ScheduleExpression expr = new ScheduleExpression().year(2011).dayOfMonth("19").dayOfWeek("3").hour(23).minute(59).second(58).start(new
GregorianCalendar(2011, 4, 18, 23, 59, 58).getTime());
+       EJBCronTrigger trigger = new EJBCronTrigger(expr);
+       assertEquals(new GregorianCalendar(2011, 4, 19, 23, 59, 58).getTime(), trigger.getFireTimeAfter(new
GregorianCalendar(2011, 4, 18, 23, 59, 59).getTime()));
+       
+       System.out.println(trigger.getNextFireTime());
+   }   */  
 
 	@Test(timeout = 5000)
     public void testLastDayOfMonthA() throws ParseException {



Mime
View raw message