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")); } // All three specified but class missing -> null public void test11() { executeTarget("test11"); assertNull(project.getProperty("test"));
void test16() { executeTarget("test16"); assertEquals("true", project.getProperty("test")); } // Specified dir is "../taskdefs" -> should exist since it's the // location of the buildfile used... public void test17() { executeTarget("test17"); assertEquals("true", project.getProperty("test")); } // Specified dir is "../this_dir_should_never_exist" -> null public void test18() { executeTarget("test18"); assertNull(project.getProperty("test"));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/AvailableTest.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 test9() {
1
void test16() {
2
        executeTarget("test9");
2
        executeTarget("test16");
3
        assertEquals("true", project.getProperty("test"));
3
        assertEquals("true", project.getProperty("test"));
4
    }
4
    }
5
    // All three specified and all three exist -> true
5
    // Specified dir is "../taskdefs" -> should exist since it's the
6
    // location of the buildfile used...
6
    public void test10() {
7
    public void test17() {
7
        executeTarget("test10");
8
        executeTarget("test17");
8
        assertEquals("true", project.getProperty("test"));
9
        assertEquals("true", project.getProperty("test"));
9
    }
10
    }
10
    // All three specified but class missing -> null
11
    // Specified dir is "../this_dir_should_never_exist" -> null
11
    public void test11() {
12
    public void test18() {
12
        executeTarget("test11");
13
        executeTarget("test18");
13
        assertNull(project.getProperty("test"));
14
        assertNull(project.getProperty("test"));
14
    
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