use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testNewActionWrapperWhenColumnIsAnActionInsertFactCol52.
@Test
public void testNewActionWrapperWhenColumnIsAnActionInsertFactCol52() throws Exception {
final GuidedDecisionTable52 model = mock(GuidedDecisionTable52.class);
when(model.getTableFormat()).thenReturn(GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY);
when(presenter.getModel()).thenReturn(model);
final ActionWrapper wrapper = plugin.newActionWrapper(mock(ActionInsertFactCol52.class));
assertTrue(wrapper instanceof ActionInsertFactWrapper);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testSetUpdate.
@Test
public void testSetUpdate() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
final boolean update = false;
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.setUpdate(update);
verify(actionWrapper).setUpdate(update);
}
Aggregations