djencks     2005/02/14 14:29:51

  Modified:    modules/core/src/test/org/openejb/timer
                        TimerServiceImplTest.java
  Log:

  timer operation availaibility work, test missed in previous commit
  
  Revision  Changes    Path
  1.7       +5 -4      
openejb/modules/core/src/test/org/openejb/timer/TimerServiceImplTest.java
  
  Index: TimerServiceImplTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/timer/TimerServiceImplTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TimerServiceImplTest.java 1 Feb 2005 22:26:10 -0000       1.6
  +++ TimerServiceImplTest.java 14 Feb 2005 19:29:51 -0000      1.7
  @@ -94,7 +94,7 @@
   
       private MockInterceptor interceptor;
   
  -    private BasicTimerService timerService;
  +    private BasicTimerServiceImpl timerService;
   
       protected TransactionContextManager transactionContextManager;
       protected ExecutorTaskFactory executableWorkFactory;
  @@ -115,7 +115,7 @@
           TransactionContext.setContext(null);
   
           interceptor = new MockInterceptor();
  -        timerService = new BasicTimerService(new InvocationFactory(), 
interceptor, threadPooledTimer, key, kernelName, timerSourceName, 
transactionContextManager, classLoader);
  +        timerService = new BasicTimerServiceImpl(new InvocationFactory(), 
interceptor, threadPooledTimer, key, kernelName, timerSourceName, 
transactionContextManager, classLoader);
       }
   
       protected void tearDown() throws Exception {
  @@ -160,7 +160,7 @@
   
           threadPooledTimer.doStop();
           threadPooledTimer.doStart();
  -        timerService = new BasicTimerService(new InvocationFactory(), 
interceptor, threadPooledTimer, key, kernelName, timerSourceName, 
transactionContextManager, classLoader);
  +        timerService = new BasicTimerServiceImpl(new InvocationFactory(), 
interceptor, threadPooledTimer, key, kernelName, timerSourceName, 
transactionContextManager, classLoader);
           timerService.doStart();
   
           Collection timers2 = timerService.getTimers(id);
  @@ -173,6 +173,7 @@
           Timer timer = timerService.createTimer(id, 0L, DELAY, userKey);
           Thread.sleep(SLOP + DELAY);
           assertEquals(2, interceptor.getCount());
  +        TimerState.setTimerState(true);
           timer.cancel();
           Thread.sleep(SLOP + DELAY);
           assertEquals(2, interceptor.getCount());
  
  
  

Reply via email to