@Test public void testAddFooter() { FooterPresenter footerPresenter = mock( FooterPresenter.class ); presenter.addFooter( footerPresenter ); verify( footerPresenter ).getView(); verify( view ).add( footerPresenter.getView() ); }
public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject  CardPresenter( final View view ); }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject  CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter( final FooterPresenter footerPresenter ); }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject  CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter( final FooterPresenter footerPresenter );  }