This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-file-management.git
The following commit(s) were added to refs/heads/master by this push:
new e301d1e remove duplicate tests and unneeded code (#23)
e301d1e is described below
commit e301d1e0a91d9858fcbc06d8539569b84f2b2d08
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Wed Jun 14 21:00:08 2023 -0400
remove duplicate tests and unneeded code (#23)
---
.../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");