use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin in project drools-wb by kiegroup.
the class PluginHandlerTest method testEditWhenColumnIsInvalid.
@Test
public void testEditWhenColumnIsInvalid() {
final ActionCol52 column = mock(ActionCol52.class);
final DecisionTableColumnPlugin plugin = mock(DecisionTableColumnPlugin.class);
doReturn(plugin).when(actionWorkItemSetFieldPlugin).get();
pluginHandler.edit(column);
verify(plugin, never()).setOriginalColumnConfig52(column);
verify(pluginHandler, never()).openWizard(plugin);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin in project drools-wb by kiegroup.
the class SummaryPageTest method pluginMock.
private DecisionTableColumnPlugin pluginMock(final String title) {
final DecisionTableColumnPlugin mock = mock(DecisionTableColumnPlugin.class);
when(mock.getTitle()).thenReturn(title);
return mock;
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin in project drools-wb by kiegroup.
the class SummaryPageTest method testOpenPageWhenTheWizardCanBeOpened.
@Test
public void testOpenPageWhenTheWizardCanBeOpened() {
final DecisionTableColumnPlugin plugin = pluginMock("plugin");
final String selectedItem = "page";
doReturn(plugin).when(page).findPluginByIdentifier(selectedItem);
doReturn(false).when(presenter).isReadOnly();
page.openPage(selectedItem);
verify(wizard).start(plugin);
}
Aggregations