diff --git a/java/src/test/java/io/process/analytics/tools/bpmn/generator/AppFromCsvTest.java b/java/src/test/java/io/process/analytics/tools/bpmn/generator/AppFromCsvTest.java index 5e4691e8..dec0cd07 100644 --- a/java/src/test/java/io/process/analytics/tools/bpmn/generator/AppFromCsvTest.java +++ b/java/src/test/java/io/process/analytics/tools/bpmn/generator/AppFromCsvTest.java @@ -15,12 +15,12 @@ */ package io.process.analytics.tools.bpmn.generator; -import org.junit.jupiter.api.Test; +import static io.process.analytics.tools.bpmn.generator.App.runApp; +import static io.process.analytics.tools.bpmn.generator.AppTest.*; import java.io.IOException; -import static io.process.analytics.tools.bpmn.generator.App.runApp; -import static io.process.analytics.tools.bpmn.generator.AppTest.*; +import org.junit.jupiter.api.Test; public class AppFromCsvTest { @@ -48,6 +48,13 @@ public void main_generates_bpmn_with_vacation_request_bonita_discovery_data() th "from_vacation_request_bonita_csv_diagram.bpmn"); } + @Test + public void main_generates_bpmn_with_vacation_request_bonita_v2_discovery_data() throws Exception { + runAndCheckBpmnAndSvgGeneration("csv/VacationRequestBonita_v2/nodes.csv", + "csv/VacationRequestBonita_v2/edges.csv", + "from_vacation_request_bonita_v2_csv_diagram.bpmn"); + } + // ================================================================================================================= // UTILS // ================================================================================================================= diff --git a/java/src/test/resources/csv/VacationRequestBonita_v2/edges.csv b/java/src/test/resources/csv/VacationRequestBonita_v2/edges.csv new file mode 100644 index 00000000..27af6f77 --- /dev/null +++ b/java/src/test/resources/csv/VacationRequestBonita_v2/edges.csv @@ -0,0 +1,28 @@ +"","id","from_id","to_id","value" +"1",1,1,2009,52 +"2",2,5,2010,3 +"3",3,7,2002,53 +"4",4,8,4,53 +"5",5,9,7,53 +"6",6,11,5,3 +"7",7,3,1003,56 +"8",8,4,1004,53 +"9",9,6,1006,3 +"10",10,10,1010,56 +"11",11,1003,8,53 +"12",12,1003,2010,2 +"13",13,1003,2011,1 +"14",14,1004,2006,1 +"15",15,1004,2010,50 +"16",16,1004,2011,2 +"17",17,1006,2002,2 +"18",18,1006,2010,1 +"19",19,1010,1,52 +"20",20,1010,2002,1 +"21",21,1010,2006,2 +"22",22,1010,2009,1 +"23",23,2002,2,56 +"24",24,2006,6,3 +"25",25,2009,9,53 +"26",26,2010,10,56 +"27",27,2011,11,3 diff --git a/java/src/test/resources/csv/VacationRequestBonita_v2/nodes.csv b/java/src/test/resources/csv/VacationRequestBonita_v2/nodes.csv new file mode 100644 index 00000000..54233cea --- /dev/null +++ b/java/src/test/resources/csv/VacationRequestBonita_v2/nodes.csv @@ -0,0 +1,21 @@ +"","from_id","node","type","value" +"1",1,"Add event on employee calendar","task",52 +"2",2,"ARTIFICIAL_END","end_event",56 +"3",3,"ARTIFICIAL_START","start_event",56 +"4",4,"Deduct requested days from available days","task",53 +"5",5,"End Reminder","task",3 +"6",6,"end when request cancelled","task",3 +"7",7,"New Vacation Request End","task",53 +"8",8,"New Vacation Request Start","task",53 +"9",9,"Notify employee request approved","task",53 +"10",10,"Review request","task",56 +"11",11,"Send reminder","task",3 +"12",1003,"gateway1","gateway",56 +"13",1004,"gateway2","gateway",53 +"14",1006,"gateway3","gateway",3 +"15",1010,"gateway4","gateway",56 +"16",2002,"gateways_merge_1","gateway",56 +"17",2006,"gateways_merge_2","gateway",3 +"18",2009,"gateways_merge_3","gateway",53 +"19",2010,"gateways_merge_4","gateway",56 +"20",2011,"gateways_merge_5","gateway",3