From d05ffafcb48b87414bad197292f93b3e4c97f719 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 14 Oct 2023 12:34:33 -0600 Subject: [PATCH] Fix Java 21 tests by placing mockito before assertj https://groups.google.com/g/byte-buddy/c/H3auRC-SRts/m/7NCRN2wAAwAJ notes that the version of bytebuddy in assertj does not support Java 21 while the version of bytebuddy in mockito supports Java 21. Load mockito first so that the newer version of bytebuddy is used for the tests. This change is necessary but not sufficient to pass the tests on Java 21. The tests run much better on Java 21 with this change, but there are still two tests that fail. They will need to be investigated and resolved in a separate pull request. --- pom.xml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 1aeb7f2a6..5864bafc9 100644 --- a/pom.xml +++ b/pom.xml @@ -140,6 +140,16 @@ pipeline-rest-api + + + + + org.mockito + mockito-core + test + + + org.assertj assertj-core @@ -152,18 +162,6 @@ ${JUnitParams.version} test - - org.mockito - mockito-core - ${mockito.version} - test - - - - - - - com.github.stefanbirkner system-lambda