This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-toolchains-plugin.git

commit 5f78ce98571954efeed0b8c96a5b8e70db2671c3
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Nov 17 08:14:06 2026 +0000

    Use JUnit 5 assertions and Mockito best practices in tests
---
 .../apache/maven/plugins/toolchain/jdk/ToolchainDiscovererTest.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugins/toolchain/jdk/ToolchainDiscovererTest.java
 
b/src/test/java/org/apache/maven/plugins/toolchain/jdk/ToolchainDiscovererTest.java
index f7bbcd8..a239d30 100644
--- 
a/src/test/java/org/apache/maven/plugins/toolchain/jdk/ToolchainDiscovererTest.java
+++ 
b/src/test/java/org/apache/maven/plugins/toolchain/jdk/ToolchainDiscovererTest.java
@@ -18,7 +18,6 @@
  */
 package org.apache.maven.plugins.toolchain.jdk;
 
-import java.io.IOException;
 import java.nio.charset.StandardCharsets;
 import java.nio.file.Files;
 import java.nio.file.Path;
@@ -60,7 +59,7 @@ public class ToolchainDiscovererTest {
 
     @Test
     @DisabledOnJre(JRE.JAVA_8) // java 8 often has jdk != jre
-    void testInvalidJdkDoesNotPreventDiscovery(@TempDir Path tempDir) throws 
IOException {
+    void testInvalidJdkDoesNotPreventDiscovery(@TempDir Path tempDir) throws 
Exception {
         Path invalidJdk = tempDir.resolve(".jdks").resolve("invalid-jdk");
         Path bin = invalidJdk.resolve("bin");
         Files.createDirectories(bin);

Reply via email to