@Test public void onAddNewProviderTest() { presenter.setup(providerType, providers, provider); presenter.onAddNewProvider(); verify(addNewProviderEvent, times(1)).fire(new AddNewProviderEvent(providerType)); }
public void onAddNewProvider() { addNewProviderEvent.fire(new AddNewProviderEvent(providerType)); }
ProviderTypePresenter { public void onAddNewProvider() { addNewProviderEvent.fire(new AddNewProviderEvent(providerType)); } }
ProviderTypePresenter { public void onAddNewProvider() { addNewProviderEvent.fire(new AddNewProviderEvent(providerType)); } @Inject  ProviderTypePresenter(final View view,
                                 final Caller<ProviderTypeService> providerTypeService,
                                 final Event<AddNewProviderEvent> addNewProviderEvent,
                                 final Event<ProviderTypeListRefreshEvent> providerTypeListRefreshEvent,
                                 final Event<ProviderSelectedEvent> providerSelectedEvent); }
ProviderTypePresenter { public void onAddNewProvider() { addNewProviderEvent.fire(new AddNewProviderEvent(providerType)); } @Inject  ProviderTypePresenter(final View view,
                                 final Caller<ProviderTypeService> providerTypeService,
                                 final Event<AddNewProviderEvent> addNewProviderEvent,
                                 final Event<ProviderTypeListRefreshEvent> providerTypeListRefreshEvent,
                                 final Event<ProviderSelectedEvent> providerSelectedEvent); @PostConstruct void init(); View getView(); void setup(final ProviderType providerType,
                      final Collection<ProviderKey> providers,
                      final ProviderKey firstProviderKey); void onProviderSelect(@Observes final ProviderSelectedEvent event); void onAddNewProvider(); void onRemoveProviderType(); }
ProviderTypePresenter { public void onAddNewProvider() { addNewProviderEvent.fire(new AddNewProviderEvent(providerType)); } @Inject  ProviderTypePresenter(final View view,
                                 final Caller<ProviderTypeService> providerTypeService,
                                 final Event<AddNewProviderEvent> addNewProviderEvent,
                                 final Event<ProviderTypeListRefreshEvent> providerTypeListRefreshEvent,
                                 final Event<ProviderSelectedEvent> providerSelectedEvent); @PostConstruct void init(); View getView(); void setup(final ProviderType providerType,
                      final Collection<ProviderKey> providers,
                      final ProviderKey firstProviderKey); void onProviderSelect(@Observes final ProviderSelectedEvent event); void onAddNewProvider(); void onRemoveProviderType();  }