void testSimple() { executeTarget("simple"); } public void testName() { executeTarget("name"); } public void testBaseDir() { executeTarget("basedir"); } public void testType() { executeTarget("type"); } public void testNotSelector() { expectBuildExceptionContaining( "not.selector", "checking for use as a selector (not allowed)", "fileset doesn't support the nested \"isfile");
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/condition/IsFileSelectedTest.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 testSimple() {
1
void test
2
        executeTarget("simple");
3
    }
4
    public void testName() {
5
        executeTarget("name");
6
    }
7
    public void testBaseDir()
2
CscReferences() throws Exception {
3
        executeTarget("testCscReferences");
4
    }
5
    /**
6
     * A unit test for JUnit
7
     */
8
    public void testCscResources() throws Exception {
9
        executeTarget("testCSCResources");
10
    }
11
    /**
12
     * test we can assemble
13
     */
8
 {
14
    public void testILASM() throws Exception {
9
        executeTarget("basedir");
15
        executeTarget("testILASM");
10
    }
16
    }
11
    public void testType()
17
    /**
18
     * test we can disassemble
19
     */
12
 {
20
    public void testILDASM() throws Exception {
13
        executeTarget("type");
21
        executeTarget("testILDASM");
14
    }
22
    }
15
    public void testNotSelector() {
16
        expectBuildExceptionContaining(
17
            "not.selector", "checking for use as a selector (not allowed)",
18
            "fileset doesn't support the nested \"isfile
23
    /**
24
     * test we can disassemble
25
     */
26
    public void testILDASM_empty() throws Exception {
27
        expectBuildExceptionContaining("testILDASM_empty",
28
                "parameter validation",
19
");
29
                "invalid");
20
    
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