use of io.quarkus.runtime.StartupEvent in project kogito-apps by kiegroup.
the class ProtobufServiceTest method onStart.
@Test
void onStart() {
String content = getTestFileContent();
kogitoDescriptors.addProtoFile("test", content);
StartupEvent event = mock(StartupEvent.class);
protobufService.onStart(event);
verify(schemaEvent).fire(eq(new SchemaRegisteredEvent(new SchemaDescriptor("test", content, getValidEntityIndexDescriptors(true), null), SCHEMA_TYPE)));
verify(protobufMonitorService).startMonitoring();
}
Aggregations