@@ -39,7 +39,8 @@ dependencies {
3939 compileOnly ' org.dom4j:dom4j:2.1.4'
4040 compileOnly ' com.google.code.gson:gson:2.10.1'
4141
42- testImplementation ' org.junit.jupiter:junit-jupiter:5.11.1'
42+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
43+
4344 // Forcing junit version to avoid vulnerability with older version in xmlunit
4445 testImplementation ' junit:junit:4.13.2'
4546 testImplementation ' org.xmlunit:xmlunit-legacy:2.10.0'
@@ -64,17 +65,18 @@ dependencies {
6465 // Using this to avoid a schema validation issue with the regular xercesImpl
6566 testImplementation ' org.opengis.cite.xerces:xercesImpl-xsd11:2.12-beta-r1667115'
6667
67- testImplementation (' com.opencsv:opencsv:5.11.2' ) {
68+ testImplementation(' com.opencsv:opencsv:5.11.2' ) {
6869 // Excluding this due to a security vulnerability, and the test for the example that uses this library
6970 // passes without this on the classpath.
7071 exclude module : " commons-beanutils"
7172 }
7273 testImplementation ' org.skyscreamer:jsonassert:1.5.3'
7374
74- // Commenting out for now as it prevents tests from being runnable in Intellij.
7575 // Automatic loading of test framework implementation dependencies is deprecated.
7676 // https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
77- // testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.13.4")
77+ // Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
78+ // org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
79+ testRuntimeOnly " org.junit.platform:junit-platform-launcher:1.13.4"
7880}
7981
8082// Ensure that mlHost and mlPassword can override the defaults of localhost/admin if they've been modified
0 commit comments