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