void testDupes() { executeTarget("testDupes"); } public void testDupesCondition() { executeTarget("testDupesCondition"); } public void testString() { executeTarget("testString"); } public void testStringCondition() { executeTarget("testStringCondition"); } public 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"); }
void tearDown() { executeTarget("teardown"); } /** * A unit test for JUnit */ public void testCSC() throws Exception { executeTarget("testCSC"); } /** * A unit test for JUnit */ public void testCSCintrinsicFileset() throws Exception { executeTarget("testCSCintrinsicFileset"); } /** * A unit test for JUnit */ public void testCSCdll() throws Exception { executeTarget("testCSCdll"); } /** * A unit test for JUnit */ public void testCscReferences() throws Exception { executeTarget("testCscReferences"); } /** * A unit test for JUnit */ public void testCscResources() throws Exception { executeTarget("testCSCResources"); } /** * test we can assemble */ public void testILASM() throws Exception { executeTarget("testILASM"); } /** * test we can disassemble */ public void testILDASM() throws Exception { executeTarget("testILDASM"); } /** * test we can disassemble */ public void testILDASM_empty() throws Exception { expectBuildExceptionContaining("testILDASM_empty", "parameter validation", "invalid"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/LengthTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/DotnetTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testDupes() {
1
void tearDown() {
2
        executeTarget("testDupes");
2
        executeTarget("teardown");
3
    }
3
    }
4
    /**
5
     * A unit test for JUnit
6
     */
4
    public void testDupesCondition() {
7
    public void testCSC() throws Exception {
5
        executeTarget("testDupesCondition");
8
        executeTarget("testCSC");
9
    }
10
    /**
11
     * A unit test for JUnit
6
    }
12
    
13
 */
7
    public void testString() {
14
    public void testCSCintrinsicFileset() throws Exception {
8
        executeTarget("testString");
15
        executeTarget("testCSCintrinsicFileset");
9
    }
16
    }
10
    public void testStringCondi
17
    /**
18
     * A unit test for JUnit
19
     */
11
tion() {
20
    public void testCSCdll() throws Exception {
12
        executeTarget("testStringCondition");
21
        executeTarget("test
13
    }
14
    public void testTrimString()
22
CSCdll");
23
    }
24
    /**
25
     * A unit test for JUnit
26
     */
15
 {
27
    public void testCscReferences() throws Exception {
16
        executeTarget("testTrimString");
28
        executeTarget("testCscReferences");
17
    }
29
    }
18
    public void testTrimStringCondi
30
    /**
31
     * A unit test for JUnit
32
     */
19
tion() {
33
    public void testCscResources() throws Exception {
20
        executeTarget("testTrimStringCondition");
34
        executeTarget("test
21
    }
22
    public void testNoTrimString() {
23
        executeTarget("testNoTrimString");
24
    }
25
    public void testNoTrimStringCondi
35
CSCResources");
36
    }
37
    /**
38
     * test we can assemble
39
     */
40
    public void testILASM() throws Exception {
41
        executeTarget("testILASM");
42
    }
43
    /**
44
     * test we can disassemble
45
     */
26
tion() {
46
    public void testILDASM() throws Exception {
27
        executeTarget("testNoTrimStringCondition");
47
        executeTarget("test
28
    }
29
    public void testStringFile()
48
ILDASM");
49
    }
50
    /**
51
     * test we can disassemble
52
     */
30
 {
53
    public void testILDASM_empty() throws Exception {
31
        expectBuildExceptionContaining("testStringFile",
54
        expectBuildExceptionContaining("testILDASM_empty",
32
            "should fail", "incompatible
55
                "parameter validation",
33
");
56
                "invalid");
34
    }
57
    }
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