Search in sources :

Example 1 with ActionWorkItemSetFieldPlugin

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);
}
Also used : ActionWorkItemSetFieldPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.ActionWorkItemSetFieldPlugin) ActionWorkItemInsertFactCol52(org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemInsertFactCol52) Test(org.junit.Test)

Example 2 with ActionWorkItemSetFieldPlugin

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);
}
Also used : ActionWorkItemSetFieldPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.ActionWorkItemSetFieldPlugin) ActionWorkItemSetFieldCol52(org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52) Test(org.junit.Test)

Aggregations

ActionWorkItemSetFieldPlugin (org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.ActionWorkItemSetFieldPlugin)2 Test (org.junit.Test)2 ActionWorkItemInsertFactCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemInsertFactCol52)1 ActionWorkItemSetFieldCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52)1