~ubuntu-branches/ubuntu/utopic/ant/utopic

« back to all changes in this revision

Viewing changes to src/tests/junit/org/apache/tools/ant/types/mappers/RegexpPatternMapperTest.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2014-05-09 11:46:04 UTC
  • mfrom: (25.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140509114604-3h26sbqgjef3jln4
Tags: 1.9.4-1
* New upstream release
  - Refreshed the patches
  - Removed the patch for #735786 (Fixed upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
package org.apache.tools.ant.types.mappers;
20
20
 
21
 
import org.apache.tools.ant.BuildFileTest;
 
21
import org.apache.tools.ant.BuildFileRule;
 
22
import org.junit.Before;
 
23
import org.junit.Rule;
 
24
import org.junit.Test;
22
25
 
23
26
/**
24
27
 * Testcase for the <regexpmapper> mapper.
25
28
 *
26
29
 */
27
 
public class RegexpPatternMapperTest extends BuildFileTest {
28
 
    public RegexpPatternMapperTest(String name) {
29
 
        super(name);
30
 
    }
 
30
public class RegexpPatternMapperTest {
 
31
 
 
32
    @Rule
 
33
    public BuildFileRule buildRule = new BuildFileRule();
 
34
 
 
35
    @Before
31
36
    public void setUp() {
32
 
        configureProject("src/etc/testcases/types/mappers/regexpmapper.xml");
 
37
        buildRule.configureProject("src/etc/testcases/types/mappers/regexpmapper.xml");
33
38
    }
34
39
 
 
40
    @Test
35
41
    public void testIgnoreCase() {
36
 
        executeTarget("ignore.case");
 
42
        buildRule.executeTarget("ignore.case");
37
43
    }
 
44
 
 
45
    @Test
38
46
    public void testHandleDirSep() {
39
 
        executeTarget("handle.dirsep");
 
47
        buildRule.executeTarget("handle.dirsep");
40
48
    }
41
49
}
42
50