Code example for EventBus

Methods: post

0
  public void testStateChange() throws Exception {
    updater.instanceChangedState(TASK);
 
    control.replay(); 
 
    eventBus.post(TaskStateChange.initialized(TASK));
  } 
 
  @Test
  public void testDeleted() throws Exception {
    updater.instanceDeleted(INSTANCE_A);
 
    control.replay(); 
 
    eventBus.post(new TasksDeleted(ImmutableSet.of(TASK)));
  } 
 
  @Test
  public void testSchedulerStartup() throws Exception {
    updater.systemResume();
Experience pair programming with AI  Get Codota for Java