use of org.kie.workbench.common.screens.projecteditor.client.util.KiePOMDefaultOptions 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();
}
use of org.kie.workbench.common.screens.projecteditor.client.util.KiePOMDefaultOptions in project kie-wb-common by kiegroup.
the class POMBuilderTest method setUp.
@Before
public void setUp() throws Exception {
HashMap<String, String> preferences = new HashMap<String, String>();
preferences.put(ApplicationPreferences.KIE_VERSION_PROPERTY_NAME, "1.2.3");
ApplicationPreferences.setUp(preferences);
pomDefaultOptions = new KiePOMDefaultOptions();
pomBuilder = new POMBuilder();
}
Aggregations