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