Browse Source

verify Bug 62086 doesn't affect the 1.9.x branch

https://bz.apache.org/bugzilla/show_bug.cgi?id=62086
master
Stefan Bodewig 7 years ago
parent
commit
ee338052ce
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/tests/junit/org/apache/tools/ant/types/MapperTest.java

+ 4
- 0
src/tests/junit/org/apache/tools/ant/types/MapperTest.java View File

@@ -35,6 +35,7 @@ import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

@@ -224,6 +225,9 @@ public class MapperTest {
List list = Arrays.asList(targets);
assertTrue("cannot find expected target \"def\"", list.contains("def"));
assertTrue("cannot find expected target \"ghi\"", list.contains("ghi"));

targets = fileNameMapper.mapFileName("z");
assertNull(targets);
}

@Test


Loading…
Cancel
Save