Search in sources :

Example 21 with ActionWorkItemSetFieldCol52

use of org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52 in project drools-wb by kiegroup.

the class DecisionTableColumnViewUtilsTest method testColumnManagementGroupTitleWorkItemSetFieldEmpty.

@Test
public void testColumnManagementGroupTitleWorkItemSetFieldEmpty() throws Exception {
    final ActionWorkItemSetFieldCol52 column = mock(ActionWorkItemSetFieldCol52.class);
    doReturn(COLUMN_HEADER).when(column).getHeader();
    assertEquals(COLUMN_HEADER, DecisionTableColumnViewUtils.getColumnManagementGroupTitle(column));
}
Also used : ActionWorkItemSetFieldCol52(org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52) Test(org.junit.Test)

Example 22 with ActionWorkItemSetFieldCol52

use of org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52 in project drools-wb by kiegroup.

the class DecisionTableColumnViewUtilsTest method testColumnManagementGroupTitleWorkItemSetField.

@Test
public void testColumnManagementGroupTitleWorkItemSetField() throws Exception {
    final ActionWorkItemSetFieldCol52 column = mock(ActionWorkItemSetFieldCol52.class);
    doReturn(APPLICANT_BOUND_NAME).when(column).getBoundName();
    assertEquals("[" + APPLICANT_BOUND_NAME + "]", DecisionTableColumnViewUtils.getColumnManagementGroupTitle(column));
}
Also used : ActionWorkItemSetFieldCol52(org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52) Test(org.junit.Test)

Aggregations

ActionWorkItemSetFieldCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemSetFieldCol52)22 Test (org.junit.Test)15 BooleanUiColumn (org.drools.workbench.screens.guided.dtable.client.widget.table.columns.BooleanUiColumn)6 ActionWorkItemCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemCol52)5 ArrayList (java.util.ArrayList)4 BaseColumnFieldDiff (org.drools.workbench.models.guided.dtable.shared.model.BaseColumnFieldDiff)4 DTCellValue52 (org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)4 ActionCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionCol52)3 BaseColumn (org.drools.workbench.models.guided.dtable.shared.model.BaseColumn)3 ConditionCol52 (org.drools.workbench.models.guided.dtable.shared.model.ConditionCol52)3 Pattern52 (org.drools.workbench.models.guided.dtable.shared.model.Pattern52)3 ActionExecuteWorkItem (org.drools.workbench.models.datamodel.rule.ActionExecuteWorkItem)2 ActionFieldValue (org.drools.workbench.models.datamodel.rule.ActionFieldValue)2 ActionSetField (org.drools.workbench.models.datamodel.rule.ActionSetField)2 ActionWorkItemFieldValue (org.drools.workbench.models.datamodel.rule.ActionWorkItemFieldValue)2 RuleModel (org.drools.workbench.models.datamodel.rule.RuleModel)2 PortableBooleanParameterDefinition (org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition)2 PortableFloatParameterDefinition (org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition)2 PortableWorkDefinition (org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition)2 GuidedDTTemplateDataProvider (org.drools.workbench.models.guided.dtable.backend.util.GuidedDTTemplateDataProvider)2