Search in sources :

Example 1 with SectionView

use of org.kie.workbench.common.screens.library.client.settings.util.sections.SectionView in project kie-wb-common by kiegroup.

the class SettingsScreenPresenterTest method createSectionMock.

private Section<SpaceScreenModel> createSectionMock() {
    final Section<SpaceScreenModel> section = mock(Section.class);
    doReturn(mock(MenuItem.class)).when(section).getMenuItem();
    doReturn(promises.resolve()).when(section).setup(any());
    doReturn(promises.resolve()).when(section).save(any(), any());
    final SectionView view = mock(SectionView.class);
    doReturn("title").when(view).getTitle();
    doReturn(view).when(section).getView();
    return section;
}
Also used : SectionView(org.kie.workbench.common.screens.library.client.settings.util.sections.SectionView) MenuItem(org.kie.workbench.common.screens.library.client.settings.util.sections.MenuItem) SpaceScreenModel(org.kie.workbench.common.screens.library.api.settings.SpaceScreenModel)

Aggregations

SpaceScreenModel (org.kie.workbench.common.screens.library.api.settings.SpaceScreenModel)1 MenuItem (org.kie.workbench.common.screens.library.client.settings.util.sections.MenuItem)1 SectionView (org.kie.workbench.common.screens.library.client.settings.util.sections.SectionView)1