Search in sources :

Example 1 with Page

use of org.uberfire.client.workbench.widgets.multipage.Page in project drools-wb by kiegroup.

the class BaseGuidedDecisionTableEditorPresenterTest method testAddEditorPage.

@Test
public void testAddEditorPage() {
    final MultiPageEditor multiPage = mock(MultiPageEditor.class);
    final Page page = mock(Page.class);
    final int index = 1;
    doReturn(multiPage).when(presenter).getKieEditorWrapperMultiPage();
    presenter.addEditorPage(index, page);
    verify(multiPage).addPage(index, page);
}
Also used : MultiPageEditor(org.uberfire.client.workbench.widgets.multipage.MultiPageEditor) Page(org.uberfire.client.workbench.widgets.multipage.Page) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 MultiPageEditor (org.uberfire.client.workbench.widgets.multipage.MultiPageEditor)1 Page (org.uberfire.client.workbench.widgets.multipage.Page)1