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 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 testTrimString() {
1
void testCscReferences() throws Exception {
2
        executeTarget("testTrimString");
2
        executeTarget("testCscReferences");
3
    }
3
    }
4
    public void testTrimStringCondi
4
    /**
5
     * A unit test for JUnit
6
     */
5
tion() {
7
    public void testCscResources() throws Exception {
6
        executeTarget("testTrimStringCondition");
8
        executeTarget("test
7
    }
8
    public void testNoTrimString()
9
CSCResources");
10
    }
11
    /**
12
     * test we can assemble
13
     */
9
 {
14
    public void testILASM() throws Exception {
10
        executeTarget("testNoTrimString");
15
        executeTarget("testILASM");
11
    }
16
    }
12
    public void testNoTrimStringCondi
17
    /**
18
     * test we can disassemble
19
     */
13
tion() {
20
    public void testILDASM() throws Exception {
14
        executeTarget("testNoTrimStringCondition");
21
        executeTarget("test
15
    }
16
    public void testStringFile()
22
ILDASM");
23
    }
24
    /**
25
     * test we can disassemble
26
     */
17
 {
27
    public void testILDASM_empty() throws Exception {
18
        expectBuildExceptionContaining("testStringFile",
28
        expectBuildExceptionContaining("testILDASM_empty",
19
            "should fail", "incompatible
29
                "parameter validation",
20
");
30
                "invalid");
21
    
31
    
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