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