@Test public void testOnStartup() { presenter.onStartup(path, place); verify(enumService, times(1)).loadContent(path); verify(view, times(1)).setContent(enumsArgumentCaptor.capture()); verify(view, times(1)).hideBusyIndicator(); final List<EnumRow> enums = enumsArgumentCaptor.getValue(); assertNotNull(enums); assertEquals(1, enums.size()); final EnumRow enumRow = enums.get(0); assertNotNull(enumRow); assertEquals("Fact", enumRow.getFactName()); assertEquals("field", enumRow.getFieldName()); assertEquals("['a', 'b']", enumRow.getContext()); }
@OnStartup public void onStartup(final ObservablePath path, final PlaceRequest place) { super.init(path, place, type); }
EnumEditorPresenter extends KieEditor<String> { @OnStartup public void onStartup(final ObservablePath path, final PlaceRequest place) { super.init(path, place, type); } }
EnumEditorPresenter extends KieEditor<String> { @OnStartup public void onStartup(final ObservablePath path, final PlaceRequest place) { super.init(path, place, type); } EnumEditorPresenter(); @Inject  EnumEditorPresenter(final EnumEditorView baseView,
                               final Caller<EnumService> enumService,
                               final EnumResourceType type,
                               final ValidationPopup validationPopup); }
EnumEditorPresenter extends KieEditor<String> { @OnStartup public void onStartup(final ObservablePath path, final PlaceRequest place) { super.init(path, place, type); } EnumEditorPresenter(); @Inject  EnumEditorPresenter(final EnumEditorView baseView,
                               final Caller<EnumService> enumService,
                               final EnumResourceType type,
                               final ValidationPopup validationPopup); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); }
EnumEditorPresenter extends KieEditor<String> { @OnStartup public void onStartup(final ObservablePath path, final PlaceRequest place) { super.init(path, place, type); } EnumEditorPresenter(); @Inject  EnumEditorPresenter(final EnumEditorView baseView,
                               final Caller<EnumService> enumService,
                               final EnumResourceType type,
                               final ValidationPopup validationPopup); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); static final String EDITOR_ID; }