Search in sources :

Example 1 with DecisionModelEvent

use of org.kie.kogito.tracing.event.model.models.DecisionModelEvent in project kogito-runtimes by kiegroup.

the class DecisionModelEventTest method testGetters.

@Test
public void testGetters() {
    final KogitoGAV gav = new KogitoGAV("groupID", "artifactId", "version");
    final DecisionModelEvent e = new DecisionModelEvent(gav, "name", "namespace", new DecisionModelMetadata("http://www.omg.org/spec/DMN/20151101/dmn.xsd"), "definition");
    assertEquals(gav.getGroupId(), e.getGav().getGroupId());
    assertEquals(gav.getArtifactId(), e.getGav().getArtifactId());
    assertEquals(gav.getVersion(), e.getGav().getVersion());
    assertEquals("name", e.getName());
    assertEquals("namespace", e.getNamespace());
    assertEquals(ModelDomain.DECISION, e.getModelMetadata().getModelDomain());
    assertEquals("http://www.omg.org/spec/DMN/20151101/dmn.xsd", e.getModelMetadata().getSpecVersion());
    assertEquals("definition", e.getDefinition());
}
Also used : DecisionModelMetadata(org.kie.kogito.decision.DecisionModelMetadata) KogitoGAV(org.kie.kogito.KogitoGAV) DecisionModelEvent(org.kie.kogito.tracing.event.model.models.DecisionModelEvent) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 KogitoGAV (org.kie.kogito.KogitoGAV)1 DecisionModelMetadata (org.kie.kogito.decision.DecisionModelMetadata)1 DecisionModelEvent (org.kie.kogito.tracing.event.model.models.DecisionModelEvent)1