Search in sources :

Example 6 with DecisionModelResource

use of org.kie.kogito.decision.DecisionModelResource in project kogito-runtimes by kiegroup.

the class QuarkusModelEventEmitterTest method makeModel.

private DecisionModelResource makeModel() {
    final DecisionModelResource model = mock(DecisionModelResource.class);
    when(model.getGav()).thenReturn(new KogitoGAV("groupId", "artifactId", "version"));
    when(model.getModelName()).thenReturn("name");
    when(model.getNamespace()).thenReturn("namespace");
    when(model.getModelMetadata()).thenReturn(new DecisionModelMetadata("http://www.omg.org/spec/DMN/20151101/dmn.xsd"));
    when(model.get()).thenReturn("model");
    return model;
}
Also used : DecisionModelMetadata(org.kie.kogito.decision.DecisionModelMetadata) DecisionModelResource(org.kie.kogito.decision.DecisionModelResource) KogitoGAV(org.kie.kogito.KogitoGAV)

Aggregations

DecisionModelResource (org.kie.kogito.decision.DecisionModelResource)6 Test (org.junit.jupiter.api.Test)4 DecisionModelMetadata (org.kie.kogito.decision.DecisionModelMetadata)4 CloudEvent (io.cloudevents.CloudEvent)2 ByteArrayInputStream (java.io.ByteArrayInputStream)2 InputStreamReader (java.io.InputStreamReader)2 KogitoGAV (org.kie.kogito.KogitoGAV)2 DecisionModelResourcesProvider (org.kie.kogito.decision.DecisionModelResourcesProvider)2