Search in sources :

Example 1 with PlaceManager

use of org.uberfire.client.mvp.PlaceManager in project kie-wb-common by kiegroup.

the class NewWorkspaceProjectWizardTest method setUp.

@Before
public void setUp() throws Exception {
    preferences = new HashMap<>();
    ApplicationPreferences.setUp(preferences);
    pomDefaultOptions = new KiePOMDefaultOptions();
    PlaceManager placeManager = mock(PlaceManager.class);
    wizard = new NewWorkspaceProjectWizardExtended(new CallerMock<>(projectService), placeManager, notificationEventEvent, pomWizardPage, busyIndicatorView, conflictingRepositoriesPopup, moduleContext, view, pomDefaultOptions);
    when(moduleContext.getActiveOrganizationalUnit()).thenReturn(Optional.empty());
    when(moduleContext.getActiveWorkspaceProject()).thenReturn(Optional.empty());
    when(moduleContext.getActiveModule()).thenReturn(Optional.empty());
    when(moduleContext.getActiveRepositoryRoot()).thenReturn(Optional.empty());
    when(moduleContext.getActivePackage()).thenReturn(Optional.empty());
    wizard.setupPages();
}
Also used : PlaceManager(org.uberfire.client.mvp.PlaceManager) KiePOMDefaultOptions(org.kie.workbench.common.screens.projecteditor.client.util.KiePOMDefaultOptions) CallerMock(org.uberfire.mocks.CallerMock) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 KiePOMDefaultOptions (org.kie.workbench.common.screens.projecteditor.client.util.KiePOMDefaultOptions)1 PlaceManager (org.uberfire.client.mvp.PlaceManager)1 CallerMock (org.uberfire.mocks.CallerMock)1