@Test public void testMakeOnSuccess() { final String url = "http: doCallRealMethod().when(presenter).makeOnSuccess(url); presenter.makeOnSuccess(url).execute(); verify(view).setupUrl(url); }
Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } @Inject  FooterPresenter(final View view); }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } @Inject  FooterPresenter(final View view); View getView(); void setup(final String url,
                      final String version); }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } @Inject  FooterPresenter(final View view); View getView(); void setup(final String url,
                      final String version);  }