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 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"); }
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/TouchTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testCscReferences() throws Exception {
1
void testMappedFileset() {
2
        executeTarget("testCscReferences");
2
        executeTarget("testMappedFileset");
3
    }
3
    }
4
    /**
4
    /**
5
     * A unit test for JUnit
5
     * 
6
     */
7
    public void testCscResources() throws Exception
6
test the explicit mapped file set
7
     */
8
 {
8
    public void testExplicitMappedFileset() {
9
        executeTarget("testCSCResources");
9
        executeTarget("testExplicitMappedFileset");
10
    }
10
    }
11
    /**
11
    /**
12
     * test we can assemble
12
     * test the mapped file list
13
     */
13
     */
14
    public void testILASM() throws Exception {
14
    public void testMappedFilelist() {
15
        executeTarget("testILASM");
15
        executeTarget("testMappedFilelist");
16
    }
16
    }
17
    /**
17
    /**
18
     * test we can disassemble
18
     * test the pattern attribute
19
     */
19
     */
20
    public void testILDASM() throws Exception {
20
    public void testGoodPattern() {
21
        executeTarget("testILDASM");
21
        executeTarget("testGoodPattern");
22
    }
22
    }
23
    /**
23
    /**
24
     * test we can disassemble
24
     * test the pattern attribute again
25
     */
25
     */
26
    public void testILDASM_empty() throws Exception {
26
    public void testBadPattern() {
27
        expectBuildExceptionContaining("testILDASM_empty",
27
        expectBuildExceptionContaining("testBadPattern",
28
                "parameter validation",
28
            
29
                "invalid");
29
"No parsing exception thrown", "Unparseable");
30
    }
30
    }
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