void test13() { executeTarget("test13"); assertNull(project.getProperty("test")); } // Specified file is "" actually a directory, so it should pass public void test13b() { executeTarget("test13b"); assertEquals("true", project.getProperty("test"));
void testSearchInPathNotThere() { executeTarget("searchInPathNotThere"); assertNull(project.getProperty("test")); } // File is not found in specified filepath public void testSearchInPathIsThere() { executeTarget("searchInPathIsThere"); 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/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 test13() {
1
void testSearchInPathNotThere() {
2
        executeTarget("test13");
2
        executeTarget("searchInPathNotThere");
3
        assertNull(project.getProperty("test"));
3
        assertNull(project.getProperty("test"));
4
    }
4
    }
5
    // Specified file is "" actually a directory, so it should pass
5
    // File is not found in specified filepath
6
    public void test13b() {
6
    public void testSearchInPathIsThere() {
7
        executeTarget("test13b");
7
        executeTarget("searchInPathIsThere");
8
        assertEquals("true", 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