Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Oct 3, 2023
1 parent 920c402 commit faf4675
Showing 1 changed file with 43 additions and 8 deletions.
51 changes: 43 additions & 8 deletions test/unit/helpers/JsonBuilder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ describe('build json', () => {
eventDefinitionOn: EventDefinitionOn.NONE,
},
},
{
bpmnKind: 'intermediateCatchEvent',
name: 'intermediateCatchEvent',
eventDefinitionParameter: {
eventDefinitionKind: 'link',
eventDefinitionOn: EventDefinitionOn.DEFINITIONS,
},
source: 'link_event_definition_id_2_1',
},
],
gateway: {
id: 'exclusiveGateway',
Expand All @@ -113,6 +122,15 @@ describe('build json', () => {
eventDefinitionOn: EventDefinitionOn.BOTH,
},
},
{
bpmnKind: 'intermediateThrowEvent',
name: 'intermediateThrowEvent',
eventDefinitionParameter: {
eventDefinitionKind: 'link',
eventDefinitionOn: EventDefinitionOn.EVENT,
},
target: 'link_event_definition_id_1_1',
},
],
callActivity: { calledElement: 'process_participant_0' },
},
Expand All @@ -137,12 +155,11 @@ describe('build json', () => {
},
terminateEventDefinition: [{ id: 'terminate_event_definition_id_0_1' }, { id: 'terminate_event_definition_id_0_2' }],
timerEventDefinition: { id: 'timer_event_definition_id_2_0' },
linkEventDefinition: { id: 'link_event_definition_id_1_1' },
process: [
{
id: 'process_participant_0',
task: {
id: 'task_id_0_0',
},
task: { id: 'task_id_0_0' },
endEvent: [
{
id: 'event_id_0_1',
Expand All @@ -164,16 +181,18 @@ describe('build json', () => {
},
{
id: 'process_participant_1',
exclusiveGateway: {
id: 'exclusiveGateway',
},
exclusiveGateway: { id: 'exclusiveGateway' },
startEvent: {
cancelActivity: false,
id: 'event_id_1_0',
name: 'startEvent',
},
task: {
id: 'task_id_1',
task: { id: 'task_id_1' },
intermediateCatchEvent: {
id: 'event_id_1_1',
name: 'intermediateCatchEvent',
eventDefinitionRef: 'link_event_definition_id_1_1',
source: 'link_event_definition_id_2_1',
},
},
{
Expand All @@ -188,6 +207,12 @@ describe('build json', () => {
id: 'callActivity_id_2_0',
calledElement: 'process_participant_0',
},
intermediateThrowEvent: {
id: 'event_id_2_1',
name: 'intermediateThrowEvent',
linkEventDefinition: { id: 'link_event_definition_id_2_1' },
target: 'link_event_definition_id_1_1',
},
},
],
BPMNDiagram: {
Expand Down Expand Up @@ -239,6 +264,11 @@ describe('build json', () => {
id: 'shape_event_id_1_0',
Bounds: { x: 362, y: 232, height: 45, width: 36 },
},
{
bpmnElement: 'event_id_1_1',
id: 'shape_event_id_1_1',
Bounds: { x: 362, y: 232, height: 45, width: 36 },
},
{
bpmnElement: 'callActivity_id_2_0',
id: 'shape_callActivity_id_2_0',
Expand All @@ -250,6 +280,11 @@ describe('build json', () => {
id: 'shape_event_id_2_0',
Bounds: { x: 362, y: 232, height: 45, width: 36 },
},
{
bpmnElement: 'event_id_2_1',
id: 'shape_event_id_2_1',
Bounds: { x: 362, y: 232, height: 45, width: 36 },
},
],
BPMNEdge: {
id: 'edge_message_flow_id_0',
Expand Down

0 comments on commit faf4675

Please sign in to comment.