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;
}
};
}
Aggregations