Search in sources :

Example 11 with NewGuidedDecisionTableColumnWizard

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);
}
Also used : NewGuidedDecisionTableColumnWizard(org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard) DecisionTableColumnPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin) BaseDecisionTableColumnPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.BaseDecisionTableColumnPlugin) Test(org.junit.Test)

Example 12 with NewGuidedDecisionTableColumnWizard

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;
}
Also used : NewGuidedDecisionTableColumnWizard(org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard) DecisionTablePopoverUtils(org.drools.workbench.screens.guided.dtable.client.wizard.column.pages.common.DecisionTablePopoverUtils)

Example 13 with NewGuidedDecisionTableColumnWizard

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());
}
Also used : NewGuidedDecisionTableColumnWizard(org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard) Test(org.junit.Test)

Aggregations

NewGuidedDecisionTableColumnWizard (org.drools.workbench.screens.guided.dtable.client.wizard.column.NewGuidedDecisionTableColumnWizard)13 Test (org.junit.Test)9 GuidedDecisionTableView (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView)2 BaseDecisionTableColumnPlugin (org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.BaseDecisionTableColumnPlugin)2 DecisionTableColumnPlugin (org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin)2 GuidedDecisionTableModellerView (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableModellerView)1 GuidedDecisionTablePresenter (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTablePresenter)1 DecisionTablePopoverUtils (org.drools.workbench.screens.guided.dtable.client.wizard.column.pages.common.DecisionTablePopoverUtils)1