use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.ActionWorkItemSetFieldPlugin in project drools-wb by kiegroup.
the class PluginHandlerTest method testEditWhenColumnIsAnActionWorkItemInsertFactCol52.
@Test
public void testEditWhenColumnIsAnActionWorkItemInsertFactCol52() {
final ActionWorkItemInsertFactCol52 originalColumn = mock(ActionWorkItemInsertFactCol52.class);
final ActionWorkItemSetFieldPlugin plugin = spy(new ActionWorkItemSetFieldPlugin(patternPage, fieldPage, additionalInfoPage, workItemPage, event, translationService));
doReturn(wizard).when(wizardManagedInstance).get();
doReturn(plugin).when(actionWorkItemSetFieldPlugin).get();
pluginHandler.edit(originalColumn);
verify(plugin).setOriginalColumnConfig52(originalColumn);
verify(pluginHandler).openWizard(plugin);
verify(wizard).start(plugin);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.ActionWorkItemSetFieldPlugin in project drools-wb by kiegroup.
the class PluginHandlerTest method testEditWhenColumnIsAnActionWorkItemSetFieldCol52.
@Test
public void testEditWhenColumnIsAnActionWorkItemSetFieldCol52() {
final ActionWorkItemSetFieldCol52 originalColumn = mock(ActionWorkItemSetFieldCol52.class);
final ActionWorkItemSetFieldPlugin plugin = spy(new ActionWorkItemSetFieldPlugin(patternPage, fieldPage, additionalInfoPage, workItemPage, event, translationService));
doReturn(wizard).when(wizardManagedInstance).get();
doReturn(plugin).when(actionWorkItemSetFieldPlugin).get();
pluginHandler.edit(originalColumn);
verify(plugin).setOriginalColumnConfig52(originalColumn);
verify(pluginHandler).openWizard(plugin);
verify(wizard).start(plugin);
}
Aggregations