Search in sources :

Example 1 with PriorityListUiColumn

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

the class MetaDataColumnConverterTest method convertRulePriorityColumn.

@Test
public void convertRulePriorityColumn() throws Exception {
    final MetadataCol52 metadataCol = new MetadataCol52();
    metadataCol.setMetadata(GuidedDecisionTable52.HitPolicy.RESOLVED_HIT_METADATA_NAME);
    final GridColumn<?> column = metaDataColumnConverter.convertColumn(metadataCol, mock(GuidedDecisionTablePresenter.Access.class), mock(GuidedDecisionTableView.class));
    assertTrue(column instanceof PriorityListUiColumn);
}
Also used : MetadataCol52(org.drools.workbench.models.guided.dtable.shared.model.MetadataCol52) GuidedDecisionTableView(org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView) PriorityListUiColumn(org.drools.workbench.screens.guided.dtable.client.widget.table.columns.PriorityListUiColumn) Test(org.junit.Test)

Aggregations

MetadataCol52 (org.drools.workbench.models.guided.dtable.shared.model.MetadataCol52)1 GuidedDecisionTableView (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView)1 PriorityListUiColumn (org.drools.workbench.screens.guided.dtable.client.widget.table.columns.PriorityListUiColumn)1 Test (org.junit.Test)1