From ed2e38916aa38ba559fecf97800ad114a1ae53e0 Mon Sep 17 00:00:00 2001 From: Svante Schubert Date: Mon, 28 Nov 2022 11:08:55 +0100 Subject: [PATCH 1/4] Adding a dependency from the validator to the library module --- validator/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validator/pom.xml b/validator/pom.xml index ca728123..ee0c0f3f 100644 --- a/validator/pom.xml +++ b/validator/pom.xml @@ -35,6 +35,11 @@ + + ${project.groupId} + library + 2.5.8-SNAPSHOT + javax.xml.bind From d2ead928ff0e6158bce4c7167ed90425af969359 Mon Sep 17 00:00:00 2001 From: Svante Schubert Date: Mon, 28 Nov 2022 11:57:35 +0100 Subject: [PATCH 2/4] Exchange JUnit4 with JUnit5 vintage as JUnit5 allows the ordering the excecution of test classes --- Mustang-CLI/pom.xml | 12 +++++++++--- library/pom.xml | 14 ++++++++++---- validator/pom.xml | 14 ++++++++++---- 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/Mustang-CLI/pom.xml b/Mustang-CLI/pom.xml index f40d7838..fd6e0e33 100644 --- a/Mustang-CLI/pom.xml +++ b/Mustang-CLI/pom.xml @@ -39,9 +39,15 @@ 0.3.0 - junit - junit - 4.13.1 + org.junit.jupiter + junit-jupiter-api + 5.9.1 + test + + + org.junit.vintage + junit-vintage-engine + 5.9.1 test diff --git a/library/pom.xml b/library/pom.xml index db8d8ed4..2b10504b 100644 --- a/library/pom.xml +++ b/library/pom.xml @@ -86,11 +86,17 @@ 2.1.3 - junit - junit - 4.13.1 + org.junit.jupiter + junit-jupiter-api + 5.9.1 test - + + + org.junit.vintage + junit-vintage-engine + 5.9.1 + test + diff --git a/validator/pom.xml b/validator/pom.xml index ee0c0f3f..5193c1b4 100644 --- a/validator/pom.xml +++ b/validator/pom.xml @@ -113,11 +113,17 @@ 0.3.0 - junit - junit - 4.13.1 + org.junit.jupiter + junit-jupiter-api + 5.9.1 test - + + + org.junit.vintage + junit-vintage-engine + 5.9.1 + test + From 1c915967fe5cd37337bf4aa518a63561bc6f0c2b Mon Sep 17 00:00:00 2001 From: Svante Schubert Date: Mon, 28 Nov 2022 12:22:56 +0100 Subject: [PATCH 3/4] Adding JUnit Test Class order to Library module --- library/src/test/resources/junit-platform.properties | 2 ++ validator/src/test/resources/junit-platform.properties | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 library/src/test/resources/junit-platform.properties create mode 100644 validator/src/test/resources/junit-platform.properties diff --git a/library/src/test/resources/junit-platform.properties b/library/src/test/resources/junit-platform.properties new file mode 100644 index 00000000..5b493c2f --- /dev/null +++ b/library/src/test/resources/junit-platform.properties @@ -0,0 +1,2 @@ +# ClassOrderer$OrderAnnotation sorts classes based on their @Order annotation +junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$OrderAnnotation diff --git a/validator/src/test/resources/junit-platform.properties b/validator/src/test/resources/junit-platform.properties new file mode 100644 index 00000000..5b493c2f --- /dev/null +++ b/validator/src/test/resources/junit-platform.properties @@ -0,0 +1,2 @@ +# ClassOrderer$OrderAnnotation sorts classes based on their @Order annotation +junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$OrderAnnotation From b0b4354c2433d31f80302e7750e266d1662856f1 Mon Sep 17 00:00:00 2001 From: Svante Schubert Date: Mon, 28 Nov 2022 12:55:36 +0100 Subject: [PATCH 4/4] Switching classorder to ClassName --- library/src/test/resources/junit-platform.properties | 2 +- validator/src/test/resources/junit-platform.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/test/resources/junit-platform.properties b/library/src/test/resources/junit-platform.properties index 5b493c2f..eb14fb85 100644 --- a/library/src/test/resources/junit-platform.properties +++ b/library/src/test/resources/junit-platform.properties @@ -1,2 +1,2 @@ # ClassOrderer$OrderAnnotation sorts classes based on their @Order annotation -junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$OrderAnnotation +junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$ClassName diff --git a/validator/src/test/resources/junit-platform.properties b/validator/src/test/resources/junit-platform.properties index 5b493c2f..eb14fb85 100644 --- a/validator/src/test/resources/junit-platform.properties +++ b/validator/src/test/resources/junit-platform.properties @@ -1,2 +1,2 @@ # ClassOrderer$OrderAnnotation sorts classes based on their @Order annotation -junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$OrderAnnotation +junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$ClassName