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