Search in sources :

Example 1 with OverviewWidgetPresenter

use of org.kie.workbench.common.widgets.metadata.client.widget.OverviewWidgetPresenter in project drools-wb by kiegroup.

the class GuidedDecisionTableGraphEditorPresenterTest method testIsOverviewWidgetDirtyWhenItIsDirty.

@Test
public void testIsOverviewWidgetDirtyWhenItIsDirty() {
    final OverviewWidgetPresenter overviewWidget = mock(OverviewWidgetPresenter.class);
    doReturn(true).when(overviewWidget).isDirty();
    doReturn(overviewWidget).when(presenter).getOverviewWidget();
    final boolean isDirty = presenter.isOverviewWidgetDirty();
    assertTrue(isDirty);
}
Also used : OverviewWidgetPresenter(org.kie.workbench.common.widgets.metadata.client.widget.OverviewWidgetPresenter) Test(org.junit.Test)

Example 2 with OverviewWidgetPresenter

use of org.kie.workbench.common.widgets.metadata.client.widget.OverviewWidgetPresenter in project drools-wb by kiegroup.

the class GuidedDecisionTableGraphEditorPresenterTest method testIsOverviewWidgetDirtyWhenItIsNotDirty.

@Test
public void testIsOverviewWidgetDirtyWhenItIsNotDirty() {
    final OverviewWidgetPresenter overviewWidget = mock(OverviewWidgetPresenter.class);
    doReturn(false).when(overviewWidget).isDirty();
    doReturn(overviewWidget).when(presenter).getOverviewWidget();
    final boolean isDirty = presenter.isOverviewWidgetDirty();
    assertFalse(isDirty);
}
Also used : OverviewWidgetPresenter(org.kie.workbench.common.widgets.metadata.client.widget.OverviewWidgetPresenter) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 OverviewWidgetPresenter (org.kie.workbench.common.widgets.metadata.client.widget.OverviewWidgetPresenter)2