@Test public void setupTest() { doReturn("parsedText").when(shortcutHelper).getPart(anyString(), anyInt()); presenter.setup("text", 1); verify(view).setText("parsedText"); }
public void setup(final String text, final int part) { view.setText(shortcutHelper.getPart(text, part)); }
ShortcutSubHeadingTextPresenter { public void setup(final String text, final int part) { view.setText(shortcutHelper.getPart(text, part)); } }
ShortcutSubHeadingTextPresenter { public void setup(final String text, final int part) { view.setText(shortcutHelper.getPart(text, part)); } @Inject  ShortcutSubHeadingTextPresenter(final View view,
                                           final ShortcutHelper shortcutHelper); }
ShortcutSubHeadingTextPresenter { public void setup(final String text, final int part) { view.setText(shortcutHelper.getPart(text, part)); } @Inject  ShortcutSubHeadingTextPresenter(final View view,
                                           final ShortcutHelper shortcutHelper); @PostConstruct void init(); void setup(final String text,
                      final int part); View getView(); }
ShortcutSubHeadingTextPresenter { public void setup(final String text, final int part) { view.setText(shortcutHelper.getPart(text, part)); } @Inject  ShortcutSubHeadingTextPresenter(final View view,
                                           final ShortcutHelper shortcutHelper); @PostConstruct void init(); void setup(final String text,
                      final int part); View getView();  }