void testResultPropertyZero() { executeTarget("testResultPropertyZero"); assertEquals("0",project.getProperty("exitcode")); } public void testResultPropertyNonZero() { executeTarget("testResultPropertyNonZero"); assertEquals("2",project.getProperty("exitcode")); } public void testResultPropertyZeroNoFork() { executeTarget("testResultPropertyZeroNoFork"); assertEquals("0",project.getProperty("exitcode")); } public void testResultPropertyNonZeroNoFork() { executeTarget("testResultPropertyNonZeroNoFork"); assertEquals("-1",project.getProperty("exitcode"));
void test21() { executeTarget("test21"); assertEquals("true", project.getProperty("test")); } // Core class that exists in system classpath is not ignored with ignoresystemclass="false" public void test22() { executeTarget("test22"); assertEquals("true", project.getProperty("test")); } // Core class that exists in system classpath is not ignored with default ignoresystemclasses value public void test23() { executeTarget("test23"); assertEquals("true", project.getProperty("test")); } // Class is found in specified classpath public void test24() { executeTarget("test24"); 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/JavaTest.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 testResultPropertyZero() {
1
void test21() {
2
        executeTarget("testResultPropertyZero");
2
        executeTarget("test21");
3
        assertEquals("0",project.getProperty("exitcode"));
3
        assertEquals("true", project.getProperty("test"));
4
    }
4
    }
5
    public void testResultPropertyNonZero
5
    // Core class that exists in system classpath is not ignored with ignoresystemclass="false"
6
() {
6
    public void test22() {
7
        executeTarget("testResultPropertyNonZero");
7
        executeTarget("test22");
8
        assertEquals("2",project.getProperty("exitcode"));
8
        assertEquals("true", project.getProperty("test"));
9
    }
9
    }
10
    public void testResultPropertyZeroNoFork
10
    // Core class that exists in system classpath is not ignored with default ignoresystemclasses value
11
() {
11
    public void test23() {
12
        executeTarget("testResultPropertyZeroNoFork");
12
        executeTarget("test23");
13
        assertEquals("0",project.getProperty("exitcode"));
13
        assertEquals("true", project.getProperty("test"));
14
    }
14
    }
15
    public void testResultPropertyNonZeroNoFork
15
    // Class is found in specified classpath
16
() {
16
    public void test24() {
17
        executeTarget("testResultPropertyNonZeroNoFork");
17
        executeTarget("test24");
18
         assertEquals("-1",project.getProperty("exitcode"));
18
        assertEquals("true", project.getProperty("test"));
19
     
19
    
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