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