Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Fixed review comments.
  • Loading branch information
AlexeyKuznetsov-DD committed Sep 18, 2025
commit 3551d2500ea6580e510b158ab23b1ae7dd272cd1
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,11 @@ private boolean assertGetEffectiveJvmFallbackUsesToolchains(ExecutionEvent execu
if (!MavenUtils.isTestExecution(mojoExecution)) {
return false;
}

MavenSession session = executionEvent.getSession();
String effectiveJvm = MavenUtils.getEffectiveJvmFallback(session, mojoExecution);
assertNotNull("/my-jdk-home/bin/java", effectiveJvm);
assertNotNull(effectiveJvm);
assertTrue(effectiveJvm.endsWith("/my-jdk-home/bin/java"));
return true;
}

Expand Down