This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch fail in repository https://gitbox.apache.org/repos/asf/maven-file-management.git
commit afbd9ac5de2f64312df0bd518021c748bdd74f62 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Sat Jun 10 08:03:42 2023 -0400 remove duplicate tests and unneeded code --- .../shared/model/fileset/mappers/MapperUtilTest.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/test/java/org/apache/maven/shared/model/fileset/mappers/MapperUtilTest.java b/src/test/java/org/apache/maven/shared/model/fileset/mappers/MapperUtilTest.java index 855a8a0..1daa9d2 100644 --- a/src/test/java/org/apache/maven/shared/model/fileset/mappers/MapperUtilTest.java +++ b/src/test/java/org/apache/maven/shared/model/fileset/mappers/MapperUtilTest.java @@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.fail; /** * A test-case for the MapperUtil. @@ -57,23 +56,7 @@ public class MapperUtilTest { @Test void testGetFileNameMapper() throws MapperException { - try { - assertNull(MapperUtil.getFileNameMapper(null)); - } catch (MapperException e) { - fail("Unexpected exception " + e); - } - Mapper mapper = new Mapper(); - try { - // default to identity mapper. - FileNameMapper fileNameMapper = MapperUtil.getFileNameMapper(mapper); - assertNotNull(fileNameMapper); - assertEquals("/var/some-file.text", fileNameMapper.mapFileName("/var/some-file.text")); - } catch (MapperException e) { - fail("Unexpected exception " + e); - } - // check with FileNameMapper type - mapper = new Mapper(); mapper.setType("glob"); mapper.setFrom("*.java"); mapper.setTo("*.class");
