void testRecreateWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateWithoutUpdateAdditionalFiles"); } public void testRecreateWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateWithUpdateAdditionalFiles"); } public void testRecreateWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateWithoutUpdateNewerFile"); } public void testRecreateWithUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateWithUpdateNewerFile"); }
void testEscape() { expectLog( "escape", "a@b or a@b is avalue@bvalue"); } public void testAttributeDescription() { expectLog( "attribute.description", "description is hello world"); } public void testOverrideDefault() { expectLog( "override.default", "value is new"); } public void testImplicit() { expectLog( "implicit", "Before implicitIn implicitAfter implicit"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testRecreateWithoutUpdateAdditionalFiles() {
1
void test
2
        testRecreate("test4", "testRecreateWithoutUpdateAdditionalFiles
2
Escape() {
3
        expectLog(
4
            "escape",
3
");
5
            "a@b or a@b is avalue@bvalue");
4
    }
6
    }
5
    public void testRecreateWithUpdateAdditionalFiles() {
7
    public void test
6
        testRecreate("test4",
8
AttributeDescription() {
9
        expectLog(
10
            "attribute.description",
7
 "testRecreateWithUpdateAdditionalFiles");
11
            "description is hello world");
8
    }
12
    }
9
    public void testRecreateWithoutUpdateNewerFile() {
13
    public void test
10
        testRecreate("testRecreateNewerFileSetup",
11
                     "testRecreateWithoutUpdateNewerFile
14
OverrideDefault() {
15
        expectLog(
16
            "override.default",
12
");
17
            "value is new");
13
    }
18
    }
14
    public void testRecreateWithUpdateNewerFile() {
19
    public void test
15
        testRecreate("testRecreateNewerFileSetup",
16
                     "testRecreateWithUpdateNewerFile
20
Implicit() {
21
        expectLog(
17
");
22
            "implicit", "Before implicitIn implicitAfter implicit");
18
    }
23
    }
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