@Test public void testInit() { final HTMLElement htmlElement = mock(HTMLElement.class); when(gridComponent.getElement()).thenReturn(htmlElement); pagePresenter.init(); verify(view).init(pagePresenter); verify(view).setGrid(htmlElement); verify(modal).init(pagePresenter); }
@PostConstruct public void init() { getView().init(this); getView().setGrid(getGridComponent().getElement()); getModal().init(this); }
IncludedModelsPagePresenter { @PostConstruct public void init() { getView().init(this); getView().setGrid(getGridComponent().getElement()); getModal().init(this); } }
IncludedModelsPagePresenter { @PostConstruct public void init() { getView().init(this); getView().setGrid(getGridComponent().getElement()); getModal().init(this); } @Inject  IncludedModelsPagePresenter(final View view,
                                       final DMNCardsGridComponent gridComponent,
                                       final IncludedModelModal modal); }
IncludedModelsPagePresenter { @PostConstruct public void init() { getView().init(this); getView().setGrid(getGridComponent().getElement()); getModal().init(this); } @Inject  IncludedModelsPagePresenter(final View view,
                                       final DMNCardsGridComponent gridComponent,
                                       final IncludedModelModal modal); @PostConstruct void init(); HTMLElement getElement(); void refresh(); }
IncludedModelsPagePresenter { @PostConstruct public void init() { getView().init(this); getView().setGrid(getGridComponent().getElement()); getModal().init(this); } @Inject  IncludedModelsPagePresenter(final View view,
                                       final DMNCardsGridComponent gridComponent,
                                       final IncludedModelModal modal); @PostConstruct void init(); HTMLElement getElement(); void refresh();  }