use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testNewPatternWrapperWhenPatternIsNotFound.
@Test
public void testNewPatternWrapperWhenPatternIsNotFound() throws Exception {
final Set<PatternWrapper> actionWrappers = new HashSet<>();
final ActionWrapper actionWrapper = mockActionWrapper("boundName", "factType");
doReturn(actionWrappers).when(plugin).getPatterns();
final PatternWrapper patternWrapper = plugin.newPatternWrapper(actionWrapper);
assertEquals(actionWrapper.getBoundName(), patternWrapper.getBoundName());
assertEquals(actionWrapper.getFactType(), patternWrapper.getFactType());
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testGetHeader.
@Test
public void testGetHeader() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.getHeader();
verify(actionWrapper).getHeader();
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testSetHideColumn.
@Test
public void testSetHideColumn() {
final boolean hideColumn = false;
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.setHideColumn(hideColumn);
verify(actionWrapper).setHideColumn(hideColumn);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testGetValueList.
@Test
public void testGetValueList() {
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
doReturn(actionWrapper).when(plugin).editingWrapper();
plugin.getValueList();
verify(actionWrapper).getValueList();
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.ActionWrapper in project drools-wb by kiegroup.
the class ActionSetFactPluginTest method testGenerateColumn.
@Test
public void testGenerateColumn() {
final ActionCol52 actionCol52 = mock(ActionCol52.class);
final ActionWrapper actionWrapper = mock(ActionWrapper.class);
doReturn(actionCol52).when(actionWrapper).getActionCol52();
doReturn(actionWrapper).when(plugin).editingWrapper();
final Boolean success = plugin.generateColumn();
assertTrue(success);
verify(presenter).appendColumn(actionCol52);
}
Aggregations