From 9bf6f401b0a9db87bfa79f910fca48b80dc04e8d Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Sun, 14 Apr 2024 15:33:42 -0700 Subject: [PATCH] Fix test failure (#600) --- .../jenkinsci/maven/plugins/hpi/TestInsertionMojoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/jenkinsci/maven/plugins/hpi/TestInsertionMojoTest.java b/src/test/java/org/jenkinsci/maven/plugins/hpi/TestInsertionMojoTest.java index abf5f6daf2..d336a0c11e 100644 --- a/src/test/java/org/jenkinsci/maven/plugins/hpi/TestInsertionMojoTest.java +++ b/src/test/java/org/jenkinsci/maven/plugins/hpi/TestInsertionMojoTest.java @@ -3,7 +3,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThrows; -import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.MojoFailureException; import org.junit.Test; public class TestInsertionMojoTest { @@ -17,7 +17,7 @@ public void legalizePackageName() throws Exception { "_123org.jenkins_ci.maven.plugins.hpi", TestInsertionMojo.legalizePackageName("123org.jenkins-ci.maven.plugins.hpi")); assertThrows( - MojoExecutionException.class, + MojoFailureException.class, () -> TestInsertionMojo.legalizePackageName("org.jenkinsci%maven.plugins.hpi")); } }