@Test public void testAddBody() { BodyPresenter bodyPresenter = mock( BodyPresenter.class ); presenter.addBody( bodyPresenter ); verify( bodyPresenter ).getView(); verify( view ).add( bodyPresenter.getView() ); }
public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); }
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); } }
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); } @Inject  CardPresenter( final View view ); }
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.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 addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.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 );  }