void testResultPropertyNonZero() { executeTarget("testResultPropertyNonZero"); assertEquals("2",project.getProperty("exitcode")); } public void testResultPropertyZeroNoFork() { executeTarget("testResultPropertyZeroNoFork"); assertEquals("0",project.getProperty("exitcode"));
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"));
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 testResultPropertyNonZero() {
1
void test9() {
2
        executeTarget("testResultPropertyNonZero");
2
        executeTarget("test9");
3
        assertEquals("2",project.getProperty("exitcode"));
3
        assertEquals("true", project.getProperty("test"));
4
    }
4
    }
5
    public void testResultPropertyZeroNoFork
5
    // All three specified and all three exist -> true
6
() {
6
    public void test10() {
7
        executeTarget("testResultPropertyZeroNoFork");
7
        executeTarget("test10");
8
        assertEquals("0",project.getProperty("exitcode"));
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