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());
}
Aggregations