Search in sources :

Example 1 with Initialize

use of org.drools.workbench.services.verifier.plugin.client.api.Initialize 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());
}
Also used : GuidedDecisionTable52(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52) ModelMetaDataEnhancer(org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer) Initialize(org.drools.workbench.services.verifier.plugin.client.api.Initialize) Test(org.junit.Test)

Aggregations

GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)1 Initialize (org.drools.workbench.services.verifier.plugin.client.api.Initialize)1 ModelMetaDataEnhancer (org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer)1 Test (org.junit.Test)1