class TaskdefForCopyTest extends BuildFileTest { TaskdefForCopyTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/types/mapper.xml"); } public void tearDown() { executeTarget("cleanup"); } public void test1() { executeTarget("test1"); }
class NoNewLineTest extends BuildFileTest { public NoNewLineTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/filters/build.xml"); } public void tearDown() { executeTarget("cleanup"); } public void testNoAddNewLine() throws IOException { executeTarget("testNoAddNewLine"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/MapperTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/NoNewLineTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
class TaskdefForCopyTest extends BuildFileTest {
1
class NoNewLineTest extends BuildFileTest {
2
   
3
     TaskdefForCopyTest(String name) {
2
    public NoNewLineTest(String name) {
4
            super(name);
3
        super(name);
5
        }
4
    }
6
        public void setUp() {
5
    public void setUp() {
7
            configureProject("src/etc/testcases/types/mapper.xml");
6
        configureProject("src/etc/testcases/filters/build.xml");
8
        }
7
    
9
    
8
}
10
    public void tearDown() {
9
    public void tearDown() {
11
            executeTarget("cleanup");
10
        executeTarget("cleanup");
12
        }
11
    }
13
        public void test1() {
12
    public void test
14
    
13
NoAddNewLine() throws IOException {
15
        executeTarget("test1");
14
        executeTarget("test
16
        }
17
    
15
NoAddNewLine");
16
    }
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