class BeanShellScriptTest extends BuildFileTest { public BeanShellScriptTest(String name) { super(name); } /** * The JUnit setup method */ public void setUp() { configureProject("src/etc/testcases/taskdefs/optional/script.xml"); } public void testCanLoad() { expectLog("useBeanshell", "I'm here"); }
class DispatchTaskTest extends BuildFileTest { public DispatchTaskTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/core/dispatch/dispatch.xml"); } public void testDisp() { expectBuildException("disp", "list"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/BeanShellScriptTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DispatchTaskTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
class BeanShellScriptTest extends BuildFileTest {
1
class DispatchTaskTest extends BuildFileTest {
2
    public BeanShellScriptTest(String name) {
2
    public DispatchTaskTest(String name) {
3
        super(name);
3
        super(name);
4
    }
4
    }
5
    /**
6
     * The JUnit setup method
7
     */
8
    public void setUp() {
5
    public void setUp() {
9
        configureProject("src/etc/testcases/taskdefs/optional/script.xml");
6
        configureProject("src/etc/testcases/core/dispatch/dispatch.xml");
10
    }
7
    }
11
    public void testCanLoad() {
8
    public void testDisp() {
12
        expectLog("useBeanshell", "I'm here");
9
        expectBuildException("disp", "list");
13
    }
10
    }
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