@Test public void testInit() { presenter.init(); verify(view, times(1)).setDataSetCount(5); }
@OnStartup public void init() { clientServices.getPublicDataSetDefs(dataSetDefs -> { dataSetCount = dataSetDefs.size(); view.setDataSetCount(dataSetCount); }); }
DataSetAuthoringHomePresenter { @OnStartup public void init() { clientServices.getPublicDataSetDefs(dataSetDefs -> { dataSetCount = dataSetDefs.size(); view.setDataSetCount(dataSetCount); }); } }
DataSetAuthoringHomePresenter { @OnStartup public void init() { clientServices.getPublicDataSetDefs(dataSetDefs -> { dataSetCount = dataSetDefs.size(); view.setDataSetCount(dataSetCount); }); } @Inject  DataSetAuthoringHomePresenter(final View view,
                                         final PlaceManager placeManager,
                                         final DataSetClientServices clientServices); }
DataSetAuthoringHomePresenter { @OnStartup public void init() { clientServices.getPublicDataSetDefs(dataSetDefs -> { dataSetCount = dataSetDefs.size(); view.setDataSetCount(dataSetCount); }); } @Inject  DataSetAuthoringHomePresenter(final View view,
                                         final PlaceManager placeManager,
                                         final DataSetClientServices clientServices); @OnStartup void init(); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView UberView<DataSetAuthoringHomePresenter> getView(); void newDataSet(); int getDataSetCount(); }
DataSetAuthoringHomePresenter { @OnStartup public void init() { clientServices.getPublicDataSetDefs(dataSetDefs -> { dataSetCount = dataSetDefs.size(); view.setDataSetCount(dataSetCount); }); } @Inject  DataSetAuthoringHomePresenter(final View view,
                                         final PlaceManager placeManager,
                                         final DataSetClientServices clientServices); @OnStartup void init(); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView UberView<DataSetAuthoringHomePresenter> getView(); void newDataSet(); int getDataSetCount();  }