@Test public void testItemClicked() throws Exception { final Store store = mock(Store.class); Dispatcher.getInstance().registerStore(store); final MenuView view = new MenuView(); view.itemClicked(MenuItem.PRODUCTS); verify(store, times(2)).onAction(any(Action.class)); }
public void itemClicked(MenuItem item) { Dispatcher.getInstance().menuItemSelected(item); }
MenuView implements View { public void itemClicked(MenuItem item) { Dispatcher.getInstance().menuItemSelected(item); } }
MenuView implements View { public void itemClicked(MenuItem item) { Dispatcher.getInstance().menuItemSelected(item); }  }
MenuView implements View { public void itemClicked(MenuItem item) { Dispatcher.getInstance().menuItemSelected(item); }  @Override void storeChanged(Store store); @Override void render(); void itemClicked(MenuItem item); }
MenuView implements View { public void itemClicked(MenuItem item) { Dispatcher.getInstance().menuItemSelected(item); }  @Override void storeChanged(Store store); @Override void render(); void itemClicked(MenuItem item);  }