void test4() { executeTarget("test4"); assertEquals("original", project.getProperty("test")); } // ensure <checksum> follows the immutability rule public void test5() { executeTarget("test5"); assertEquals("original", project.getProperty("test"));
void test9() { executeTarget("test9"); assertEquals("true", project.getProperty("test")); } // All three specified and all three exist -> true public void test10() { executeTarget("test10"); assertEquals("true", project.getProperty("test"));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/ImmutableTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/AvailableTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test4() {
1
void test9() {
2
        executeTarget("test4");
2
        executeTarget("test9");
3
        assertEquals("original", project.getProperty("test"));
3
        assertEquals("true", project.getProperty("test"));
4
    }
4
    }
5
    // ensure <checksum> follows the immutability rule
5
    // All three specified and all three exist -> true
6
    public void test5() {
6
    public void test10() {
7
        executeTarget("test5");
7
        executeTarget("test10");
8
        assertEquals("original", project.getProperty("test"));
8
        assertEquals("true", project.getProperty("test"));
9
    
9
    
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