Skip to content

Commit

Permalink
Fix test failure (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Apr 14, 2024
1 parent 3dcbe50 commit 9bf6f40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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"));
}
}

0 comments on commit 9bf6f40

Please sign in to comment.