File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed 
microservices-transactional-outbox/src/test/java/com/iluwatar/transactionaloutbox Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 2525package  com .iluwatar .transactionaloutbox ;
2626
2727import  static  org .junit .jupiter .api .Assertions .assertEquals ;
28- import  static  org .junit .jupiter .api .Assertions .assertFalse ;
2928import  static  org .junit .jupiter .api .Assertions .assertTrue ;
3029import  static  org .mockito .ArgumentMatchers .any ;
3130import  static  org .mockito .ArgumentMatchers .anyString ;
4140import  jakarta .persistence .LockModeType ;
4241import  jakarta .persistence .TypedQuery ;
4342import  java .util .Collections ;
44- import  java .util .concurrent .TimeUnit ;
4543import  org .junit .jupiter .api .BeforeEach ;
4644import  org .junit .jupiter .api .Test ;
4745import  org .junit .jupiter .api .extension .ExtendWith ;
@@ -176,18 +174,4 @@ void shouldRollbackTransactionWhenRepositoryFails() {
176174    assertEquals (1 , eventPoller .getFailedEventsCount ());
177175    assertEquals (0 , eventPoller .getProcessedEventsCount ());
178176  }
179- 
180-   @ Test 
181-   void  shouldStartAndStopCorrectly () throws  Exception  {
182-     eventPoller .start ();
183- 
184-     assertFalse (eventPoller .getScheduler ().isShutdown ());
185-     assertFalse (eventPoller .getScheduler ().isTerminated ());
186- 
187-     eventPoller .stop ();
188- 
189-     assertTrue (eventPoller .getScheduler ().isShutdown ());
190-     assertTrue (eventPoller .getScheduler ().awaitTermination (1 , TimeUnit .SECONDS ));
191-     assertTrue (eventPoller .getScheduler ().isTerminated ());
192-   }
193177}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments