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"));
void testResultPropertyZeroNoFork() { executeTarget("testResultPropertyZeroNoFork"); assertEquals("0",project.getProperty("exitcode")); } public void testResultPropertyNonZeroNoFork() { executeTarget("testResultPropertyNonZeroNoFork"); assertEquals("-1",project.getProperty("exitcode"));
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/JavaTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test21() {
1
void testResultPropertyZeroNoFork() {
2
        executeTarget("test21");
2
        executeTarget("testResultPropertyZeroNoFork");
3
        assertEquals("true", project.getProperty("test"));
3
        assertEquals("0",project.getProperty("exitcode"));
4
    }
4
    }
5
    // Core class that exists in system classpath is not ignored with ignoresystemclass="false"
5
    
6
    public void test22() {
6
public void testResultPropertyNonZeroNoFork() {
7
        executeTarget("test22");
7
        executeTarget("testResultPropertyNonZeroNoFork");
8
        assertEquals("true", project.getProperty("test"));
8
         assertEquals("-1",project.getProperty("exitcode"));
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