@Test public void testAddTitle() { TitlePresenter titlePresenter = mock( TitlePresenter.class ); presenter.addTitle( titlePresenter ); verify( titlePresenter ).getView(); verify( view ).add( titlePresenter.getView() ); }
public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); }
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); } }
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); } @Inject  CardPresenter( final View view ); }
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.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 addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.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 );  }