Search in sources :

Example 1 with TimerScheduledAuditEventEntity

use of org.activiti.cloud.services.audit.jpa.events.TimerScheduledAuditEventEntity in project activiti-cloud by Activiti.

the class TimerEventConverterTest method checkConvertToEntityTimerScheduledEvent.

@Test
public void checkConvertToEntityTimerScheduledEvent() {
    // given
    CloudBPMNTimerScheduledEventImpl event = createTimerScheduledEvent();
    // when
    TimerScheduledAuditEventEntity auditEventEntity = (TimerScheduledAuditEventEntity) eventConverterTimerScheduled.convertToEntity(event);
    // then
    checkCloudAuditEvententity(auditEventEntity, event);
}
Also used : CloudBPMNTimerScheduledEventImpl(org.activiti.cloud.api.process.model.impl.events.CloudBPMNTimerScheduledEventImpl) TimerScheduledAuditEventEntity(org.activiti.cloud.services.audit.jpa.events.TimerScheduledAuditEventEntity) Test(org.junit.jupiter.api.Test)

Example 2 with TimerScheduledAuditEventEntity

use of org.activiti.cloud.services.audit.jpa.events.TimerScheduledAuditEventEntity in project activiti-cloud by Activiti.

the class TimerEventConverterTest method checkConvertToAPITimerScheduledEvent.

@Test
public void checkConvertToAPITimerScheduledEvent() {
    // given
    TimerScheduledAuditEventEntity auditEventEntity = (TimerScheduledAuditEventEntity) eventConverterTimerScheduled.convertToEntity(createTimerScheduledEvent());
    // when
    CloudBPMNTimerScheduledEventImpl cloudEvent = (CloudBPMNTimerScheduledEventImpl) eventConverterTimerScheduled.convertToAPI(auditEventEntity);
    checkCloudAuditEvententity(auditEventEntity, cloudEvent);
}
Also used : TimerScheduledAuditEventEntity(org.activiti.cloud.services.audit.jpa.events.TimerScheduledAuditEventEntity) CloudBPMNTimerScheduledEventImpl(org.activiti.cloud.api.process.model.impl.events.CloudBPMNTimerScheduledEventImpl) Test(org.junit.jupiter.api.Test)

Aggregations

CloudBPMNTimerScheduledEventImpl (org.activiti.cloud.api.process.model.impl.events.CloudBPMNTimerScheduledEventImpl)2 TimerScheduledAuditEventEntity (org.activiti.cloud.services.audit.jpa.events.TimerScheduledAuditEventEntity)2 Test (org.junit.jupiter.api.Test)2