BAEL-639: Guide to Guava's EventBus Tests - adding sleep
This commit is contained in:
		
							parent
							
								
									9135c6073e
								
							
						
					
					
						commit
						f7ef3766cb
					
				| @ -44,10 +44,12 @@ public class GuavaEventBusTest { | ||||
|     } | ||||
| 
 | ||||
|     @Test | ||||
|     public void givenUnSubscribedEvent_whenEventHandledByDeadEvent_thenSuccess() { | ||||
|     public void givenUnSubscribedEvent_whenEventHandledByDeadEvent_thenSuccess() throws InterruptedException { | ||||
|         listener.resetEventsHandled(); | ||||
| 
 | ||||
|         eventBus.post(12345); | ||||
|         Thread.sleep(1000); | ||||
| 
 | ||||
|         assertEquals(1, listener.getEventsHandled()); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user