Search in sources :

Example 1 with IgnoredRuntimeEvent

use of org.activiti.cloud.api.model.shared.impl.conf.IgnoredRuntimeEvent in project activiti-cloud by Activiti.

the class ExecutionContextMessageBuilderAppenderTest method testApply.

@Test
public void testApply() {
    // given
    MessageBuilder<CloudRuntimeEvent<?, ?>> request = MessageBuilder.withPayload(new IgnoredRuntimeEvent());
    // when
    subject.apply(request);
    // then
    Message<CloudRuntimeEvent<?, ?>> message = request.build();
    assertThat(message.getHeaders()).containsEntry(ExecutionContextMessageHeaders.BUSINESS_KEY, MOCK_BUSINESS_KEY).containsEntry(ExecutionContextMessageHeaders.PROCESS_INSTANCE_ID, MOCK_PROCESS_INSTANCE_ID).containsEntry(ExecutionContextMessageHeaders.PROCESS_DEFINITION_ID, MOCK_PROCESS_DEFINITION_ID).containsEntry(ExecutionContextMessageHeaders.PROCESS_DEFINITION_KEY, MOCK_PROCESS_DEFINITION_KEY).containsEntry(ExecutionContextMessageHeaders.PARENT_PROCESS_INSTANCE_ID, MOCK_PARENT_PROCESS_INSTANCE_ID).containsEntry(ExecutionContextMessageHeaders.PROCESS_DEFINITION_VERSION, MOCK_PROCESS_DEFINITION_VERSION).containsEntry(ExecutionContextMessageHeaders.PROCESS_NAME, MOCK_PROCESS_NAME).containsEntry(ExecutionContextMessageHeaders.PARENT_PROCESS_INSTANCE_NAME, MOCK_PARENT_PROCESS_NAME).containsEntry(ExecutionContextMessageHeaders.PROCESS_DEFINITION_NAME, MOCK_PROCESS_DEFINITION_NAME).containsEntry(ExecutionContextMessageHeaders.DEPLOYMENT_ID, MOCK_DEPLOYMENT_ID).containsEntry(ExecutionContextMessageHeaders.DEPLOYMENT_NAME, MOCK_DEPLOYMENT_NAME).containsEntry(ExecutionContextMessageHeaders.APP_VERSION, MOCK_APP_VERSION);
}
Also used : IgnoredRuntimeEvent(org.activiti.cloud.api.model.shared.impl.conf.IgnoredRuntimeEvent) CloudRuntimeEvent(org.activiti.cloud.api.model.shared.events.CloudRuntimeEvent) Test(org.junit.jupiter.api.Test)

Example 2 with IgnoredRuntimeEvent

use of org.activiti.cloud.api.model.shared.impl.conf.IgnoredRuntimeEvent in project activiti-cloud by Activiti.

the class RuntimeBundleInfoMessageBuilderAppenderTest method testApply.

@Test
public void testApply() {
    // given
    MessageBuilder<CloudRuntimeEvent<?, ?>> request = MessageBuilder.withPayload(new IgnoredRuntimeEvent());
    // when
    subject.apply(request);
    // then
    Message<CloudRuntimeEvent<?, ?>> message = request.build();
    assertThat(message.getHeaders()).containsEntry(RuntimeBundleInfoMessageHeaders.APP_NAME, APP_NAME).containsEntry(RuntimeBundleInfoMessageHeaders.SERVICE_NAME, SPRING_APP_NAME).containsEntry(RuntimeBundleInfoMessageHeaders.SERVICE_TYPE, SERVICE_TYPE).containsEntry(RuntimeBundleInfoMessageHeaders.SERVICE_VERSION, SERVICE_VERSION);
}
Also used : IgnoredRuntimeEvent(org.activiti.cloud.api.model.shared.impl.conf.IgnoredRuntimeEvent) CloudRuntimeEvent(org.activiti.cloud.api.model.shared.events.CloudRuntimeEvent) Test(org.junit.jupiter.api.Test)

Aggregations

CloudRuntimeEvent (org.activiti.cloud.api.model.shared.events.CloudRuntimeEvent)2 IgnoredRuntimeEvent (org.activiti.cloud.api.model.shared.impl.conf.IgnoredRuntimeEvent)2 Test (org.junit.jupiter.api.Test)2