void testRecreateZipfilesetWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithoutUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithoutUpdateNewerFile"); } public void testRecreateZipfilesetWithUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithUpdateNewerFile");
void testUri() { expectLog("uri", "Hello World"); } public void testNested() { expectLog("nested", "A nested element"); } public void testDouble() { expectLog( "double", "@{prop} is 'property', value of ${property} is 'A property value'"); } public void testIgnoreCase() { expectLog( "ignorecase", "a is ab is b");
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 test
2
        testRecreate("test4",
3
                     "testRecreateZipfilesetWithoutUpdateAdditionalFiles
2
Uri() {
4
");
3
        expectLog("uri", "Hello World");
5
    }
4
    }
6
    public void testRecreateZipfilesetWithUpdateAdditionalFiles() {
5
    public void testNested() {
7
        testRecreate("test4",
6
        expectLog("nest
8
                     "testRecreateZipfilesetWithUpdateAdditionalFiles");
9
    }
10
    public void testRecreateZipfilesetWithoutUpdateNewerFile() {
11
        testRecreate("testRecreateNewerFileSetup",
12
                     "testRecreateZipfilesetWithoutUpdateNewerFile
7
ed", "A nested element");
8
    }
9
    public void testDouble() {
10
        expectLog(
11
            "double",
13
");
12
            "@{prop} is 'property', value of ${property} is 'A property value'");
14
    }
13
    }
15
    public void testRecreateZipfilesetWithUpdateNewerFile() {
14
    public void test
16
        testRecreate("testRecreateNewerFileSetup",
17
                     "testRecreateZipfilesetWithUpdateNewerFile
15
IgnoreCase() {
16
        expectLog(
17
            "ignorecase",
18
");
18
            "a is ab is b");
19
    
19
    
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