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 testTrimString() { executeTarget("testTrimString"); } public void testTrimStringCondition() { executeTarget("testTrimStringCondition"); } public void testNoTrimString() { executeTarget("testNoTrimString"); } public void testNoTrimStringCondition() { executeTarget("testNoTrimStringCondition"); } public void testStringFile() { expectBuildExceptionContaining("testStringFile", "should fail", "incompatible");
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/LengthTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testMappedFileset() {
1
void testTrimString() {
2
        executeTarget("testMappedFileset");
2
        executeTarget("testTrimString");
3
    }
3
    }
4
    /**
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
     */
5
public void testTrimStringCondition() {
6
        executeTarget("testTrimStringCondition");
7
    }
13
    public void testMappedFilelist() {
8
    public void testNoTrimString() {
14
        executeTarget("testMappedFilelist");
9
        executeTarget("test
15
    }
16
    /**
17
     * test the pattern attribute
18
     */
19
    public void testGoodPattern() {
20
        executeTarget("testGoodPattern");
21
    }
22
    /**
23
     * test the pattern attribute again
24
     */
10
NoTrimString");
11
    }
12
    public void testNoTrimStringCondition() {
13
        executeTarget("testNoTrimStringCondition");
14
    }
25
    public void testBadPattern() {
15
    public void testStringFile() {
26
        expectBuildExceptionContaining("testBadPattern",
16
        expectBuildExceptionContaining("testStringFile",
27
            "No parsing exception thrown", "Unparseable");
17
            "should fail", "incompatible");
28
    
18
    
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