void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithoutUpdateNewerFile"); } public void testRecreateZipfilesetWithUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithUpdateNewerFile"); }
void testDouble() { expectLog( "double", "@{prop} is 'property', value of ${property} is 'A property value'"); } public void testIgnoreCase() { expectLog( "ignorecase", "a is ab is b"); } public void testIgnoreElementCase() { expectLog( "ignore-element-case", "nested elementnested element"); }
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 testRecreateZipfilesetWithUpdateAdditionalFiles() {
1
void testDouble() {
2
        testRecreate("test4",
2
        
3
                     "testRecreateZipfilesetWithUpdateAdditionalFiles
3
expectLog(
4
            "double",
4
");
5
            "@{prop} is 'property', value of ${property} is 'A property value'");
5
    }
6
    }
6
    public void testRecreateZipfilesetWithoutUpdateNewerFile() {
7
    public void test
7
        testRecreate("testRecreateNewerFileSetup",
8
                     "testRecreateZipfilesetWithoutUpdateNewerFile
8
IgnoreCase() {
9
        expectLog(
10
            "ignorecase",
9
");
11
            "a is ab is b");
10
    }
12
    }
11
    public void testRecreateZipfilesetWithUpdateNewerFile() {
13
    public void test
12
        testRecreate("testRecreateNewerFileSetup",
13
                     "testRecreateZipfilesetWithUpdateNewerFile
14
IgnoreElementCase() {
15
        expectLog(
16
            "ignore-element-case",
14
");
17
            "nested elementnested element");
15
    }
18
    }
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