@Test public void testNewTemplate() { presenter.newTemplate(); verify( addNewServerTemplateEvent ).fire( any( AddNewServerTemplate.class ) ); }
public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); }
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } }
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } @Inject  ServerNavigationPresenter(final Logger logger,
                                     final View view,
                                     final Event<AddNewServerTemplate> addNewServerTemplateEvent,
                                     final Event<ServerTemplateListRefresh> serverTemplateListRefreshEvent,
                                     final Event<ServerTemplateSelected> serverTemplateSelectedEvent); }
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } @Inject  ServerNavigationPresenter(final Logger logger,
                                     final View view,
                                     final Event<AddNewServerTemplate> addNewServerTemplateEvent,
                                     final Event<ServerTemplateListRefresh> serverTemplateListRefreshEvent,
                                     final Event<ServerTemplateSelected> serverTemplateSelectedEvent); @PostConstruct void init(); View getView(); void setup(final ServerTemplateKey firstTemplate,
                      final Collection<ServerTemplateKey> serverTemplateKeys); void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected); void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated); void select(final String id); void clear(); void refresh(); void newTemplate(); }
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } @Inject  ServerNavigationPresenter(final Logger logger,
                                     final View view,
                                     final Event<AddNewServerTemplate> addNewServerTemplateEvent,
                                     final Event<ServerTemplateListRefresh> serverTemplateListRefreshEvent,
                                     final Event<ServerTemplateSelected> serverTemplateSelectedEvent); @PostConstruct void init(); View getView(); void setup(final ServerTemplateKey firstTemplate,
                      final Collection<ServerTemplateKey> serverTemplateKeys); void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected); void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated); void select(final String id); void clear(); void refresh(); void newTemplate();  }