use of org.kie.server.services.jbpm.JbpmKieServerExtension in project droolsjbpm-integration by kiegroup.
the class TaskAssigningPlanningKieServerExtensionTest method initWithJbpmExtensionEnabled.
@Test
public void initWithJbpmExtensionEnabled() {
JbpmKieServerExtension jbpmExtension = mock(JbpmKieServerExtension.class);
when(registry.getServerExtension(JbpmKieServerExtension.EXTENSION_NAME)).thenReturn(jbpmExtension);
enableExtension();
System.setProperty(TASK_ASSIGNING_USER_SYSTEM_NAME, USER_SYSTEM_NAME);
extension.init(kieServer, registry);
assertKieServerMessageWasAdded(Severity.WARN, addExtensionMessagePrefix(String.format(UNDESIRED_EXTENSIONS_RUNNING_ERROR, JbpmKieServerExtension.EXTENSION_NAME)), 1, 0, false);
}
Aggregations