DeleteTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/taskdefs/delete.xml"); } public void tearDown() { executeTarget("cleanup"); } public void test1() { expectBuildException("test1", "required argument not specified");
EchoTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/taskdefs/echo.xml"); } public void tearDown() { executeTarget("clean"); } // Output an empty String public void test1() { expectLog("test1", "");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/DeleteTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/EchoTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
DeleteTest(String name) {
1
EchoTest(String name) {
2
        super(name);
2
        super(name);
3
    }
3
    }
4
    public void setUp() {
4
    public void setUp() {
5
        configureProject("src/etc/testcases/taskdefs/delete.xml");
5
        configureProject("src/etc/testcases/taskdefs/echo.xml");
6
    }
6
    }
7
    public void tearDown() {
7
    public void tearDown() {
8
        executeTarget("cleanup");
8
        executeTarget("clean");
9
    }
9
    }
10
    // Output an empty String
10
    public void test1() {
11
    public void test1() {
11
        expectBuildException("test1", "required argument not specified");
12
        expectLog("test1", "");
12
    
13
    
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