Search in sources :

Example 1 with ObservablePathImpl

use of org.uberfire.backend.vfs.impl.ObservablePathImpl in project drools-wb by kiegroup.

the class GuidedDecisionTableGraphEditorPresenterTest method getPresenter.

@Override
protected GuidedDecisionTableGraphEditorPresenter getPresenter() {
    return new GuidedDecisionTableGraphEditorPresenter(view, dtServiceCaller, dtGraphServiceCaller, moduleServiceCaller, graphSaveAndRenameServiceCaller, notification, saveInProgressEvent, decisionTableSelectedEvent, validationPopup, dtGraphResourceType, editMenuBuilder, viewMenuBuilder, insertMenuBuilder, radarMenuBuilder, modeller, helper, beanManager, placeManager, lockManager, columnsPage, saveAndRenameCommandBuilder, alertsButtonMenuItemBuilder) {

        {
            workbenchContext = GuidedDecisionTableGraphEditorPresenterTest.this.workbenchContext;
            projectController = GuidedDecisionTableGraphEditorPresenterTest.this.projectController;
        }

        @Override
        protected Command getSaveAndRenameCommand() {
            return mock(Command.class);
        }

        @Override
        PathPlaceRequest getPathPlaceRequest(final Path path) {
            // Avoid use of IOC.getBeanManager().lookupBean(..) in PathPlaceRequest for Unit Tests
            final PathPlaceRequest pathPlaceRequest = new PathPlaceRequest(path) {

                @Override
                protected ObservablePath createObservablePath(final Path path) {
                    final ObservablePath op = new ObservablePathImpl().wrap(path);
                    return op;
                }
            };
            return pathPlaceRequest;
        }
    };
}
Also used : ObservablePath(org.uberfire.backend.vfs.ObservablePath) Path(org.uberfire.backend.vfs.Path) ObservablePathImpl(org.uberfire.backend.vfs.impl.ObservablePathImpl) PathPlaceRequest(org.uberfire.mvp.impl.PathPlaceRequest) ObservablePath(org.uberfire.backend.vfs.ObservablePath)

Aggregations

ObservablePath (org.uberfire.backend.vfs.ObservablePath)1 Path (org.uberfire.backend.vfs.Path)1 ObservablePathImpl (org.uberfire.backend.vfs.impl.ObservablePathImpl)1 PathPlaceRequest (org.uberfire.mvp.impl.PathPlaceRequest)1