Search in sources :

Example 1 with JbpmKieServerExtension

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);
}
Also used : JbpmKieServerExtension(org.kie.server.services.jbpm.JbpmKieServerExtension) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 JbpmKieServerExtension (org.kie.server.services.jbpm.JbpmKieServerExtension)1