Search in sources :

Example 1 with BRLConditionColumnPlugin

use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLConditionColumnPlugin in project drools-wb by kiegroup.

the class PluginHandler method edit.

public void edit(final BRLConditionColumn column) {
    final BRLConditionColumnPlugin plugin = brlConditionColumnPlugin.get();
    plugin.setOriginalColumnConfig52(column);
    openWizard(plugin);
}
Also used : BRLConditionColumnPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLConditionColumnPlugin)

Example 2 with BRLConditionColumnPlugin

use of org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLConditionColumnPlugin in project drools-wb by kiegroup.

the class PluginHandlerTest method testEditBrlConditionColumn.

private void testEditBrlConditionColumn(BRLConditionColumn originalColumn) {
    final BRLConditionColumnPlugin plugin = spy(new BRLConditionColumnPlugin(ruleModellerPage, additionalInfoPage, event, translationService));
    doReturn(wizard).when(wizardManagedInstance).get();
    doReturn(plugin).when(brlConditionColumnPlugin).get();
    pluginHandler.edit(originalColumn);
    verify(plugin).setOriginalColumnConfig52(originalColumn);
    verify(pluginHandler).openWizard(plugin);
    verify(wizard).start(plugin);
}
Also used : BRLConditionColumnPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLConditionColumnPlugin)

Aggregations

BRLConditionColumnPlugin (org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLConditionColumnPlugin)2