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");
void testRecreateZipfilesetWithUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithUpdateAdditionalFiles"); } public void testRecreateZipfilesetWithoutUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithoutUpdateNewerFile"); } public void testRecreateZipfilesetWithUpdateNewerFile() { testRecreate("testRecreateNewerFileSetup", "testRecreateZipfilesetWithUpdateNewerFile");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testDouble() {
1
void testRecreateZipfilesetWithUpdateAdditionalFiles() {
2
        expectLog(
2
        
3
            "double",
4
            "@{prop} is 'property', value of ${property} is 'A property value'
3
testRecreate("test4",
5
");
4
                     "testRecreateZipfilesetWithUpdateAdditionalFiles");
6
    }
5
    }
7
    public void testIgnoreCase() {
6
    public void test
8
        expectLog(
9
            "ignorecase",
10
            "a is ab is b
7
RecreateZipfilesetWithoutUpdateNewerFile() {
8
        testRecreate("testRecreateNewerFileSetup",
11
");
9
                     "testRecreateZipfilesetWithoutUpdateNewerFile");
12
    }
10
    }
13
    public void testIgnoreElementCase() {
11
    public void test
14
        expectLog(
15
            "ignore-element-case",
12
RecreateZipfilesetWithUpdateNewerFile() {
13
        testRecreate("testRecreateNewerFileSetup",
16
            "nested elementnested element");
14
                     "testRecreateZipfilesetWithUpdateNewerFile");
17
    
15
    
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