plugins {
    `java-library`
}

description = "Common test utilities for the add-ons."

java {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

val nanohttpdVersion = "2.3.1"
val jupiterVersion = "5.6.0"

dependencies {
    compileOnly("org.zaproxy:zap:2.9.0")

    api("org.hamcrest:hamcrest-library:1.3")
    api("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
    api("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
    runtimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
    api("org.mockito:mockito-junit-jupiter:3.1.0")

    api("org.nanohttpd:nanohttpd-webserver:$nanohttpdVersion")
    api("org.nanohttpd:nanohttpd-websocket:$nanohttpdVersion")
}

plugins {
    `java-library`
}

description = "Common test utilities for the add-ons."

java {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

val nanohttpdVersion = "2.3.1"
val jupiterVersion = "5.7.0"

dependencies {
    compileOnly("org.zaproxy:zap:2.9.0")

    api("org.hamcrest:hamcrest-library:1.3")
    api("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
    api("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
    runtimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
    api("org.mockito:mockito-junit-jupiter:3.6.28")

    api("org.nanohttpd:nanohttpd-webserver:$nanohttpdVersion")
    api("org.nanohttpd:nanohttpd-websocket:$nanohttpdVersion")
}

Upgrade test libraries to address test failures
testutils: Upgrade test libraries to address test failures

Addresses UnitTest failures with Eclipse 2020-12.

Upgrade testutils to use jupiterVersion 5.7.0, and
org.mockito:mockito-junit-jupiter 3.6.28. (JUnit 5.7.0 to address a
local test failure issue in Eclipse 2020-12, and mockito just as a
dependency maintenance activity.)

```console
java.lang.NoClassDefFoundError:
org/junit/platform/commons/util/ClassNamePatternFilterUtils
	at org.junit.platform.launcher.core.LauncherFactory.loadAndFilterTestExecutionListeners(LauncherFactory.java:122)
	at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:108)
	at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:75)
	at org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.<init>(JUnit5TestLoader.java:34)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.base/java.lang.Class.newInstance(Class.java:584)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createRawTestLoader(RemoteTestRunner.java:371)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createLoader(RemoteTestRunner.java:366)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.defaultInit(RemoteTestRunner.java:310)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.init(RemoteTestRunner.java:225)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
Caused by: java.lang.ClassNotFoundException:
org.junit.platform.commons.util.ClassNamePatternFilterUtils
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 14 more
```

Signed-off-by: kingthorin <83ea41af2b636790c02743e48206546e1fa891e4@users.noreply.github.com>
thc202/zap-extensions,zaproxy/zap-extensions,secdec/zap-extensions,secdec/zap-extensions,psiinon/zap-extensions,kingthorin/zap-extensions,thc202/zap-extensions,denniskniep/zap-extensions,kingthorin/zap-extensions,zaproxy/zap-extensions,psiinon/zap-extensions,kingthorin/zap-extensions,thc202/zap-extensions,denniskniep/zap-extensions,kingthorin/zap-extensions,denniskniep/zap-extensions,thc202/zap-extensions,denniskniep/zap-extensions,zaproxy/zap-extensions,denniskniep/zap-extensions,secdec/zap-extensions,zaproxy/zap-extensions,psiinon/zap-extensions,kingthorin/zap-extensions,psiinon/zap-extensions,thc202/zap-extensions,secdec/zap-extensions,psiinon/zap-extensions,zaproxy/zap-extensions,secdec/zap-extensions,psiinon/zap-extensions,denniskniep/zap-extensions,zaproxy/zap-extensions,thc202/zap-extensions,secdec/zap-extensions,kingthorin/zap-extensions,secdec/zap-extensions