SolverEditorPresenter extends KieEditor<SolverConfigModel> { @OnStartup public void onStartup(final ObservablePath path, final PlaceRequest place) { super.init(path, place, solverResourceType); } @Inject  SolverEditorPresenter(final SolverEditorView view,
                                 final SolverResourceType solverResourceType,
                                 final XMLViewer xmlViewer,
                                 final Event<NotificationEvent> notification,
                                 final Caller<SolverEditorService> solverService,
                                 final ValidationPopup validationPopup,
                                 final TranslationService translationService); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override Validator getRenameValidator(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); static final String EDITOR_ID; }
@Test public void load() throws Exception { presenter.onStartup(path, mock(PlaceRequest.class)); verify(view).setTerminationConfigModel(terminationConfigModel); verify(view).setScoreDirectorFactoryConfig(scoreDirectorFactoryConfig, path); }