use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testEditingCol.
@Test
public void testEditingCol() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.editingCol();
verify(actionWrapper).getActionCol52();
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testSetHeader.
@Test
public void testSetHeader() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
final String header = "header";
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.setHeader(header);
verify(actionWrapper).setHeader(header);
verify(plugin).fireChangeEvent(additionalInfoPage);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testSetInsertLogical.
@Test
public void testSetInsertLogical() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
final boolean insertLogical = false;
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.setInsertLogical(insertLogical);
verify(actionWrapper).setInsertLogical(insertLogical);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testNewActionWrapperWhenColumnIsAnActionSetFactWrapper.
@Test
public void testNewActionWrapperWhenColumnIsAnActionSetFactWrapper() 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(ActionSetFieldCol52.class));
assertTrue(wrapper instanceof ActionSetFactWrapper);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testIsHideColumn.
@Test
public void testIsHideColumn() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.isHideColumn();
verify(actionWrapper).isHideColumn();
}
Aggregations