use of org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer in project drools-wb by kiegroup.
the class ReceiverTest method testInit.
@Test
public void testInit() throws Exception {
final GuidedDecisionTable52 table1 = analyzerProvider.makeAnalyser().withPersonAgeColumn(">").withPersonApprovedActionSetField().withData(DataBuilderProvider.row(0, true).end()).buildTable();
receiver.received(new Initialize("testUUID", table1, new ModelMetaDataEnhancer(table1).getHeaderMetaData(), analyzerProvider.getFactTypes(), "dd-MMM-yyyy"));
verify(poster).post(issuesArgumentCaptor.capture());
}
use of org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer in project drools-wb by kiegroup.
the class AnalyzerUpdateTestBase method appendActionColumn.
protected void appendActionColumn(final int columnNumber, final ActionSetFieldCol52 actionSetField, final Comparable... cellValues) throws BuildException {
table52.getActionCols().add(actionSetField);
for (int i = 0; i < cellValues.length; i++) {
table52.getData().get(i).add(new DTCellValue52(cellValues[i]));
}
updateManager.newColumn(table52, new ModelMetaDataEnhancer(table52).getHeaderMetaData(), analyzerProvider.getFactTypes(), columnNumber);
}
use of org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer in project drools-wb by kiegroup.
the class AnalyzerUpdateTestBase method insertConditionColumn.
protected void insertConditionColumn(final int columnNumber, final BRLConditionColumn brlConditionColumn, final Comparable... cellValues) throws BuildException {
table52.getConditions().add(brlConditionColumn);
for (int i = 0; i < cellValues.length; i++) {
table52.getData().get(i).add(new DTCellValue52(cellValues[i]));
}
updateManager.newColumn(table52, new ModelMetaDataEnhancer(table52).getHeaderMetaData(), analyzerProvider.getFactTypes(), columnNumber);
}
Aggregations