void test13b() { executeTarget("test13b"); assertEquals("true", project.getProperty("test")); } // Specified resource is "" -> can such a thing exist? /* * returns non null IBM JDK 1.3 Linux */ // public void test14() { // executeTarget("test14"); // assertEquals(project.getProperty("test"), null); // } // Specified class is "" -> can not exist public void test15() { executeTarget("test15"); assertNull(project.getProperty("test")); } // Specified dir is "" -> this is the current directory and should // always exist public void test16() { executeTarget("test16"); assertEquals("true", project.getProperty("test"));
void test24() { executeTarget("test24"); assertEquals("true", project.getProperty("test")); } // File is not found in specified filepath public 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 test13b() {
1
void test24() {
2
        executeTarget("test13b");
2
        executeTarget("test24");
3
        assertEquals("true", project.getProperty("test"));
3
        assertEquals("true", project.getProperty("test"));
4
    }
4
    }
5
    // Specified resource is "" -> can such a thing exist?
5
    // 
6
    /*
7
     * returns non null IBM JDK 1.3 Linux
8
     */
9
//    public void test14() {
10
//        executeTarget("test14");
11
//        assertEquals(project.getProperty("test"), null);
12
//    }
13
    // Specified class is "" -> can not exist
14
    public void test15
6
File is not found in specified filepath
15
() {
7
    public void testSearchInPathNotThere() {
16
        executeTarget("test15");
8
        executeTarget("searchInPathNotThere");
17
        assertNull(project.getProperty("test"));
9
        assertNull(project.getProperty("test"));
18
    }
10
    }
19
    // Specified dir is "" -> this is the current directory and should
11
    // 
20
    // always exist
12
File is not found in specified filepath
21
    public void test16() {
13
    public void testSearchInPathIsThere() {
22
        executeTarget("test16");
14
        executeTarget("searchInPathIsThere");
23
        assertEquals("true", project.getProperty("test"));
15
        assertEquals("true", project.getProperty("test"));
24
    
16
    
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