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