void testMappedFileset() { executeTarget("testMappedFileset"); } /** * test the explicit mapped file set */ public void testExplicitMappedFileset() { executeTarget("testExplicitMappedFileset"); } /** * test the mapped file list */ public void testMappedFilelist() { executeTarget("testMappedFilelist"); } /** * test the pattern attribute */ public void testGoodPattern() { executeTarget("testGoodPattern"); } /** * test the pattern attribute again */ public void testBadPattern() { expectBuildExceptionContaining("testBadPattern", "No parsing exception thrown", "Unparseable");
void testSimple() { executeTarget("simple"); } public void testName() { executeTarget("name"); } public void testBaseDir() { executeTarget("basedir"); } public void testType() { executeTarget("type"); } public void testNotSelector() { expectBuildExceptionContaining( "not.selector", "checking for use as a selector (not allowed)", "fileset doesn't support the nested \"isfile");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/TouchTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsFileSelectedTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testMappedFileset() {
1
void testSimple() {
2
        executeTarget("testMappedFileset");
2
        executeTarget("
3
    }
4
    /**
5
     * test the explicit mapped file set
6
     */
7
    public void testExplicitMappedFileset() {
8
        executeTarget("testExplicitMappedFileset");
9
    }
10
    /**
11
     * test the mapped file list
12
     */
3
simple");
4
    }
5
    public void testName() {
6
        executeTarget("name");
7
    }
13
    public void testMappedFilelist() {
8
    public void testBaseDir() {
14
        executeTarget("testMappedFilelist");
9
        executeTarget("
15
    }
16
    /**
17
     * test the pattern attribute
18
     */
10
basedir");
11
    }
19
    public void testGoodPattern() {
12
    public void testType() {
20
        executeTarget("testGoodPattern");
13
        executeTarget("t
21
    }
22
    /**
23
     * test the pattern attribute again
24
     */
14
ype");
15
    }
25
    public void testBadPattern() {
16
    public void testNotSelector() {
26
        expectBuildExceptionContaining("testBadPattern",
17
        expectBuildExceptionContaining(
27
            "No parsing exception thrown", "Unparseab
18
            "not.selector", "checking for use as a selector (not allowed)",
28
le");
19
            "fileset doesn't support the nested \"isfile");
29
    
20
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0