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-mapping.git
The following commit(s) were added to refs/heads/master by this push:
new 8773756 Cleanup tests (#49)
8773756 is described below
commit 8773756fb9174f28b1bc442cfbd32804b33aff42
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Dec 21 16:19:24 2025 +0100
Cleanup tests (#49)
Co-authored-by: Moderne <[email protected]>
---
.../org/apache/maven/shared/mapping/MappingUtilsTest.java | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git
a/src/test/java/org/apache/maven/shared/mapping/MappingUtilsTest.java
b/src/test/java/org/apache/maven/shared/mapping/MappingUtilsTest.java
index 073a569..3b080cf 100644
--- a/src/test/java/org/apache/maven/shared/mapping/MappingUtilsTest.java
+++ b/src/test/java/org/apache/maven/shared/mapping/MappingUtilsTest.java
@@ -21,7 +21,6 @@ package org.apache.maven.shared.mapping;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact;
import org.apache.maven.artifact.handler.DefaultArtifactHandler;
-import org.codehaus.plexus.interpolation.InterpolationException;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -34,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
class MappingUtilsTest {
@Test
- void completeMapping() throws InterpolationException {
+ void completeMapping() throws Exception {
Artifact jar = new DefaultArtifact(
"org.apache.sample",
"maven-test-lib",
@@ -49,14 +48,14 @@ class MappingUtilsTest {
}
@Test
- void noVersionMapping() throws InterpolationException {
+ void noVersionMapping() throws Exception {
Artifact jar = new DefaultArtifact(
"org.apache.sample", "maven-test-lib", "1.0", null, "jar",
null, new DefaultArtifactHandler("jar"));
assertEquals("maven-test-lib.jar",
MappingUtils.evaluateFileNameMapping("@{artifactId}@.@{extension}@", jar));
}
@Test
- void mappingWithGroupId() throws InterpolationException {
+ void mappingWithGroupId() throws Exception {
Artifact jar = new DefaultArtifact(
"org.apache.sample", "maven-test-lib", "1.0", null, "jar",
null, new DefaultArtifactHandler("jar"));
assertEquals(
@@ -65,7 +64,7 @@ class MappingUtilsTest {
}
@Test
- void mappingWithClassifier() throws InterpolationException {
+ void mappingWithClassifier() throws Exception {
Artifact jar = new DefaultArtifact(
"org.apache.sample",
"maven-test-lib",
@@ -80,7 +79,7 @@ class MappingUtilsTest {
}
@Test
- void mappingWithNullClassifier() throws InterpolationException {
+ void mappingWithNullClassifier() throws Exception {
Artifact jar = new DefaultArtifact(
"org.apache.sample", "maven-test-lib", "1.0", null, "jar",
null, new DefaultArtifactHandler("jar"));
assertEquals(
@@ -92,7 +91,7 @@ class MappingUtilsTest {
* Test for MWAR-212.
*/
@Test
- void mappingWithOptionalClassifier() throws InterpolationException {
+ void mappingWithOptionalClassifier() throws Exception {
final String mappingWithOptionalClassifier1 =
"@{artifactId}@-@{version}@@{dashClassifier}@.@{extension}@";
final String mappingWithOptionalClassifier2 =
"@{artifactId}@-@{version}@@{dashClassifier?}@.@{extension}@";