Search in sources :

Example 1 with MockInstanceImpl

use of org.drools.workbench.screens.guided.dtable.client.widget.table.popovers.MockInstanceImpl in project drools-wb by kiegroup.

the class PluginHandlerTest method testEditWhenColumnIsALimitedEntryBRLActionColumn.

@Test
public void testEditWhenColumnIsALimitedEntryBRLActionColumn() {
    final LimitedEntryBRLActionColumn originalColumn = mock(LimitedEntryBRLActionColumn.class);
    final BRLActionColumnPlugin plugin = spy(new BRLActionColumnPlugin(ruleModellerPage, defaultValuesPage, new MockInstanceImpl<>(new ArrayList<>()), additionalInfoPage, event, translationService));
    testEditActionColumn(plugin, brlActionColumnPlugin, originalColumn);
}
Also used : BRLActionColumnPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLActionColumnPlugin) LimitedEntryBRLActionColumn(org.drools.workbench.models.guided.dtable.shared.model.LimitedEntryBRLActionColumn) MockInstanceImpl(org.drools.workbench.screens.guided.dtable.client.widget.table.popovers.MockInstanceImpl) Test(org.junit.Test)

Example 2 with MockInstanceImpl

use of org.drools.workbench.screens.guided.dtable.client.widget.table.popovers.MockInstanceImpl in project drools-wb by kiegroup.

the class PluginHandlerTest method testEditWhenColumnIsABRLActionColumn.

@Test
public void testEditWhenColumnIsABRLActionColumn() {
    final BRLActionColumn originalColumn = mock(BRLActionColumn.class);
    final BRLActionColumnPlugin plugin = spy(new BRLActionColumnPlugin(ruleModellerPage, defaultValuesPage, new MockInstanceImpl<>(new ArrayList<>()), additionalInfoPage, event, translationService));
    testEditActionColumn(plugin, brlActionColumnPlugin, originalColumn);
}
Also used : LimitedEntryBRLActionColumn(org.drools.workbench.models.guided.dtable.shared.model.LimitedEntryBRLActionColumn) BRLActionColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLActionColumn) BRLActionColumnPlugin(org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLActionColumnPlugin) MockInstanceImpl(org.drools.workbench.screens.guided.dtable.client.widget.table.popovers.MockInstanceImpl) Test(org.junit.Test)

Aggregations

LimitedEntryBRLActionColumn (org.drools.workbench.models.guided.dtable.shared.model.LimitedEntryBRLActionColumn)2 MockInstanceImpl (org.drools.workbench.screens.guided.dtable.client.widget.table.popovers.MockInstanceImpl)2 BRLActionColumnPlugin (org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.BRLActionColumnPlugin)2 Test (org.junit.Test)2 BRLActionColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLActionColumn)1