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