use of org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard in project drools-wb by kiegroup.
the class PluginHandlerTest method testOpenWizardWhenTableIsNotReadOnly.
@Test
public void testOpenWizardWhenTableIsNotReadOnly() throws Exception {
final DecisionTableColumnPlugin plugin = mock(DecisionTableColumnPlugin.class);
final NewGuidedDecisionTableColumnWizard wizard = mock(NewGuidedDecisionTableColumnWizard.class);
doReturn(false).when(presenter).isReadOnly();
doReturn(wizard).when(wizardManagedInstance).get();
pluginHandler.openWizard(plugin);
verify(wizard).init(presenter);
verify(wizard).start(plugin);
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard in project drools-wb by kiegroup.
the class FieldBindingIntegrationTest method makeNewGuidedDecisionTableColumnWizard.
private NewGuidedDecisionTableColumnWizard makeNewGuidedDecisionTableColumnWizard() {
final DecisionTablePopoverUtils popoverUtils = new DecisionTablePopoverUtils();
final NewGuidedDecisionTableColumnWizard wizard = new NewGuidedDecisionTableColumnWizard(wizardView, summaryPage, translationService, popoverUtils);
wizard.init(presenter);
return wizard;
}
use of org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard in project drools-wb by kiegroup.
the class ActionWorkItemPluginTest method testInit.
@Test
public void testInit() throws Exception {
final NewGuidedDecisionTableColumnWizard wizard = mock(NewGuidedDecisionTableColumnWizard.class);
plugin.init(wizard);
assertNotNull(plugin.editingCol());
}
Aggregations