Search in sources :

Example 1 with KiePOMDefaultOptions

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

Example 2 with KiePOMDefaultOptions

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();
}
Also used : HashMap(java.util.HashMap) KiePOMDefaultOptions(org.kie.workbench.common.screens.projecteditor.client.util.KiePOMDefaultOptions) Before(org.junit.Before)

Aggregations

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